/* ============================================================
   Rappideutsch — prototype stylesheet
   All brand colours live in :root so they are easy to tweak
   while iterating on look & feel.
   ============================================================ */

:root {
  /* Brand palette (pulled from the logo) */
  --navy:        #173a5e;
  --navy-soft:   #25527c;
  --blue:        #2e7fb8;
  --blue-dark:   #246295;
  --sky:         #8fcde8;
  --sky-soft:    #eaf4fb;
  --sky-tint:    #f4fafd;
  --red:         #e1352b;   /* Swiss-red accent, used sparingly */
  --whatsapp:    #25d366;
  --whatsapp-dk: #1da851;

  --ink:         #1d2b39;   /* body text */
  --ink-soft:    #4c5d6e;   /* muted text */
  --line:        #e2ebf2;
  --white:       #ffffff;

  --shadow-sm: 0 2px 8px rgba(23, 58, 94, .06);
  --shadow-md: 0 12px 30px rgba(23, 58, 94, .10);
  --shadow-lg: 0 24px 60px rgba(23, 58, 94, .14);

  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1140px;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.2rem);
}

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-tint  { background: var(--sky-tint); }
.section-sky   { background: var(--sky-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--white);
  border: 1px solid var(--line);
  padding: .4rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p  { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-soft); color: #fff; box-shadow: var(--shadow-md); }

.btn-whatsapp { background: var(--whatsapp); color: #06351c; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: var(--whatsapp-dk); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--white); }

.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
  padding: .3rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .9rem; }

/* language switcher */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
}
.lang-switch a {
  padding: .35rem .7rem;
  color: var(--ink-soft);
  background: var(--white);
}
.lang-switch a.active { background: var(--navy); color: #fff; }
.lang-switch a:not(.active):hover { background: var(--sky-soft); color: var(--navy); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--sky-soft) 0%, rgba(234,244,251,0) 60%),
    linear-gradient(180deg, #fff 0%, var(--sky-tint) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  margin-bottom: .4em;
}
.hero-copy h1 .accent { color: var(--blue); }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 33ch;
  margin-bottom: 1.7rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.3rem;
  font-size: .92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust svg { width: 1.05em; height: 1.05em; color: var(--blue); }

/* hero image with decorative blob + floating badge */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(420px, 90%);
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--sky) 0%, var(--blue) 100%);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px);
  opacity: .9;
  z-index: 0;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(23,58,94,.28));
}
.hero-badge {
  position: absolute;
  z-index: 2;
  bottom: 8%;
  left: -2%;
  background: #fff;
  border-radius: 16px;
  padding: .7rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-head);
}
.hero-badge .badge-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--sky-soft);
  color: var(--blue-dark);
  display: grid; place-items: center;
}
.hero-badge .badge-icon svg { width: 20px; height: 20px; }
.hero-badge b { color: var(--navy); font-size: 1rem; display: block; line-height: 1.1; }
.hero-badge small { color: var(--ink-soft); font-size: .78rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.teacher-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); margin-bottom: .1rem; }
.teacher-role { color: var(--blue-dark); font-weight: 600; font-size: .95rem; margin-bottom: 1.2rem; }
.placeholder { color: var(--blue-dark); background: #fff7d6; border-radius: 4px; padding: 0 .25em; box-shadow: inset 0 0 0 1px #f0e0a0; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--sky-soft);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  padding: .45rem .9rem;
  border-radius: 999px;
}
.chips svg { width: 1.05em; height: 1.05em; color: var(--blue); }

/* ---------- Courses ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-card .level-tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--sky-soft);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.course-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.course-card p { color: var(--ink-soft); margin-bottom: 1rem; }
.course-card .steps {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
}
.course-card .steps li {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy-soft);
  background: var(--sky-tint);
  border: 1px solid var(--line);
  padding: .2rem .55rem;
  border-radius: 7px;
}

/* highlighted (signature) cards */
.course-card.featured {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-color: transparent;
  color: #eaf2f9;
}
.course-card.featured h3 { color: #fff; }
.course-card.featured p { color: #c8dcec; }
.course-card.featured .level-tag { background: rgba(255,255,255,.16); color: #fff; }
.course-card.featured .steps li { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color: #eaf2f9; }
.course-card.featured .level-tag .star { color: #ffd24d; }

/* ---------- Prices ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  max-width: 1000px;
  margin: 0 auto;
}
.price-card .price {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: .2rem 0 .7rem;
}
.price-card .price b { font-size: 2.2rem; font-weight: 700; color: var(--blue-dark); }
.price-card .price span { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.price-card .price-note { font-size: .95rem; }
.price-card.featured .price b { color: #fff; }
.price-card.featured .price span { color: #c8dcec; }

/* ---------- Why us ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.feature .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--sky) 0%, var(--blue) 100%);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Contact / CTA ---------- */
.cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: #eaf2f9;
}
.cta .wrap { text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.cta-lead { color: #c8dcec; font-size: 1.15rem; max-width: 50ch; margin: 0 auto 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-bottom: 2.4rem; }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.cta .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2.5rem;
}
.contact-info .item { display: inline-flex; align-items: center; gap: .7rem; font-weight: 500; }
.contact-info .item a { color: #fff; font-weight: 600; }
.contact-info .ico-c {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
}
.contact-info .ico-c svg { width: 19px; height: 19px; color: var(--sky); }
.contact-info .item small { display: block; color: #9fbdd6; font-weight: 500; font-size: .78rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f2a45;
  color: #aac3da;
  padding: 3rem 0 2rem;
  font-size: .94rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.footer-brand img { height: 60px; width: auto; }
.footer-brand p { margin: .8rem 0 0; max-width: 30ch; color: #8fb0cb; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-cols h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .5rem; }
.footer-cols a { color: #aac3da; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  color: #7d9cb8;
  font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .8rem clamp(1.1rem, 4vw, 2.2rem) 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: .65rem 0; }
  .nav-links a::after { display: none; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-photo { width: min(320px, 80%); }
  .hero-blob { width: min(320px, 78%); }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: 2; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 480px) {
  .nav-actions .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
