/* HalalSurf – gemeinsames Stylesheet (Startseite & Unterseiten) */

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ecfdf5;
  --accent: #f97316;
  --bg: #f9fafb;
  --text: #0f172a;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header – scrollt mit der Seite (nicht fixiert) */
header {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #a7f3d0, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ecfdf5;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.35);
}

.brand-text-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand-text-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a {
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  border-bottom-color: rgba(15, 118, 110, 0.4);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.badge-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.btn-primary {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #ecfeff;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.45);
  white-space: nowrap;
}

.btn-primary span.icon { font-size: 1.1rem; }

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.55);
}

.btn-secondary {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.lang-btn {
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: white;
  cursor: pointer;
  color: var(--primary-dark);
  transition: all 0.2s ease;
}

.lang-btn:hover { background: rgba(16, 185, 129, 0.08); }

.lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

.mobile-nav { display: none; width: 100%; }

main { flex: 1; }

section { padding: 2.4rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary-dark);
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}

.hero-badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #a7f3d0, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ecfdf5;
  font-size: 0.8rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
}

.hero-title .highlight { color: var(--primary-dark); }

.hero-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.6rem;
  max-width: 34rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-right { display: flex; justify-content: center; }

/* Klarheit: 3 Säulen */
.clarity-strip {
  padding: 0.5rem 0 2rem;
  background: var(--bg);
}

.clarity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.clarity-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.1rem;
  box-shadow: var(--shadow-subtle);
  text-align: center;
}

.clarity-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--primary-soft);
}

.clarity-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.clarity-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Demo-Video im Handy */
.demo-section {
  padding: 1.5rem 0 2rem;
}

.demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.demo-copy .section-header {
  text-align: left;
  margin-bottom: 0;
}

.demo-copy .section-subtitle {
  margin: 0;
}

.demo-phone {
  display: flex;
  justify-content: center;
}

.phone-mockup--demo {
  width: 240px;
}

.phone-mockup--demo .phone-inner video.phone-screen {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.phone-mockup--sm {
  width: 148px;
  padding: 0.38rem;
  border-radius: 28px;
}

.phone-mockup--sm .phone-notch {
  height: 9px;
  width: 32%;
}

.phone-mockup--sm .phone-inner {
  border-radius: 22px;
}

/* Module-Vorschau (kompakt) */
.modules-preview {
  padding: 1.5rem 0 2rem;
}

.section-header.compact {
  margin-bottom: 1.2rem;
}

.modules-phone-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.module-phone {
  margin: 0;
  text-align: center;
}

.module-phone figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.module-phone .learning-tag {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.65rem;
}

.modules-more {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.modules-more a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clarity-strip {
  padding: 0.25rem 0 1.25rem;
}

@media (max-width: 960px) {
  .demo-row,
  .modules-phone-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-copy .section-header {
    text-align: center;
  }

  .demo-copy .section-subtitle {
    margin: 0 auto;
  }

  .modules-phone-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .modules-phone-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .phone-mockup--sm {
    width: 130px;
  }
}

/* Phone mockup */
.phone-mockup {
  width: 260px;
  max-width: 100%;
  border-radius: 38px;
  padding: 0.55rem;
  background: radial-gradient(circle at 20% 0%, #e0f2fe, #f9fafb);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
}

.phone-inner {
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(15, 23, 42, 0.6);
}

.phone-screen { width: 100%; height: auto; display: block; }

.phone-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 12px;
  border-radius: 999px;
  background: #020617;
  z-index: 2;
}

.phone-shadow {
  position: absolute;
  inset: auto 10% -18px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.35), transparent);
  opacity: 0.9;
  z-index: -1;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.feature-title { font-size: 0.98rem; font-weight: 600; }
.feature-text { font-size: 0.86rem; color: var(--muted); }

/* Learning */
.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.learning-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.learning-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
}

.learning-title { font-size: 0.95rem; font-weight: 600; }
.learning-text { font-size: 0.84rem; color: var(--muted); }

.mini-phone { margin-top: 0.4rem; max-width: 170px; }

.mini-phone .phone-mockup {
  width: 100%;
  padding: 0.4rem;
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.mini-phone .phone-inner { border-radius: 20px; }

.learning-right {
  background: var(--primary-soft);
  border-radius: var(--radius-xl);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.25);
}

.learning-right-title { font-size: 1.1rem; margin: 0 0 0.5rem; }
.learning-right-text { font-size: 0.9rem; color: var(--primary-dark); margin-bottom: 0.8rem; }

.learning-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  color: var(--primary-dark);
}

.learning-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.learning-link {
  font-size: 0.86rem;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Parents */
.parents-section {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 32px;
  padding: 2.1rem 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.7);
}

.parents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.parents-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5f3fc;
  margin-bottom: 0.4rem;
}

.parents-title {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.parents-text { font-size: 0.9rem; color: #cbd5f5; margin-bottom: 0.9rem; }

.parents-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
}

.parents-list li {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.parents-list li span.bullet { color: #22c55e; }

.parents-link {
  font-size: 0.86rem;
  color: #a5f3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.parents-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.parents-phone .phone-mockup {
  background: radial-gradient(circle at 20% 0%, #1e293b, #020617);
  border-color: rgba(148, 163, 184, 0.6);
}

.parents-gallery-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin: 0 0 0.6rem;
}

.parents-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.parents-gallery-item {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.parents-gallery-item:hover {
  border-color: rgba(34, 197, 94, 0.55);
  transform: translateY(-1px);
}

.parents-gallery-item:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.parents-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.parents-gallery-item.is-expanded {
  grid-column: 1 / -1;
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
}

.parents-gallery-item.is-expanded img {
  max-height: min(70vh, 640px);
  margin: 0 auto;
  object-fit: contain;
}

/* Mission */
.mission {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.mission-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-subtle);
}

.mission-title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.mission-text { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
}

.mission-list li {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.mission-list li span.bullet { color: var(--primary-dark); }

.mission-link {
  font-size: 0.86rem;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mission-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.mission-image img { width: 100%; height: auto; }

/* CTA band */
.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-dark), #0ea5e9);
  color: #ecfeff;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0 0 1.2rem;
  opacity: 0.92;
  font-size: 0.95rem;
}

.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* Footer */
footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  margin-top: 2.4rem;
}

.footer-inner {
  padding: 1.6rem 0 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.8rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand .brand { margin-bottom: 0.2rem; }

.footer-links { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }

.footer-legal-row,
.footer-social-row,
.footer-store-row {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social-row a {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.footer-social-row svg {
  width: 28px;
  height: 28px;
  fill: var(--muted);
}

.store-icon { height: 40px; width: auto; }

.footer-bottom {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .clarity-grid,
  .learning-layout,
  .parents-layout,
  .mission,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right { order: -1; }
  .parents-section { padding: 2rem 1.5rem; border-radius: var(--radius-xl); }
}

@media (max-width: 820px) {
  nav { display: none !important; }

  .mobile-toggle { display: block !important; }

  .mobile-nav {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    background: var(--bg);
  }

  .mobile-nav.open { display: block !important; }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--muted);
  }

  .mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .mobile-lang-switch {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .features-grid,
  .learning-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .mini-phone { margin-left: auto; margin-right: auto; }

  .footer-legal-row,
  .footer-social-row,
  .footer-store-row {
    justify-content: center !important;
  }
}

@media (max-width: 640px) {
  .hero { padding: 2rem 0 1rem; }
  .hero-title { font-size: 1.85rem; }
  section { padding: 1.8rem 0; }
  .clarity-grid { grid-template-columns: 1fr; }
}
