/* Business Guild: Gast-Einladung, Fehlerseiten, Rechtstexte (29.10.2026). Schriften selbst gehostet, keine Inline-Styles (CSP). */
@font-face { font-family: "Guild Serif"; src: url("fonts/cormorant-garamond-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Guild Sans"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Guild Sans"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Guild Sans"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Die Gildenschrift (Cormorant Garamond, Teilmenge) hat nur Mediävalziffern und kein lnum: Ziffern kommen deshalb aus der Hausschrift (Inter, lokal), alles andere bleibt Gildenschrift */
@font-face { font-family: "Guild Zahl"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0030-0039; }

:root {
  color-scheme: dark;
  --tinte: #14161C;
  --tinte-hell: #1E2129;
  --linie: #2C303A;
  --feldrand: #6B6F7A; /* Rand von Eingabefeldern: mindestens 3:1 gegen Grund und Karte (WCAG 1.4.11) */
  --papier: #F3EEE3;
  --leise: #9C978A;
  --messing: #C9A44C;
  --gefahr: #E0877A;
  --rot: #E5484D; /* Zähler am Nachrichten-Kuvert (nur dort): Kreis gegen Kopfleiste >= 3:1, --rot-text darauf >= 4,5:1 */
  --rot-text: #14161C;
  /* Abgeleitet aus --messing/--gefahr/--papier/--tinte (auch wenn die Marke sie setzt): keine festen Farbwerte mehr in den Bausteinen */
  --messing-hover: color-mix(in srgb, var(--messing) 84%, white);
  --messing-leise: color-mix(in srgb, var(--messing) 14%, transparent);
  --messing-dezent: color-mix(in srgb, var(--messing) 8%, transparent);
  --messing-rand: color-mix(in srgb, var(--messing) 50%, transparent);
  --gefahr-dezent: color-mix(in srgb, var(--gefahr) 8%, transparent);
  --papier-dezent: color-mix(in srgb, var(--papier) 5%, transparent);
  --papier-weich: color-mix(in srgb, var(--papier) 92%, var(--tinte));
  --papier-gedaempft: color-mix(in srgb, var(--papier) 82%, var(--tinte));
  --ring: 0 0 0 3px color-mix(in srgb, var(--messing) 25%, transparent);
  --haken-bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%2314161C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --serif: "Guild Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Guild Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ruhig: 200ms cubic-bezier(.2, .7, .2, 1);
}
/* Helles Gildenschema (Pergament, dunkle Tinte): dieselben Token-Namen, nur andere Werte. Gesetzt wird data-farbschema von
   farbschema-frueh.js (vor dem ersten Rendern) und farbschema.js (Schalter). Alle Texte >= 4,5:1, Feldrand >= 3:1 (test/huelle-farbschema.test.js).
   Die Marke (erscheinungsbild.js) setzt bei hell die Werte aus CAMPUS_HELL_FARBE_*. Hinweis: --tinte ist der Grund, --papier die Textfarbe. */
:root[data-farbschema="hell"] {
  color-scheme: light;
  --tinte: #F4EFE4;
  --tinte-hell: #FBF8F1;
  --linie: #D9D2C1;
  --feldrand: #8A8473;
  --papier: #14161C;
  --leise: #5C5850;
  --messing: #6F551A;
  --gefahr: #A8321F;
  --rot: #C62828;
  --rot-text: #FFFFFF;
  --messing-hover: color-mix(in srgb, var(--messing) 84%, black);
  --haken-bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23F4EFE4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.g {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--tinte); color: var(--papier); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--messing); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--ruhig); }
a:hover { color: var(--messing-hover); }
/* Fokus: 2 px Vollton in Messing (>= 3:1 gegen Grund und Karte, WCAG 2.4.7/1.4.11); der alte Ring aus 25 % Messing kam nur auf rund 1,6:1 */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; box-shadow: none; }

/* Bühne: schmal und mittig, viel Luft. 16 px Seitenrand am Handy. */
.g-buehne { width: 100%; max-width: 31rem; margin: 0 auto; padding: 44px 16px 28px; flex: 1 0 auto; }
.g-buehne.g-breit { max-width: 46rem; }
.g-marke { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; }
.g-zeichen { width: 60px; height: 60px; display: block; }
/* Helles Schema: Standardzeichen mit Umriss (die cremefarbenen Streifen verschwinden sonst auf Pergament). Nur wenn das Bild das Standardzeichen ist;
   ein eigenes Logo der Marke (anderer Pfad in src) bleibt unberührt. */
:root[data-farbschema="hell"] img[src$="/gemeinsam/guild/zeichen.svg"] { content: url(/gemeinsam/guild/zeichen-hell.svg); }
.g-wortmarke { font-size: 11.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--leise); padding-left: .3em; }

.g-karte {
  background: var(--tinte-hell); border: 1px solid var(--linie); border-radius: 14px; padding: 32px 28px;
  animation: g-auftritt 240ms cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes g-auftritt { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .g-karte { animation: none; } * { transition: none !important; } }

.g-etikett { margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--messing); }
.g-titel {
  margin: 0 0 16px; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 8vw, 42px); line-height: 1.08;
  letter-spacing: .07em; text-transform: uppercase; color: var(--papier); overflow-wrap: break-word;
}
.g-lead { margin: 0 0 20px; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.g-lead strong { font-weight: 600; }
.g-board { font-weight: 600; color: var(--papier); }
.g-text { margin: 0 0 18px; overflow-wrap: anywhere; }
.g-klein { margin: 6px 0 0; font-size: 13.5px; color: var(--leise); line-height: 1.5; }

.g-fakten { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.g-abzeichen {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 11px; border: 1px solid var(--messing-rand);
  border-radius: 999px; background: var(--messing-dezent); color: var(--messing); font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
}
.g-abzeichen::before { content: ""; width: 7px; height: 7px; background: var(--messing); transform: rotate(45deg); flex: none; }
.g-gueltig { font-size: 14px; color: var(--leise); }

/* Formular */
.g-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--linie); }
.g-schritt { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--leise); }
.g-punkt { width: 18px; height: 3px; border-radius: 2px; background: var(--linie); }
.g-punkt.g-an { background: var(--messing); }
.g-schritt .g-punkt:nth-of-type(2) { margin-right: 8px; }
.g-feld { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.g-feld label { font-size: 14px; font-weight: 500; color: var(--papier); }
.g-feld input {
  width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--papier);
  background: var(--tinte); border: 1px solid var(--feldrand); border-radius: 10px; transition: border-color var(--ruhig), box-shadow var(--ruhig);
}
.g-feld input::placeholder { color: var(--leise); opacity: 1; }
.g-feld input:hover { border-color: var(--leise); }
.g-feld input:focus, .g-feld input:focus-visible { outline: none; border-color: var(--messing); box-shadow: var(--ring); border-radius: 10px; }
.g-feld input[aria-invalid="true"] { border-color: var(--gefahr); }
.g-code { text-align: center; font-size: 26px !important; letter-spacing: .32em; font-variant-numeric: tabular-nums; padding-left: calc(14px + .32em) !important; }

.g-haken { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 4px 0 22px; font-size: 14.5px; line-height: 1.55; }
.g-haken label { cursor: pointer; }
.g-haken-text .g-haken-links { margin: 6px 0 0; }
.g-haken input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--leise); border-radius: 6px;
  background: var(--tinte) center / 14px 14px no-repeat; cursor: pointer; transition: background-color var(--ruhig), border-color var(--ruhig);
}
.g-haken input:checked {
  background-color: var(--messing); border-color: var(--messing);
  background-image: var(--haken-bild);
}
.g-haken input:focus-visible { box-shadow: var(--ring); border-radius: 6px; }
.g-haken input[aria-invalid="true"] { border-color: var(--gefahr); }

.g-knopf {
  width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--messing); color: var(--tinte);
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: background-color var(--ruhig), transform 120ms ease;
}
.g-knopf:hover { background: var(--messing-hover); }
.g-knopf:active { transform: translateY(1px); }
.g-knopf:focus-visible { box-shadow: 0 0 0 3px var(--tinte-hell), 0 0 0 5px var(--messing); border-radius: 10px; }
.g-knopf[disabled] { opacity: .6; cursor: progress; }

.g-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }
.g-rechts { margin-left: auto; }
.g-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--messing); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.g-link[disabled] { color: var(--leise); text-decoration: none; cursor: default; }

.g-meldung { margin: 0 0 16px; padding: 11px 14px; border: 1px solid var(--gefahr); border-radius: 10px; background: var(--gefahr-dezent); color: var(--gefahr); font-size: 14.5px; line-height: 1.5; }
.g-meldung.g-ok { border-color: var(--messing-rand); background: var(--messing-dezent); color: var(--messing); }
.g-meldung.g-hinweis { border-color: var(--leise); background: var(--papier-dezent); color: var(--papier); }

.g-gruss { margin: 26px 0 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--leise); }
.g-fehlerkarte .g-titel { font-size: clamp(26px, 7vw, 36px); }
.g-fuss { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; font-size: 13px; color: var(--leise); }
.g-fuss a { color: var(--leise); white-space: nowrap; }
/* Schmale Bildschirme: ohne Trennzeichen (sonst stünde es allein am Zeilenende), die Links umbrechen als ganze Einheiten */
@media (max-width: 600px) { .g-fuss { gap: 0 4px; } .g-fuss > span[aria-hidden] { display: none; } }
.g-fuss a:hover { color: var(--papier); }

/* Rechtstexte */
.g-recht h2, .g-recht .g-h2 { margin: 30px 0 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--papier); }
.g-recht h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 600; }
.g-recht p, .g-recht li { color: var(--papier-weich); overflow-wrap: anywhere; }
.g-recht ul { margin: 0 0 14px; padding-left: 1.2em; }
.g-recht li { margin-bottom: 6px; }
.g-recht li::marker { color: var(--messing); }
.g-entwurf { margin: 22px 0 6px; padding: 12px 14px; border: 1px dashed var(--messing-rand); border-radius: 10px; background: var(--messing-dezent); color: var(--papier); font-size: 14.5px; }
.g-entwurf strong { color: var(--messing); }
.g-platzhalter { background: var(--messing-leise); color: var(--messing); padding: 0 4px; border-radius: 4px; }

/* Dachmuster: nur am unteren Rand, zum Inhalt hin ausgeblendet, nie unter Text (eigener Platz im Fluss). */
.g-dach { flex: none; height: 130px; margin-top: 8px; background: url("dach.svg") 0 0 / 100% 100% no-repeat; opacity: .7; pointer-events: none; }

:root[data-farbschema="hell"] .g-dach { background-image: url("dach-hell.svg"); }

@media (max-width: 480px) {
  .g-buehne { padding: 32px 16px 20px; }
  .g-karte { padding: 26px 20px; }
  .g-marke { margin-bottom: 22px; }
  .g-zeichen { width: 52px; height: 52px; }
  .g-dach { height: 104px; }
}

/* Gildensiegel (verschenkbare Apps, Siegelbriefe): die helle Variante nur im hellen Schema, sonst die dunkle */
.g-siegel { flex: none; vertical-align: middle; }
.g-siegel-hell { display: none; }
:root[data-farbschema="hell"] .g-siegel-dunkel { display: none; }
:root[data-farbschema="hell"] .g-siegel-hell { display: inline-block; }
