/* ==========================================================================
   SCHWABACH-SEO.DE — Hauptstylesheet
   Farbpalette: Dunkelblau + Weiß | Font: Schibsted Grotesk (self-hosted)
   DSGVO-konform: Keine externen Requests
   ========================================================================== */

/* --- Font Face (self-hosted, DSGVO-konform) --- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- CSS Custom Properties --- */
:root {
  --navy-900: #0B1D3A;
  --navy-800: #122B52;
  --navy-700: #1A3A6B;
  --navy-600: #1E4D8E;
  --blue-500: #2563EB;
  --blue-400: #3B82F6;
  --blue-300: #60A5FA;
  --blue-100: #DBEAFE;
  --pale-bg: #F0F4FA;
  --white: #FFFFFF;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --green-500: #10B981;
  --green-100: #D1FAE5;
  --orange-500: #F59E0B;

  --font-main: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(11,29,58,0.08);
  --shadow-md: 0 4px 16px rgba(11,29,58,0.10);
  --shadow-lg: 0 8px 32px rgba(11,29,58,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-400); }
a:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: 1rem; }
strong { font-weight: 600; color: var(--gray-900); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 680px;
  margin-bottom: 3rem;
}

.bg-pale { background: var(--pale-bg); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.8); }
.bg-navy .section-label { color: var(--blue-300); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11,29,58,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav-logo svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--blue-500);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover { background: var(--blue-400); transform: translateY(-1px); }

/* Mobile Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
}

.nav-toggle svg { width: 24px; height: 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-400); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--blue-500); color: var(--blue-500); transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #20BD5A; color: var(--white); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--navy-900);
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: var(--white); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 10rem 1.5rem 6rem;
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  display: block;
  color: var(--blue-300);
}

.hero-text {
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* --- Stats Strip --- */
.stats-strip {
  padding: 3rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--blue-500);
  letter-spacing: -0.03em;
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* --- Icon Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg { width: 24px; height: 24px; color: var(--blue-500); }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--gray-600); font-size: 0.9375rem; margin-bottom: 0; }

/* --- Process Steps --- */
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step-item {
  position: relative;
  text-align: center;
  counter-increment: step;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-item h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.step-item p { font-size: 0.9375rem; color: var(--gray-600); }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.price-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
}

.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.price-card.featured {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-500);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.price-card .price-sub {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.price-features li:last-child { border-bottom: none; }

.price-features li svg {
  width: 18px;
  height: 18px;
  color: var(--green-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-card .btn { width: 100%; }

/* --- Local / Neighborhood --- */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.neighborhood-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}

.neighborhood-tag:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.neighborhood-tag svg { width: 16px; height: 16px; color: var(--blue-400); flex-shrink: 0; }

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.about-avatar svg { width: 80px; height: 80px; color: var(--navy-900); }

/* --- Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.comparison-table tbody tr:hover { background: var(--pale-bg); }
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-900);
  text-align: left;
  line-height: 1.4;
  min-height: 48px;
}

.faq-question:hover { color: var(--blue-500); }

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform var(--transition);
}

.faq-item.open .faq-question svg { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
}

.review-stars { color: var(--orange-500); margin-bottom: 0.75rem; display: flex; gap: 2px; }
.review-stars svg { width: 18px; height: 18px; }

.review-text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}

.review-role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* --- CTA Band --- */
.cta-band {
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 2rem; font-size: 1.125rem; }
.cta-band .btn-group { justify-content: center; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

.footer-seo-text {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.35);
}

/* --- Checklist (for services) --- */
.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.check-list li svg {
  width: 20px;
  height: 20px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Two Column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 8rem 1.5rem 4rem;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p, .legal-page li {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid .price-card:last-child { grid-column: span 2; max-width: 440px; margin: 0 auto; }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .neighborhood-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.open li { padding: 0.75rem 0; }

  .hero { padding: 8rem 1.25rem 4rem; }
  .hero-text { font-size: 1.0625rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .price-card:last-child { grid-column: auto; max-width: none; }
  .steps-list { grid-template-columns: 1fr; }
  .neighborhood-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}

@media (max-width: 480px) {
  .neighborhood-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print --- */
@media print {
  .site-header, .cta-band, .btn-group { display: none; }
  body { color: #000; background: #fff; }
  section { padding: 1.5rem 0; }
}
