:root {
  --bg:          #0d1b2a;
  --bg-card:     #1a3a5c;
  --bg-dark:     #132840;
  --gold:        #e8a020;
  --gold-hover:  #f5b030;
  --text:        #ffffff;
  --text-muted:  #8aa5c0;
  --border:      #2a5078;
  --radius:      8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */

nav {
  background: var(--bg-card);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1.5rem;
  position: relative;
}

.nav-logo {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex: 1;
}

.nav-item { position: relative; }

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, background 0.15s;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.nav-arrow {
  width: 11px;
  height: 11px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-item:hover .nav-arrow { transform: rotate(180deg); }
.nav-item.open .nav-arrow  { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 230px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
  font-size: 0.9rem;
  min-height: 44px;
}

.dropdown a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
  padding-left: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  line-height: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(140deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 680px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #0d1b2a;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
  touch-action: manipulation;
}

.btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(232,160,32,0.4);
}

/* ── Kacheln ─────────────────────────────────────────────────────────────── */

.kacheln-section {
  padding: 2.5rem 1.5rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.kacheln-gruppe-titel {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}

.kachel {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s, border-top-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  touch-action: manipulation;
}

.kachel:hover,
.kachel:active {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  border-top-color: var(--gold-hover);
}

.kachel-icon { font-size: 2rem; line-height: 1; }

.kachel h3 { font-size: 1rem; font-weight: 700; }

.kachel p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.kachel-pfeil {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ── Vergleichs-Seite ────────────────────────────────────────────────────── */

.vergleich-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.vergleich-header-inner { max-width: 1200px; margin: 0 auto; }

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.vergleich-header h1 { font-size: clamp(1.3rem, 4vw, 1.75rem); font-weight: 700; }

.iframe-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  flex: 1;
  width: 100%;
}

.iframe-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 500px;
}

.iframe-wrapper iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* ── Content-Seiten (Impressum, Datenschutz) ─────────────────────────────── */

.content-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
  flex: 1;
  width: 100%;
}

.content-page h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.content-page .stand {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.content-page h2 {
  font-size: 1.05rem;
  color: var(--gold);
  margin: 1.75rem 0 0.6rem;
}

.content-page p,
.content-page ul,
.content-page ol {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

.content-page ul,
.content-page ol { padding-left: 1.25rem; }

.content-page a { color: var(--gold); }
.content-page a:hover { text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy { color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; }

.footer-copy a { color: var(--gold); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }

/* ── Responsive: Tablet (max 1024px) ─────────────────────────────────────── */

@media (max-width: 1024px) {
  .kacheln { grid-template-columns: repeat(3, 1fr); }
}

/* ── Responsive: Mobil (max 768px) ──────────────────────────────────────── */

@media (max-width: 768px) {
  nav { padding: 0 1rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: -1rem;
    right: -1rem;
    background: var(--bg-card);
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .nav-link {
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
    border-radius: 6px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    background: transparent;
    padding: 0.25rem 0 0.25rem 0.75rem;
    min-width: unset;
    display: none;
    margin-left: 0.5rem;
  }

  .nav-item.open .dropdown { display: block; }

  .dropdown a {
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    min-height: 40px;
  }

  .dropdown a:hover { padding-left: 0.75rem; }

  .kacheln { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 2.5rem 1rem 2rem; }

  .kacheln-section { padding: 2rem 1rem 2.5rem; }

  .iframe-container { padding: 1rem 1rem 1.5rem; }

  .iframe-wrapper { min-height: 400px; }

  .iframe-wrapper iframe { min-height: 500px; }

  .vergleich-header { padding: 1rem; }

  .content-page { padding: 0 1rem 2rem; margin-top: 1.5rem; }

  .footer-links { gap: 1rem; }

  .footer-copy { font-size: 0.75rem; }
}

/* ── Responsive: Klein-Mobil (max 480px) ─────────────────────────────────── */

@media (max-width: 480px) {
  .kacheln { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .kachel { padding: 1.1rem 1rem; }

  .kachel-icon { font-size: 1.6rem; }

  .kachel h3 { font-size: 0.9rem; }

  .hero h1 { font-size: 1.5rem; }

  .btn { padding: 0.75rem 1.5rem; font-size: 0.95rem; }

  .iframe-wrapper { min-height: 350px; border-radius: 0; }

  .iframe-wrapper iframe { min-height: 450px; }
}

/* ── Responsive: Sehr klein (max 360px) ─────────────────────────────────── */

@media (max-width: 360px) {
  .kacheln { grid-template-columns: 1fr; }

  .nav-logo { font-size: 1.1rem; }
}
