/* reframe Landingpage
   Farben und Formen aus der Mini-CI. Oswald Regular steht vorerst für Asgard Fit,
   Montserrat ist die Textschrift. Alle Schriften liegen lokal, nichts wird von
   Drittanbietern geladen. */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff4600;
  --orange-text: #c23600;   /* Orange für kleine Schrift auf hellem Grund, erfüllt WCAG AA */
  --lilac: #cdb4ff;
  --lilac-200: #e6c8ff;
  --lilac-50: #faebff;
  --lilac-700: #9678c8;
  --cream: #f8f3e8;
  --sand: #efe7d5;
  --ink: #282828;
  --ink-2: #4b4b4b;
  --white: #ffffff;

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --shell: 1240px;
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

/* hidden muss auch gegen display: grid/flex der Komponenten gewinnen */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lilac-50);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, dl, dd, figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .005em;
}

.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section--ink :focus-visible { outline-color: var(--lilac); }

.skip {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Die CI-Form: Fläche mit schräger, abgerundeter Kante rechts ----------
   Die Kappe ist ein SVG im Seitenverhältnis 1,2 : 1 und skaliert mit der Höhe,
   deshalb braucht jedes Element eine feste Höhe über --h. */

.cut {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  height: var(--h);
  padding: 0 calc(var(--h) * 1.05) 0 calc(var(--h) * .42);
  border-radius: calc(var(--h) * .26) 0 0 calc(var(--h) * .26);
  background-color: transparent;   /* sonst scheint bei <button> das Grau des Browsers neben der Schräge durch */
  background-repeat: no-repeat;
  background-position: right center, left center;
  background-size: auto 100%, calc(100% - var(--h) * 1.2 + 1px) 100%;
  text-decoration: none;
  white-space: nowrap;
}
.cut--lilac  { background-image: url("../img/cut-lilac.svg"),  linear-gradient(var(--lilac), var(--lilac)); color: var(--ink); }
.cut--orange { background-image: url("../img/cut-orange.svg"), linear-gradient(var(--orange), var(--orange)); color: var(--ink); }
.cut--ink    { background-image: url("../img/cut-ink.svg"),    linear-gradient(var(--ink), var(--ink)); color: var(--lilac-50); }

.label {
  --h: 34px;
  font-family: var(--body);
  line-height: 1;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Kopf ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: var(--gutter);
}

.brand {
  --h: clamp(76px, 9vw, 108px);
  padding-left: var(--gutter);
  padding-right: calc(var(--h) * 1.3);
  border-radius: 0;
}
.brand img { width: auto; height: calc(var(--h) * .4); }

.header-link {
  font-weight: 600;
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.header-link:hover { color: var(--orange-text); }

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

.btn {
  --h: 58px;
  font-size: 1.1875rem;   /* 19px fett = große Schrift, Kontrast Ink auf Orange reicht */
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.btn .arrow { display: inline-block; transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }
.btn.cut--orange:hover,
.btn.cut--orange:focus-visible {
  background-image: url("../img/cut-ink.svg"), linear-gradient(var(--ink), var(--ink));
  color: var(--white);
}
.btn[disabled] { cursor: progress; opacity: .7; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--orange-text); }

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

.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 9vw, 128px); overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; color: var(--orange-text); }

.hero__title {
  margin: .3em 0 .5em;
  font-size: clamp(3.1rem, 7.2vw, 6.5rem);
  line-height: 1.02;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--orange); }

.lead { max-width: 33em; font-size: clamp(1.0625rem, 1.45vw, 1.2rem); line-height: 1.65; }

.chip { --h: 46px; margin-top: 30px; font-size: .95rem; }
.chip strong { font-weight: 700; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 34px;
}

.hero__visual svg { width: 100%; height: auto; overflow: visible; }
.hero__visual .v { transform-box: fill-box; transform-origin: 50% 50%; }
.hero__visual .v-signet { transform-origin: 50% 100%; }

/* ---------- Streifenband ---------- */

.stripes {
  height: clamp(36px, 4.5vw, 60px);
  background-image: repeating-linear-gradient(-45deg, var(--lilac) 0 12px, transparent 12px 24px);
}

/* ---------- Sektionen ---------- */

.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--cream { background: var(--cream); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head__title { display: grid; justify-items: start; gap: 22px; }
.section-title { font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
.section-head p { max-width: 34em; }
.section-head__text p + p { margin-top: 1em; }

/* reconnect: drei Karten */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: 32px 30px 38px;
  border-radius: var(--radius);
  background: var(--lilac-200);
}
.card:nth-child(2) { background: var(--lilac); }
.card:nth-child(3) { background: var(--sand); }
.card__num { font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--orange); }
.card:nth-child(3) .card__num { color: var(--orange-text); }
.card h3 { margin-top: 8px; font-size: clamp(1.8rem, 2.6vw, 2.25rem); }
.card p { font-size: 1rem; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.about__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--white);
}
.about__item svg { width: 34px; height: auto; margin-top: 4px; }
.about__item strong { font-weight: 700; }

/* Termin: die eine dunkle Sektion */

.section--ink { position: relative; overflow: hidden; background: var(--ink); color: var(--lilac-50); }
.section--ink::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -12%;
  width: 46%;
  height: 120%;
  background-image: repeating-linear-gradient(-45deg, rgba(205, 180, 255, .13) 0 14px, transparent 14px 28px);
  transform: skewX(-18deg);
  pointer-events: none;
}
.section--ink .shell { position: relative; }

.termin {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: end;
}
.termin__intro { display: grid; justify-items: start; gap: 26px; }
.termin__date {
  font-family: var(--display);
  font-size: clamp(4.6rem, 15vw, 12rem);
  line-height: .92;
  letter-spacing: -.005em;
  color: var(--lilac);
}
.termin__date .year { display: block; color: var(--orange); }

.facts { border-top: 1px solid rgba(250, 235, 255, .28); }
.facts > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(250, 235, 255, .28);
}
.facts dt { font-weight: 700; color: var(--lilac); }
.termin .btn { margin-top: 32px; }

/* Anmeldung */

.signup {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 56px clamp(32px, 6vw, 96px);
  align-items: start;
}
.signup__intro { display: grid; justify-items: start; gap: 24px; }
.signup__intro .section-title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }

.benefits { display: grid; gap: 12px; padding: 0; list-style: none; }
.benefits li { display: grid; grid-template-columns: 1.4em minmax(0, 1fr); gap: 8px; }
.benefits li::before { content: "→"; font-weight: 700; color: var(--orange-text); }

.form-card {
  position: relative;
  padding: clamp(44px, 5vw, 60px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--white);
}
.form-card > .label { position: absolute; top: -17px; left: clamp(24px, 4vw, 48px); }

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: .95rem; font-weight: 600; }

.field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.field input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.field input[aria-invalid="true"], .consent input[aria-invalid="true"] { border-color: var(--orange-text); outline-color: var(--orange-text); }

.error { font-size: .9rem; font-weight: 600; color: var(--orange-text); }

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 26px 0 8px;
  font-size: .875rem;
  line-height: 1.55;
}
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.consent + .error { margin-left: 34px; }

.form .btn { margin-top: 24px; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffe4d9;
  color: #8a2600;
  font-size: .95rem;
  font-weight: 600;
}
.form-note { margin-top: 18px; font-size: .85rem; color: var(--ink-2); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ALTCHA-Spamschutz in den Farben und Formen des Formulars */
.captcha {
  margin-top: 22px;
  --altcha-color-base: var(--white);
  --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--ink);
  --altcha-color-primary-content: var(--white);
  --altcha-border-color: var(--ink);
  --altcha-border-width: 2px;
  --altcha-border-radius: 12px;
  --altcha-checkbox-border-color: var(--ink);
  --altcha-checkbox-border-width: 2px;
  --altcha-checkbox-outline-color: var(--orange);
  --altcha-max-width: 100%;
}
.captcha altcha-widget { display: block; font-family: var(--body); }

.success { display: grid; gap: 16px; }
.success svg { width: 48px; height: auto; }
.success h3 { font-size: clamp(2.2rem, 4vw, 3rem); }
.success h3:focus { outline: none; }

/* ---------- Fuß ---------- */

.site-footer { padding: 52px 0 40px; background: var(--lilac); }
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}
.footer__logo img { width: auto; height: 42px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 0; list-style: none; font-weight: 600; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__meta { margin-top: 32px; font-size: .85rem; }

/* ---------- Rechtstexte ---------- */

.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 128px); }
.legal .shell { max-width: 780px; }
.legal h1 { margin-bottom: .6em; font-size: clamp(2.8rem, 6vw, 4.4rem); }
.legal h2 { margin: 2.2em 0 .6em; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.legal h3 { margin: 1.6em 0 .4em; font-family: var(--body); font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.legal p, .legal ul { margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.legal a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal .stand { margin-top: 3em; font-size: .9rem; color: var(--ink-2); }

.todo {
  padding: 0 .3em;
  border-radius: 4px;
  outline: 1px dashed var(--orange);
  background: #ffdccc;
}

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { transform: translateY(110%); animation: rise 1s var(--ease-out) forwards; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
  .js .hero__title .line:nth-child(3) > span { animation-delay: .24s; }

  .js .hero [data-hero] { opacity: 0; transform: translateY(18px); animation: fade-up .8s var(--ease-out) forwards; }
  .js .hero [data-hero="1"] { animation-delay: .05s; }
  .js .hero [data-hero="2"] { animation-delay: .42s; }
  .js .hero [data-hero="3"] { animation-delay: .54s; }
  .js .hero [data-hero="4"] { animation-delay: .66s; }

  .js .v-a { animation: slide-l 1.1s .15s var(--ease-out) both; }
  .js .v-b { animation: slide-r 1.1s .3s var(--ease-out) both; }
  .js .v-c { animation: pop .9s .5s var(--ease-out) both; }
  .js .v-signet { animation: drop 1.05s .6s cubic-bezier(.34, 1.45, .64, 1) both; }
  .js .v-float { animation: float 7s 1.8s ease-in-out infinite alternate; transform-box: fill-box; }

  .stripes { animation: stripes 24s linear infinite; }

  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .js [data-reveal="2"] { transition-delay: .1s; }
  .js [data-reveal="3"] { transition-delay: .2s; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@keyframes rise    { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes slide-l { from { opacity: 0; transform: translateX(-70px); } }
@keyframes slide-r { from { opacity: 0; transform: translateX(70px); } }
@keyframes pop     { from { opacity: 0; transform: scale(.6); } }
@keyframes drop    { from { opacity: 0; transform: translateY(-140px) rotate(-10deg); } }
@keyframes float   { to { transform: translateY(-14px); } }
/* 339.41px = zehn Streifenperioden, damit die Schleife nahtlos ist */
@keyframes stripes { to { background-position: 339.41px 0; } }

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

@media (max-width: 960px) {
  .hero__grid, .section-head, .termin, .signup { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { width: min(420px, 88%); margin-inline: auto; }
  .about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .hero__visual { display: none; }  /* Die Formen-Grafik wirkt nur auf breiten Bildschirmen */
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .card h3 { margin-top: 8px; }
  .facts > div { grid-template-columns: 6rem minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .header-link { font-size: .875rem; }
  .actions .btn { width: 100%; justify-content: space-between; }
  .form .btn { width: 100%; justify-content: space-between; }
  .chip { font-size: .85rem; }
}
