/* ==========================================================================
   LinguaLena – Stylesheet
   1. Schriften
   2. Variablen & Basis
   3. Layout-Helfer
   4. Header & Navigation
   5. Hero
   6. Inhaltsbereiche
   7. Preise & Kontakt
   8. Rechtstexte
   9. Footer
   10. Responsive
   ========================================================================== */

/* 1. Schriften (lokal gehostet, keine Verbindung zu Google) ---------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 2. Variablen & Basis ------------------------------------------------------ */
:root {
  --color-primary: #6100a3;
  --color-primary-dark: #48007a;
  --color-primary-light: #c9ace2;
  --color-tint: #f6f0fb;
  --color-text: #2b2433;
  --color-muted: #6b6275;
  --color-border: #e6dcef;
  --color-white: #fff;

  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(72, 0, 122, 0.10);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-primary-dark);
  margin: 0 0 0.75em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* 3. Layout-Helfer ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
  color: var(--color-white);
}

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}
.btn--light {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn--light:hover {
  background: var(--color-tint);
  color: var(--color-primary-dark);
}

/* 4. Header & Navigation ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-primary);
}
.brand img {
  width: 52px;
  height: 52px;
}
.brand__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand__claim {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__list {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--color-primary);
}

.lang-switch {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 3px;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.lang-switch a {
  display: block;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  text-decoration: none;
}
.lang-switch a:hover {
  color: var(--color-primary);
}
.lang-switch a[aria-current="true"] {
  background: var(--color-primary);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 3px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--color-primary);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Hero ------------------------------------------------------------------- */
/* header-lena.jpg (3200×700): Foto links, rechts weicher Grauverlauf –
   hoch genug aufgelöst, um auch auf Retina-Displays scharf zu bleiben */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  background: #e2e4e6 url("../img/header-lena.jpg") left center / cover no-repeat;
}
.hero__content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  justify-content: flex-end;
}
.hero__text {
  max-width: 520px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}
.hero__text > :last-child {
  margin-bottom: 0;
}
.hero__text h1 {
  margin-bottom: 0.4em;
}
.hero__lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
}
.hero__facts {
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}
.hero__facts li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.3em;
}
.hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: inset 0 0 0 3px var(--color-primary);
}

/* 6. Inhaltsbereiche -------------------------------------------------------- */
.section {
  padding: 88px 0;
}
.section--tint {
  background: var(--color-tint);
}

.section__intro {
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media {
  order: 2;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
.levels li {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-primary-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.callout {
  padding: 20px 24px;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-white);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p {
  margin: 0;
}
.card__link {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.card__link::after {
  content: " →";
}
.card__link:hover {
  text-decoration: underline;
}

/* Zweiter Block innerhalb eines Abschnitts (z. B. Russischkurse) */
.sub-split {
  margin-top: 72px;
}

/* Leistungsliste Relocation */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding: 18px 20px 18px 52px;
  border-radius: var(--radius);
  background: var(--color-white);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist strong {
  color: var(--color-primary-dark);
}

.notice {
  max-width: 760px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Über mich: Logo + Text */
.about {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 920px;
}
.about__logo {
  width: 200px;
  height: 200px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 0;
}
.gallery figure {
  margin: 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* 7. Preise & Kontakt ------------------------------------------------------- */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  text-align: center;
}
.price--highlight {
  border: 2px solid var(--color-primary);
}
.price__amount {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
}
.price__amount--text {
  font-size: 1.8rem;
  padding: 0.2em 0;
}
.price__unit {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
}
.price__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
}
.prices__notes {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.contact {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
}
.contact h2 {
  color: var(--color-white);
}
.contact p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.contact__phone {
  display: inline-flex;
  align-items: center;
  padding: 0.85em 1.6em;
}

/* Telefonnummer als Bild (Schutz vor automatischem Auslesen) */
.phone-img {
  display: inline-block;
  width: auto;
  height: 1.2em;
  vertical-align: -0.28em;
}

/* 8. Rechtstexte ------------------------------------------------------------ */
.legal {
  padding: 64px 0 88px;
}
.legal .container {
  max-width: 820px;
}
.legal h2 {
  margin-top: 1.8em;
  font-size: 1.4rem;
}
.legal h3 {
  margin-top: 1.4em;
}
.legal address {
  font-style: normal;
  margin-bottom: 1em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal__note {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--color-tint);
  font-size: 0.95rem;
}

/* 9. Footer ----------------------------------------------------------------- */
.site-footer {
  padding: 28px 0;
  background: #24182e;
  color: #d8cde3;
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer p {
  margin: 0;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: #d8cde3;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Footer-Link als Button (öffnet die Datenschutz-Einstellungen) */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #d8cde3;
  cursor: pointer;
}
.link-button:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Einwilligungs-Banner ------------------------------------------------------ */
.consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 16px 48px rgba(36, 24, 46, 0.28);
  font-size: 0.92rem;
  line-height: 1.55;
}
.consent[hidden] {
  display: none;
}
.consent__title {
  margin-bottom: 0.5em;
  font-size: 1.15rem;
}
.consent__intro {
  margin-bottom: 16px;
}
.consent__options {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.consent__options[hidden] {
  display: none;
}
.consent__option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--color-tint);
  cursor: pointer;
}
.consent__option input {
  margin-top: 4px;
  accent-color: var(--color-primary);
}
.consent__option strong,
.consent__option small {
  display: block;
}
.consent__option small {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
/* Akzeptieren und Ablehnen bewusst gleichwertig gestaltet */
.consent__btn {
  padding: 0.7em 1em;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.consent__btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.consent__btn--ghost {
  grid-column: 1 / -1;
  background: transparent;
  color: var(--color-primary);
}
.consent__btn--ghost:hover {
  background: var(--color-tint);
  color: var(--color-primary-dark);
}
.consent__btn[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .consent {
    right: 16px;
    bottom: 16px;
    padding: 20px;
  }
  .consent__actions {
    grid-template-columns: 1fr;
  }
}

/* 10. Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px 24px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .site-nav__list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .lang-switch {
    align-self: flex-start;
  }
}

@media (max-width: 900px) {
  .cards,
  .prices,
  .checklist {
    grid-template-columns: 1fr;
  }
  .prices {
    max-width: 480px;
  }
}

/* Hero: unterhalb von 1100px Foto oben, Text darunter (sonst verdeckt der Text das Foto) */
@media (max-width: 1100px) {
  .hero {
    display: block;
    min-height: 0;
    background: var(--color-tint);
  }
  .hero::before {
    content: "";
    display: block;
    height: clamp(240px, 45vw, 440px);
    background: #e2e4e6 url("../img/lena-portrait-1200.jpg") center 8% / cover no-repeat;
  }
  .hero__content {
    justify-content: flex-start;
    padding: 0 24px 48px;
  }
  .hero__text {
    max-width: 680px;
    margin-top: -48px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .hero__text {
    padding: 24px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sub-split {
    margin-top: 56px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: center;
  }
  .about__logo {
    width: 140px;
    height: 140px;
  }
  .split--reverse .split__media {
    order: 0;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .brand__claim {
    display: none;
  }
}

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

/* Muster-Widerrufsformular -------------------------------------------------- */
.withdrawal-form {
  margin-top: 48px;
  padding: 28px 32px;
  border: 2px dashed var(--color-primary-light);
  border-radius: var(--radius);
}
.withdrawal-form h2 {
  margin-top: 0;
}
.withdrawal-form ul {
  padding-left: 0;
  list-style: none;
}
.withdrawal-form li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.withdrawal-form li::before {
  content: "– ";
}

/* Druckansicht -------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .consent,
  .no-print {
    display: none !important;
  }
  body {
    color: #000;
    font-size: 11pt;
  }
  a {
    color: #000;
  }
  .legal {
    padding: 0;
  }
  .legal__note {
    background: none;
    padding: 0;
  }
  .withdrawal-form {
    break-before: page;
    border: 0;
    padding: 0;
  }
  .withdrawal-form li {
    padding: 14px 0 28px;
  }
}

/* Gesamtpreis beim Paket (klein unter dem Stückpreis) */
.price__total {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Untertitel in der H1 (Suchbegriffe + Ort, optisch zurückgenommen) */
.hero__subtitle {
  display: block;
  margin-top: 0.6em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-muted);
}

/* FAQ-Akkordeon --------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}
.faq__item summary {
  position: relative;
  padding: 18px 56px 18px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
}
.faq__item[open] summary::after {
  content: "–";
}
.faq__item p {
  margin: 0;
  padding: 0 24px 20px;
}

/* Druck / PDF: Seitenränder, Absenderzeile, Seitenzahlen --------------------- */
@page {
  size: A4;
  margin: 18mm 18mm 20mm;
  @bottom-right {
    content: counter(page) " / " counter(pages);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 8pt;
    color: #666;
  }
  @bottom-left {
    content: "LinguaLena · Elena Helten · Krummenwegerstr. 52 · 40885 Ratingen";
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 8pt;
    color: #666;
  }
}
@media print {
  .legal .container {
    max-width: none;
    padding: 0;
  }
  .legal .container::before {
    content: "LinguaLena · Elena Helten · Krummenwegerstr. 52 · 40885 Ratingen · lena@lingualena.de";
    display: block;
    margin-bottom: 14pt;
    padding-bottom: 6pt;
    border-bottom: 1px solid #ccc;
    font-size: 8.5pt;
    color: #555;
  }
  .legal h1 {
    font-size: 22pt;
  }
  .legal h2 {
    font-size: 13pt;
    margin-top: 16pt;
  }
  .legal h3 {
    font-size: 11pt;
  }
  .legal h2,
  .legal h3 {
    break-after: avoid;
  }
  .legal p,
  .legal li {
    orphans: 3;
    widows: 3;
  }
  .legal a {
    text-decoration: none;
  }
}
