/* ==========================================
   ServiceHypo AI - Hauptstylesheet
   Design-Stil: Seriöser Banken-Look & FinTech
   ========================================== */

:root {
  --bank-900: #0f172a;
  --bank-800: #1e293b;
  --bank-700: #334155;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --brand-800: #075985;
  --brand-50: #f0f7ff;
  --brand-100: #e0effe;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --emerald-600: #059669;
  --emerald-400: #34d399;
  --white: #ffffff;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background-color: var(--bank-900);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  position: relative;
}

.logo-badge span {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background-color: var(--brand-600);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
}

.logo-text span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bank-900);
  letter-spacing: -0.025em;
}

.logo-text span.highlight {
  color: var(--brand-600);
}

.logo-sub {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  font-weight: 300;
  margin-top: -2px;
}

nav {
  display: none;
}

@media (min-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
  }
}

nav a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--brand-600);
}

.nav-pill {
  font-size: 0.75rem;
  background-color: var(--slate-100);
  color: var(--slate-700);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.nav-pill:hover {
  background-color: var(--slate-200);
  color: var(--slate-800);
}

.btn-primary {
  background-color: var(--bank-900);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--bank-800);
}

/* Hero Section */
.hero {
  padding: 4rem 0 5rem 0;
  background: linear-gradient(to bottom, var(--slate-100), var(--slate-50));
  border-bottom: 1px solid var(--slate-200);
  text-align: center;
}

@media (min-width: 1024px) {
  .hero { padding: 6rem 0 8rem 0; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-600);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bank-900);
  letter-spacing: -0.025em;
  max-width: 56rem;
  margin: 0 auto;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}

.hero h1 span { color: var(--brand-600); }

.hero p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-checks {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

.hero-checks span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-checks svg {
  width: 1rem;
  height: 1rem;
  color: var(--emerald-600);
}

/* Rechner Hub Card */
.calculator-section {
  max-width: 72rem;
  margin: -3rem auto 4rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.calculator-card {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  background-color: rgba(248, 250, 252, 0.5);
  border-bottom: 1px solid var(--slate-200);
}

.tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.tab-btn.active {
  color: var(--brand-700);
  border-bottom-color: var(--brand-600);
  background-color: var(--white);
  font-weight: 700;
}

.tab-content {
  padding: 2rem;
}

@media (min-width: 640px) {
  .tab-content { padding: 2.5rem; }
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Desktop Grid Layout für den Rechner */
@media (min-width: 1024px) {
  .calc-grid { 
    grid-template-columns: repeat(12, minmax(0, 1fr)); 
    gap: 2.5rem;
  }
  .calc-inputs { 
    grid-column: span 7 / span 7; 
  }
  .calc-result { 
    grid-column: span 5 / span 5; 
  }
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.input-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bank-900);
}

.input-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-700);
}

input[type=range] {
  width: 100%;
  height: 0.5rem;
  background-color: var(--slate-200);
  border-radius: 0.5rem;
  accent-color: var(--brand-600);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 0.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.text-input-wrap label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 0.25rem;
}

.text-input {
  width: 100%;
  padding: 0.625rem;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bank-900);
  outline: none;
}

.text-input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.hint-box {
  padding: 0.75rem;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  font-size: 11px;
  color: var(--slate-500);
}

/* Result Box */
.result-box {
  background-color: var(--bank-900);
  color: var(--white);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.result-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
}

.result-main-value {
  margin-top: 0.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
}

.result-desc {
  font-size: 0.75rem;
  color: var(--slate-300);
  margin-top: 0.25rem;
}

.result-divider {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bank-800);
}

.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.result-row span:first-child { color: var(--slate-400); }
.result-row span:last-child { font-weight: 700; color: var(--white); }

.btn-cta {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--brand-600);
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  text-decoration: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-cta:hover { background-color: var(--brand-700); }

/* Binding Buttons */
.binding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.binding-btn {
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.binding-btn.active {
  border-color: var(--brand-600);
  background-color: var(--brand-50);
  color: var(--brand-800);
  font-weight: 700;
}

/* Tech Footer Badge */
.tech-badge-bar {
  background-color: var(--slate-100);
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .tech-badge-bar { flex-direction: row; }
}

.tech-badge-bar a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
}
.tech-badge-bar a:hover { text-decoration: underline; }

/* Sections */
.section-white {
  padding: 5rem 0;
  background-color: var(--white);
  border-top: 1px solid var(--slate-200);
}

.section-title-wrap {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem auto;
}

.section-title-wrap h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--bank-900);
  letter-spacing: -0.025em;
}

.section-title-wrap p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--slate-600);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card-feature {
  padding: 2rem;
  border-radius: 0.75rem;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.card-num {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.card-feature h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bank-900);
  margin-bottom: 0.5rem;
}

.card-feature p {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* B2B Teaser Section */
.section-slate {
  padding: 4rem 0;
  background-color: var(--slate-100);
  border-top: 1px solid var(--slate-200);
}

.b2b-box {
  background-color: var(--bank-900);
  border-radius: 1rem;
  padding: 2.5rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .b2b-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
  }
}

.b2b-text span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.b2b-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 0.5rem;
  letter-spacing: -0.025em;
}

.b2b-text p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--slate-300);
  line-height: 1.6;
  max-width: 42rem;
}

.b2b-text strong { color: var(--white); }

/* Footer */
footer {
  background-color: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 3rem 0 4rem 0;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer-col h4 {
  font-weight: 700;
  color: var(--bank-900);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul a {
  color: inherit;
  text-decoration: none;
}
.footer-col ul a:hover { color: var(--brand-600); }

.legal-disclaimer {
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  font-size: 11px;
  line-height: 1.6;
  color: var(--slate-400);
}

.legal-disclaimer p strong {
  color: var(--slate-500);
}
/* ==========================================
   Erweiterung für den Haushaltsrechner
   ========================================== */

.input-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-700);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--brand-100);
}

.budget-bar-wrap {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bank-800);
}

.budget-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate-300);
  margin-bottom: 0.25rem;
}

.budget-bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--bank-800);
  border-radius: 4px;
  overflow: hidden;
}

.budget-bar-fill {
  height: 100%;
  border-radius: 4px;
  background-color: var(--emerald-400);
  transition: width 0.4s ease;
}