/* Angelmeister Website - angelmeister-angelschein.de
   Markenfarben aus theme/palette.ts der App uebernommen. */

:root {
  --brand: #0f4c5c;
  --brand-bright: #1d6e7a;
  --brand-soft: #e7f0f2;
  --accent: #7fc4cf;
  --cta: #e26d5a;
  --cta-dark: #c9573f;

  --bg: #fefaf5;
  --bg-alt: #f6efe6;
  --surface: #ffffff;
  --ink: #25282a;
  --muted: #5f6b70;
  --border: rgba(15, 76, 92, 0.14);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 44px rgba(15, 76, 92, 0.13);
  --shadow-soft: 0 6px 18px rgba(15, 76, 92, 0.09);

  --max-width: 1120px;
  --header-height: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(254, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.site-nav {
  display: flex;
  gap: 1.4rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 11px;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}
.nav-toggle-icon { top: 20px; }
.nav-toggle-icon::before { top: -6px; left: 0; }
.nav-toggle-icon::after { top: 6px; left: 0; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover { transform: translateY(-1px); }

.button.primary {
  background: var(--cta);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.button.primary:hover { background: var(--cta-dark); }

.button.secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--border);
}

.button.small { padding: 0.55rem 1rem; font-size: 0.9rem; }

.button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
  cursor: default;
}
.button.ghost:hover { transform: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(1200px 420px at 15% -10%, rgba(127, 196, 207, 0.30), transparent 65%),
    linear-gradient(180deg, var(--brand-soft), var(--bg) 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-bright);
  background: rgba(127, 196, 207, 0.24);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 0.9rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-phone {
  position: relative;
  justify-self: center;
  max-width: 300px;
}
.hero-phone img {
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Stat-Leiste ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand);
  line-height: 1.1;
}
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Karten ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.card h3 { color: var(--brand); }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Split / Listen ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.list li:last-child { border-bottom: 0; }
.list li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}
.list strong { color: var(--brand); }

/* ---------- Screenshot-Galerie ---------- */

.shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots img {
  flex: none;
  width: 220px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: center;
}

/* ---------- Bundeslaender ---------- */

.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.bl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.bl-card h3 { margin-bottom: 0.35rem; }
.bl-card p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Prosa (SEO-Text) ---------- */

.prose { max-width: 46rem; }
.prose h3 { margin-top: 2rem; color: var(--brand); }
.prose ul { padding-left: 1.2rem; color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- CTA-Panel ---------- */

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-panel h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-panel p { color: rgba(255, 255, 255, 0.86); margin-bottom: 0; }
.cta-panel .button.secondary { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* ---------- Seiten-Hero (Unterseiten) ---------- */

.page-hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--brand-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-hero p { color: var(--muted); margin-bottom: 0; }

.legal { max-width: 48rem; }
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  color: var(--brand);
}
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .muted { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem;
}
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer p { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.9); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
