/* ==========================================================================
   1. touvia.MAPS Anwendertreffen – Landing-Page
   Eigenständiges Stylesheet, bewusst OHNE Abhängigkeit vom WordPress-Theme.
   Die Werte sind der vianovis-Website nachgebaut (Stand 07/2026), nicht
   von dort eingebunden – Theme-Änderungen brechen diese Seite also nicht.
   ========================================================================== */

/* --- Design-Tokens: alle Farb-/Typo-Anpassungen passieren hier ----------- */
:root {
  /* Marke */
  --color-brand:        #bc2a83; /* Magenta der Hero-Badges auf vianovis.de */
  --color-brand-dark:   #9c1f6c;
  --color-accent:       #f15221; /* Dunkle Koralle der Website */
  --color-cta:          #f15221;
  --color-cta-dark:     #d16847; /* Hover-Ton der Website */
  --color-link:         #b8552f; /* Fließtext-Links: 4,8:1 auf Weiß ✔ */
  --color-link-dark:    #96421f;
  --color-tint:         #fce6d8; /* Koralle-Tint für Flächen */

  /* Text & Flächen */
  --color-text:         #555555;
  --color-heading:      #2e2e2e;
  --color-muted:        #6b6b6b; /* 5,7:1 auf Weiß ✔ */
  --color-bg:           #ffffff;
  --color-surface:      #f6f6f6;
  --color-border:       #d5d5d5;
  --color-footer-bg:    #3a3a3a;
  --color-footer-text:  #d9d9d9;

  /* Status */
  --color-error:        #b3261e; /* 6,2:1 auf Weiß ✔ */
  --color-error-bg:     #fdf0ef;
  --color-success:      #1a6b45; /* 5,6:1 auf Weiß ✔ */
  --color-success-bg:   #edf7f2;

  /* Typografie */
  --font-base: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --wrap:        1140px;
  --wrap-narrow: 760px;
  --radius:      8px;
  --radius-pill: 30px;
}

/* --- Webfont, selbst gehostet (kein Google-Fonts-Abruf → DSGVO) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-v21-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-v21-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-v21-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-v21-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --- Grundgerüst -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 1.0625rem;      /* 17px mobil */
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 48em) {
  body { font-size: 1.125rem; line-height: 1.75; }  /* 18px wie die Website */
}

h1, h2, h3 { color: var(--color-heading); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; }

p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--color-heading); }

a { color: var(--color-link); text-decoration: underline; text-underline-offset: .18em; }
a:hover { color: var(--color-link-dark); }

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

/* Sichtbarer Fokus – nie entfernen, das ist die Tastatur-Navigation */
:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: var(--wrap-narrow); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--color-brand); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Header ------------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.site-header__logo { display: inline-flex; text-decoration: none; }
.site-header__logo img { width: 180px; height: auto; }
@media (min-width: 48em) { .site-header__logo img { width: 220px; } }
.site-header__meta {
  margin: 0; font-size: .9rem; color: var(--color-muted);
  text-transform: uppercase; letter-spacing: .08em;
}

/* --- Hero --------------------------------------------------------------- */
/* Geschlossene, warme Fläche (kein Auslaufen ins Weiße) mit angedeutetem
   Kartenraster als Textur und einer Akzentkante als klarer Abschluss. */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-tint) 0%, #f9ebe4 50%, #f4e1d6 100%);
  padding: 3rem 0 3.25rem;
}
@media (min-width: 48em) { .hero { padding: 4.5rem 0 4rem; } }

/* Abschlusskante in den CI-Farben */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent) 100%);
}

/* Breite kommt von .wrap--narrow, damit die Textkante zu den Sections passt */
.hero__inner { position: relative; }

.badge {
  display: inline-block; margin: 0 0 1.1rem;
  background: var(--color-brand); color: #fff;
  padding: .45rem 1rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 500; line-height: 1.4;
}

.hero__lead { font-size: 1.15em; margin-bottom: 2rem; }
.hero__cta { margin: 2rem 0 0; }

/* Eckdaten – liegt als weiße Karte auf der Hero-Fläche auf */
.facts {
  display: grid; gap: 1rem; margin: 0 0 .5rem;
  padding: 1.35rem 1.5rem; background: #fff;
  border: 1px solid rgba(213, 213, 213, .8); border-left: 5px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(72, 40, 30, .09);
}
@media (min-width: 40em) { .facts { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.facts__item { min-width: 0; }
.facts dt {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--color-muted); margin-bottom: .15rem;
}
.facts dd { margin: 0; font-size: 1.2em; font-weight: 600; color: var(--color-heading); }
.facts__sub { display: block; font-size: 1rem; font-weight: 400; color: var(--color-muted); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; border: 2px solid transparent;
  padding: .8rem 1.9rem; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 1rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease;
}
.btn--primary { background: var(--color-cta); color: #fff; }
.btn--primary:hover { background: var(--color-cta-dark); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: 3rem 0; }
@media (min-width: 48em) { .section { padding: 4rem 0; } }
.section--tinted { background: var(--color-surface); }
.section__intro { color: var(--color-muted); margin-bottom: 2rem; }

.note {
  margin-top: 2rem; padding: 1rem 1.25rem;
  background: var(--color-tint); border-radius: var(--radius);
  font-size: 1em;
}

/* --- Agenda ------------------------------------------------------------- */
.agenda { list-style: none; margin: 0; padding: 0; counter-reset: agenda; }
.agenda__item {
  counter-increment: agenda;
  position: relative; padding: 0 0 1.5rem 3.25rem; margin: 0;
}
.agenda__item::before {
  content: counter(agenda);
  position: absolute; left: 0; top: .1rem;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-brand); color: #fff;
  border-radius: 50%; font-weight: 600; font-size: 1rem;
}
.agenda__item:not(:last-child)::after {
  content: ""; position: absolute; left: 1.1rem; top: 2.6rem; bottom: .25rem;
  width: 2px; background: var(--color-border);
}
.agenda__item h3 { margin-bottom: .25em; }
.agenda__item p { margin: 0; }

/* --- Formular ----------------------------------------------------------- */
.form { margin: 0; }
.form__hint { font-size: .9rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.form__row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 600; color: var(--color-heading); margin-bottom: .35rem; }
.field__optional { font-weight: 400; color: var(--color-muted); font-size: .9em; }
.req { color: var(--color-error); }

.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: .7rem .85rem; color: var(--color-heading); background: #fff;
  border: 1px solid #9a9a9a; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--color-brand); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--color-error); border-width: 2px; }

/* Gruppierte Frage (Checkbox mit eigener Überschrift) */
.fieldset { margin: 0; padding: 0; border: 0; }
.fieldset__legend {
  padding: 0; margin-bottom: .35rem;
  font-weight: 600; color: var(--color-heading);
}

.field__hint { font-size: .875rem; color: var(--color-muted); margin: .35rem 0 0; }
.field__error {
  margin: .4rem 0 0; font-size: .9rem; font-weight: 500; color: var(--color-error);
}
.field__error::before { content: "⚠ "; }

/* Honeypot – unsichtbar, aber nicht display:none (Bots ignorieren das eher) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Datenschutz + Einwilligung */
.field--consent { margin-top: 2rem; }
.privacy {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem;
  font-size: .95rem; line-height: 1.65;
}
.privacy__title { font-size: 1rem; margin-bottom: .6em; }
.privacy p:last-child { margin-bottom: 0; }

.checkbox { display: flex; align-items: flex-start; gap: .75rem; }
.checkbox input[type="checkbox"] {
  flex: 0 0 auto; width: 1.4rem; height: 1.4rem; margin: .15rem 0 0;
  accent-color: var(--color-brand); cursor: pointer;
}
.checkbox label { font-weight: 400; margin: 0; cursor: pointer; }

.form__submit { margin: 2rem 0 0; }

/* Statusmeldung */
.form-status { margin: 0 0 1.5rem; }
.form-status:empty { display: none; }
.form-status__box {
  padding: 1.1rem 1.35rem; border-radius: var(--radius);
  border-left: 5px solid; margin: 0;
}
.form-status__box h3 { margin: 0 0 .35em; font-size: 1.1rem; }
.form-status__box p:last-child { margin-bottom: 0; }
.form-status__box--ok    { background: var(--color-success-bg); border-color: var(--color-success); }
.form-status__box--ok h3 { color: var(--color-success); }
.form-status__box--err    { background: var(--color-error-bg); border-color: var(--color-error); }
.form-status__box--err h3 { color: var(--color-error); }
.form-status__list { margin: .5em 0 0; padding-left: 1.2em; }

/* Weiterempfehlen – erscheint nach erfolgreicher Anmeldung */
.share {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 107, 69, .25);
}
.share__intro { font-size: .95rem; margin-bottom: .75rem; }
.share__row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.share__url {
  flex: 1 1 18rem; min-width: 0;
  font-family: inherit; font-size: .9rem;
  padding: .6rem .75rem; color: var(--color-heading); background: #fff;
  border: 1px solid #9a9a9a; border-radius: var(--radius);
}
.btn--ghost {
  background: #fff; color: var(--color-link);
  border-color: currentColor; padding: .55rem 1.2rem; font-size: .85rem;
}
.btn--ghost:hover { background: var(--color-tint); color: var(--color-link-dark); }
.share__feedback {
  margin: .6rem 0 0; font-size: .875rem; font-weight: 500; color: var(--color-success);
}
.share__feedback:empty { display: none; }

/* --- Ansprechpartner ---------------------------------------------------- */
.person { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.person__photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  background: var(--color-border); flex: 0 0 auto;
}
.person__text { flex: 1 1 15rem; }
.person__name { font-size: 1.15rem; font-weight: 600; color: var(--color-heading); margin: 0; }
.person__role { color: var(--color-muted); margin: 0 0 .75em; }
.person__contact { margin-bottom: 1em; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--color-footer-bg); color: var(--color-footer-text);
  padding: 3rem 0 1.5rem; margin-top: 0; font-size: .95rem;
}
.site-footer a { color: var(--color-footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__cols { display: grid; gap: 1.75rem; }
@media (min-width: 40em) { .site-footer__cols { grid-template-columns: repeat(3, 1fr); } }
.site-footer__head {
  font-size: .95rem; font-weight: 600; color: #fff;
  margin: 0 0 .5em; text-transform: none;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2.5rem 0 0; }
.site-footer__copy {
  margin: 1.5rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem; color: #b0b0b0;
}

/* ==========================================================================
   Nachlese (nachlese.php)
   Nur von dieser Seite genutzt. Alles Übrige kommt aus den Klassen der
   Landing-Page, damit beide Seiten gleich aussehen.
   ========================================================================== */

/* Entwurfsband: soll unübersehbar sein, damit keine halbfertige Seite
   verschickt wird. Verschwindet mit $entwurf = false. */
.entwurf {
  margin: 0; padding: .9rem 1.25rem;
  background: #fff4d6; border-bottom: 2px solid #e0a800;
  color: #6b4d00; font-size: .95rem; text-align: center;
}
.entwurf code {
  background: #fff; padding: .1rem .4rem; border-radius: 3px;
  font-size: .9em; white-space: nowrap;
}

/* Noch nicht geschriebener Text. Fällt beim Korrekturlesen sofort auf und
   bleibt auch im Ausdruck erkennbar. Vor dem Versand müssen alle
   .platzhalter raus sein. */
.platzhalter {
  background: #fff4d6; box-shadow: 0 0 0 2px #fff4d6;
  color: #6b4d00; border-radius: 2px;
}

/* Kurzfassung und Mitnahme-Punkte */
.tldr { margin: 0 0 1.1em; padding: 0; list-style: none; }
.tldr li {
  position: relative; padding-left: 1.75rem; margin-bottom: .8em;
}
.tldr li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--color-accent);
}

/* Fragen und Antworten */
.qa { margin: 0 0 1.1em; }
.qa dt {
  font-weight: 600; color: var(--color-heading);
  margin-top: 1.75em; padding-left: 1.75rem; position: relative;
}
.qa dt:first-child { margin-top: 0; }
.qa dt::before {
  content: "?"; position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--color-accent);
}
.qa dd { margin: .35em 0 0 1.75rem; }

/* Linkliste */
.material { margin: 0; padding: 0; list-style: none; }
.material li {
  padding: .9rem 0; border-bottom: 1px solid var(--color-border);
}
.material li:first-child { border-top: 1px solid var(--color-border); }
.material a { font-weight: 600; }
.material__sub {
  display: block; color: var(--color-muted); font-size: .95rem;
}

/* Screenshots */
.bild { margin: 2rem 0 0; }
.bild img {
  display: block; width: 100%; border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.bild figcaption {
  margin-top: .6rem; color: var(--color-muted); font-size: .9rem;
}
