/* einladung.css — Einladungsseite "Das Ritual vom Gehen & Werden"
   Plakat fürs Web: Herrmannsdorfer-Grün, großes "Einladung", Termin + Button
   immer im ersten sichtbaren Bereich (Desktop und Mobil). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/BricolageGrotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/BricolageGrotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --hd-green:  #007854;   /* Grünton von herrmannsdorfer.de */
  --hd-wine:   #911432;   /* Akzent für Links/Buttons auf herrmannsdorfer.de */
  --hd-cream:  #DBD4C2;   /* Beige von herrmannsdorfer.de */
  --teal-deep: #051D23;   /* Hintergrund der Hauptseite */
  --font: 'Bricolage Grotesque', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg, var(--hd-green));
  color: #fff;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.inv--green { --bg: var(--hd-green); }
.inv--teal  { --bg: var(--teal-deep); }

/* Farbe des Haupt-Buttons (in der Vorschau mit ?cta=white|wine|cream vergleichbar) */
.inv-cta--white { --cta-bg: #fff;            --cta-fg: var(--hd-green); }
.inv-cta--wine  { --cta-bg: var(--hd-wine);  --cta-fg: #fff; }
.inv-cta--cream { --cta-bg: var(--hd-cream); --cta-fg: #0a3b2c; }

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

.inv-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ── Kopfzeile: Herrmannsdorfer × Rebecca Gischel ───────────────── */

.inv-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(12px, min(2vw, 2.6vh), 26px) 0 0;
}
.inv-top__logo { width: clamp(118px, 13vw, 190px); height: auto; }
.inv-top__x    { font-size: clamp(18px, 2vw, 26px); font-weight: 600; line-height: 1; }
.inv-top__name {
  font-size: clamp(14px, 1.7vw, 23px);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Hero: links Botschaft + Button, rechts die Fotos ───────────── */

.inv-hero {
  --t: clamp(44px, min(6.9vw, 10.4vh), 100px);   /* Titelgröße (auch von der Fensterhöhe abhängig, damit der Button sichtbar bleibt) */
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
  padding: clamp(14px, min(3.2vw, 4vh), 48px) 0 clamp(48px, 6vw, 88px);
}
.inv-main  { grid-column: 1; grid-row: 1; }
.inv-side  { grid-column: 2; grid-row: 1 / 3; display: grid; gap: clamp(12px, 1.6vw, 22px); }
.inv-texts { grid-column: 1; grid-row: 2; }

/* "Einladung" groß, darunter der Titel */
.inv-eyebrow {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15em .8em;
  margin-bottom: .2em;
}
.inv-eyebrow__big {
  font-size: clamp(34px, min(4.8vw, 7.6vh), 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--hd-cream);
}
.inv-eyebrow__small {
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.inv-title {
  font-size: var(--t);
  line-height: .96;
  font-weight: 600;
  letter-spacing: -.025em;
  margin-bottom: clamp(16px, min(2.6vw, 3.6vh), 38px);
}

/* Termin + Button */
.inv-day {
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: .5em;
}
.inv-date {
  font-size: clamp(28px, min(3.4vw, 5.4vh), 50px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap;           /* Datum und Uhrzeit in einer Zeile */
}
.inv-date sup { font-size: .5em; line-height: 0; vertical-align: .82em; margin: 0 .08em 0 .04em; }
.inv-dot { margin: 0 .12em; }
.inv-date--thanks { white-space: normal; }
.inv-place {
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.3;
  font-weight: 600;
  margin-top: .9em;
}
.inv-free { font-size: clamp(14px, 1.15vw, 16px); font-weight: 500; margin-top: .55em; }

.inv-cta { margin-top: clamp(16px, min(2.4vw, 3.4vh), 32px); }

.btn {
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .15s ease, color .15s ease, transform .15s ease, filter .15s ease;
}
.btn:focus-visible, .inv-links a:focus-visible, .inv-links button:focus-visible, .inv-foot a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Haupt-Button: das größte, farbigste Element unter dem Titel */
.btn--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-size: clamp(18px, 1.6vw, 22px);
  padding: clamp(14px, min(1.5vw, 2.4vh), 21px) clamp(30px, 2.8vw, 44px);
  border: 0;
  border-radius: 999px;
  background: var(--cta-bg, #fff);
  color: var(--cta-fg, var(--hd-green));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}
.btn--cta:hover { transform: translateY(-2px); filter: brightness(.96); }
.btn__arrow { font-size: 1.1em; transition: transform .15s ease; }
.btn--cta:hover .btn__arrow { transform: translateX(4px); }

/* Nebenaktionen als schlichte Textlinks, damit nur EIN Button um Aufmerksamkeit konkurriert */
.inv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(16px, 2vw, 26px);
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
}
.inv-links a, .inv-links button {
  font: inherit;
  color: #fff;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.inv-links a:hover, .inv-links button:hover { text-decoration-thickness: 2.5px; }

/* Fotos */
.inv-photo { margin: 0; overflow: hidden; background: rgba(255,255,255,.12); }
.inv-photo img { width: 100%; height: 100%; object-fit: cover; }
.inv-photo--a { aspect-ratio: 3 / 2; }
.inv-photo--b { aspect-ratio: 1 / 1; }

/* Texte unter dem Button */
.inv-texts { margin-top: clamp(36px, 4.4vw, 64px); }
.inv-texts__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.45;
  font-weight: 500;
}
.inv-texts__cols p + p { margin-top: .8em; }
.inv-texts__cta { margin-top: clamp(26px, 3vw, 40px); }

/* Testvariante: Seite im Teal der Hauptseite, nur der Termin-Kasten grün */
.inv--teal .inv-box {
  background: var(--hd-green);
  padding: clamp(22px, 2.6vw, 40px);
}

/* ── Fußzeile ───────────────────────────────────────────────────── */

.inv-foot {
  border-top: 1px solid rgba(255,255,255,.4);
  padding: 22px 0 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: 15px;
}
.inv-foot__main { font-weight: 600; text-decoration: none; }
.inv-foot__main:hover { text-decoration: underline; text-underline-offset: 4px; }
.inv-foot__legal { display: flex; gap: 22px; }
.inv-foot__legal a { opacity: .85; }

/* ── Feste Leiste unten (nur mobil) ─────────────────────────────── */

.inv-sticky { display: none; }

/* ── Anmeldung "Ich bin dabei" (offen am Seitenende; die Buttons scrollen hierher) ── */

.inv-signup {
  scroll-margin-top: 12px;
  padding: clamp(36px, 5vw, 72px) 0 clamp(44px, 6vw, 88px);
  border-top: 1px solid rgba(255,255,255,.4);
}
.inv-signup__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.inv-signup__intro h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.025em;
}
.inv-signup__lead {
  margin-top: .8em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
  font-weight: 600;
}
/* Formular-Karte: siehe form.css */

/* ── Mobil: gestapelt, Termin + Button direkt unter dem Titel ───── */

@media (max-width: 720px) {
  .inv-wrap { padding: 0 20px; }
  .inv-top { padding-top: 16px; }
  .inv-top__logo { width: 112px; }
  .inv-top__x { font-size: 17px; }
  .inv-top__name { font-size: 13px; letter-spacing: .05em; }

  .inv-hero {
    --t: clamp(40px, 12.6vw, 64px);
    display: block;
    padding: 20px 0 110px;     /* unten Platz für die feste Button-Leiste */
  }
  .inv-eyebrow__big { font-size: clamp(38px, 11.5vw, 52px); }
  .inv-eyebrow__small { font-size: 12px; }
  .inv-title { margin-bottom: 22px; }

  .inv-date { font-size: clamp(22px, 6.9vw, 34px); }
  .inv-place { font-size: 17px; margin-top: .7em; }
  .btn--cta { display: flex; width: 100%; font-size: 19px; padding: 18px 24px; }
  .inv-links { justify-content: center; margin-top: 14px; font-size: 15px; }

  .inv-side { margin: 34px -20px 0; gap: 12px; }
  .inv-texts { margin-top: 32px; }
  .inv-texts__cols { grid-template-columns: 1fr; font-size: 17px; row-gap: .8em; }

  .inv--teal .inv-box { margin: 0 -20px; padding: 24px 20px; }

  .inv-signup__grid { grid-template-columns: 1fr; row-gap: 24px; }
  .inv-signup__card { justify-self: stretch; max-width: none; }

  .inv-sticky {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg, var(--hd-green));
    border-top: 1px solid rgba(255,255,255,.28);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .inv-sticky.is-on { transform: none; }
  .inv-sticky .btn--cta { box-shadow: none; }
}
