/* ==================================================================
   narinea.de — pre.css (29.11.2026, Wunsch TJ)

   Übernommen von frei-zum-erfolg.de (dort baustelle.css, Stand
   29.11.2026 abends; Wunsch TJ: Baustelle, Login, Passwortseite und
   „Login Intern“ wie dort). Unverändert bis auf diesen Kopf; der letzte
   Abschnitt „Ergänzungen nur für narinea.de“ kommt hier dazu.

   Aussehen der Baustellenseite (/pre.html), der Seite dahinter
   (/login/), der Passwortseite (/tor.php) und der Seiten vor der
   Anmeldung zum internen Bereich (/intern/). Ergänzt stil.css (Design
   „Lindgrün“), nutzt nur dessen Variablen, keine neuen Farbwerte.
   Liegt in assets/css/ und ist damit wie stil.css ohne Passwort frei.

   Bewegung: Bei „Bewegung reduzieren“ schaltet stil.css alle
   Animationen ab. Die Endzustände sind deshalb die Grundwerte; die
   Animationen laufen nur „von“ etwas her.
   ================================================================== */

body.bau { background: var(--grau-100); }

/* Dunkle Bühne mit Rand rundum */
.bau-rahmen { padding: clamp(8px, 1.2vw, 16px); }
.bau-buehne {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - 2 * clamp(8px, 1.2vw, 16px));
  min-height: calc(100svh - 2 * clamp(8px, 1.2vw, 16px));
  display: grid; place-items: center;
  padding: clamp(56px, 8vw, 104px) var(--rand-x) clamp(96px, 10vw, 120px);
  border-radius: clamp(20px, 2.2vw, var(--radius-xl));
}

/* Punktraster wie auf einem Bauplan, zum Rand hin ausgeblendet */
.bau-buehne::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 46%, var(--tinte) 18%, transparent 78%);
          mask-image: radial-gradient(ellipse 72% 62% at 50% 46%, var(--tinte) 18%, transparent 78%);
}

/* Lindgrünes Licht hinter dem Logo, schwebt langsam */
.bau-licht {
  position: absolute; z-index: -2; left: 50%; top: 40%;
  width: min(1100px, 120vmax); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--lind-500) 17%, transparent) 0%, transparent 58%);
  animation: bau-schweben 18s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Der Weg: fertig gezeichnet bis zum Punkt, danach gepunktet (im Bau) */
.bau-weg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* Querformat und Hochformat haben je eine eigene Linie */
.bau-weg-hoch { display: none; }
@media (max-aspect-ratio: 4/5) {
  .bau-weg-quer { display: none; }
  .bau-weg-hoch { display: block; }
}
/* Baustellenseite mit JavaScript: berechnete Linie (.bau-weg-js) statt der
   festen (assets/js/weg.js) */
.bau-weg-js { display: none; }
html.weg-js .bau-weg-quer, html.weg-js .bau-weg-hoch { display: none; }
html.weg-js .bau-weg-js { display: block; }
.bau-weg path { fill: none; stroke-linecap: round; }
.bau-weg-band {
  stroke: color-mix(in srgb, var(--lind-500) 7%, transparent); stroke-width: 38;
  stroke-dasharray: 100 200; animation: bau-zeichnen 2.6s var(--weich) 0.3s both;
}
.bau-weg-fertig {
  stroke: color-mix(in srgb, var(--lind-500) 62%, transparent); stroke-width: 2.4;
  stroke-dasharray: 100 200; animation: bau-zeichnen 2.6s var(--weich) 0.3s both;
}
.bau-weg-plan {
  stroke: color-mix(in srgb, var(--lind-500) 50%, transparent); stroke-width: 3;
  stroke-dasharray: 0.1 16;
  animation: bau-auftauchen 1s ease 2.6s both, bau-wandern 1.4s linear 2.6s infinite;
}
.bau-weg-punkt { animation: bau-auftauchen 0.8s ease 2.5s both; }
.bau-weg-kern { fill: var(--lind-500); }
.bau-weg-ring {
  fill: color-mix(in srgb, var(--lind-500) 22%, transparent);
  transform-box: fill-box; transform-origin: center;
  animation: bau-ring 2.8s ease-out 3s infinite;
}
/* Seite dahinter: Weg steht schon, nur Punkt und Punkte bewegen sich */
.bau-ruhig .bau-weg-band, .bau-ruhig .bau-weg-fertig, .bau-ruhig .bau-weg-punkt { animation: none; }
.bau-ruhig .bau-weg-plan { animation: bau-wandern 1.4s linear infinite; }
.bau-ruhig .bau-weg-ring { animation-delay: 0.4s; }

/* Inhalt */
.bau-inhalt { width: min(44rem, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.bau-inhalt > * { animation: bau-auf 1s var(--weich) both; }
.bau-inhalt > :nth-child(1) { animation-delay: 0.1s; }
.bau-inhalt > :nth-child(2) { animation-delay: 0.3s; }
.bau-inhalt > :nth-child(3) { animation-delay: 0.45s; }
.bau-inhalt > :nth-child(4) { animation-delay: 0.65s; }

.bau-logo { display: block; width: clamp(220px, 26vw, 320px); height: auto; }
.bau-logo-link { display: block; border-radius: 12px; }
.bau-pille { margin-top: clamp(32px, 4.5vw, 52px); }
.bau-pille::before { animation: bau-puls 2.4s ease-out infinite; }
.bau-titel {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.8rem); line-height: 1.04;
  text-wrap: balance;
}

/* E-Mail als Kontakt (Baustellenseite); fast deckend, damit die Linie
   dahinter nicht durch die Schrift läuft */
.bau-kontakt {
  /* Abstand zum Slogan: Platz für die Linie dazwischen (Linie 18 px über
     dem Knopf, siehe assets/js/weg.js; Wunsch TJ 29.11.2026:
     Knopf knapp unter der Linie, Linie nicht durch „enden.“).
     Gleiche Größe wie die Pille „Website im Aufbau“ (Wunsch TJ,
     29.11.2026): Maße von .pille, Briefsymbol statt Punkt; Grund fast
     deckend, damit die Linie nicht durch die Schrift läuft. */
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: clamp(48px, 5.5vw, 72px);
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)), color-mix(in srgb, var(--wald-900) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text-invers); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em;
  transition: transform 0.25s var(--weich), border-color 0.25s, box-shadow 0.25s;
}
.bau-kontakt:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--lind-500) 55%, transparent); box-shadow: var(--leuchten);
}
.bau-kontakt:focus-visible { outline: 2px solid var(--lind-300); outline-offset: 3px; border-radius: 999px; }
.bau-kontakt-symbol { display: grid; place-items: center; flex: none; color: var(--lind-500); }
.bau-kontakt-symbol svg { width: 15px; height: 15px; }

/* Kleiner Verweis ganz unten („Login“, „Zurück“) */
.bau-unten {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(16px, 2.4vw, 28px);
  display: flex; justify-content: center;
}
.bau-klein {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem; border: 1px solid transparent; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-invers-2); text-decoration: none;
  animation: bau-auf 1s var(--weich) 0.9s both;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.bau-klein svg { width: 14px; height: 14px; color: var(--lind-500); }
.bau-klein:hover { color: var(--text-invers); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.bau-klein:focus-visible { outline: 2px solid var(--lind-300); outline-offset: 3px; border-radius: 999px; }

/* Seite dahinter (/login/): die zwei Zugänge — kleiner seit 29.11.2026
   (Wunsch TJ, vorher 84 px hoch) */
.bau-zugaenge { display: grid; gap: 10px; width: min(30rem, 100%); margin-top: clamp(24px, 3vw, 32px); }
@media (min-width: 560px) { .bau-zugaenge { grid-template-columns: 1fr 1fr; } }
.bau-zugang {
  display: flex; align-items: center; gap: 0.65rem;
  min-height: 52px; padding: 0.4rem 0.45rem 0.4rem 0.5rem;
  border: 1px solid transparent; border-radius: var(--radius);
  text-align: left; text-decoration: none;
  transition: transform 0.3s var(--weich), box-shadow 0.3s var(--weich), border-color 0.3s, background-color 0.3s;
}
.bau-zugang:hover { transform: translateY(-2px); }
.bau-zugang:hover .knopf-kreis { transform: translateX(3px); }
.bau-zugang:focus-visible { outline: 2px solid var(--lind-300); outline-offset: 4px; border-radius: var(--radius); }
.bau-zugang-symbol { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent; }
.bau-zugang-symbol svg { width: 17px; height: 17px; }
.bau-zugang-name { flex: 1; font-size: 0.9375rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.bau-zugang .knopf-kreis { width: 30px; height: 30px; }
.bau-zugang .knopf-kreis svg { width: 15px; height: 15px; }

.bau-website {
  background: var(--verlauf-knopf); color: var(--tinte);
  border-color: color-mix(in srgb, var(--lind-600) 60%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 30px -14px color-mix(in srgb, var(--lind-500) 70%, transparent);
}
.bau-website:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 18px 38px -14px color-mix(in srgb, var(--lind-500) 90%, transparent); }
.bau-website .bau-zugang-symbol { background: color-mix(in srgb, var(--tinte) 9%, transparent); border-color: color-mix(in srgb, var(--tinte) 10%, transparent); }

/* Fast deckend, damit die Linie dahinter nicht durch die Schrift läuft */
.bau-intern {
  background: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)), color-mix(in srgb, var(--wald-900) 92%, transparent);
  color: var(--text-invers);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.bau-intern:hover {
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)), color-mix(in srgb, var(--wald-900) 92%, transparent);
  border-color: color-mix(in srgb, var(--lind-500) 55%, transparent); box-shadow: var(--leuchten);
}
.bau-intern .bau-zugang-symbol {
  background: color-mix(in srgb, var(--lind-500) 14%, transparent);
  border-color: color-mix(in srgb, var(--lind-500) 32%, transparent); color: var(--lind-500);
}
.bau-intern .knopf-kreis { background: var(--lind-500); color: var(--tinte); }

/* „Login Intern“ (/intern/): Anmeldung zum NARINea-Dashboard, Formular an
   narinea.de (seit 29.11.2026, Wunsch TJ) */
.bau-anmeldung { width: min(29rem, 100%); margin-top: clamp(24px, 3vw, 32px); }
.bau-anmeldung label { display: block; margin-bottom: 0.7rem; font-size: 0.9375rem; line-height: 1.5; color: var(--text-invers-2); }
.bau-anmeldung-zeile {
  display: flex; align-items: center; gap: 6px; padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)), color-mix(in srgb, var(--wald-900) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bau-anmeldung-zeile:focus-within { border-color: color-mix(in srgb, var(--lind-500) 60%, transparent); box-shadow: var(--leuchten); }
.bau-anmeldung input {
  flex: 1; min-width: 0; padding: 0.55rem 0.9rem;
  border: 0; background: transparent; outline: 0;
  font: inherit; font-size: 1rem; color: var(--text-invers);
}
.bau-anmeldung input::placeholder { color: var(--text-invers-2); }
/* Automatisch ausgefüllt (Passwortspeicher, Safari/Chrome): Der Browser
   hinterlegt das Feld sonst hellgelb bzw. hellblau (Hinweis TJ, 29.11.2026,
   Passwortseite). Innerer Schatten in der Farbe des Feldes deckt das ab,
   die Schrift bleibt hell; background-clip hält die gelbe Fläche vom runden
   Rand fern (sonst heller Saum). Zwei Regeln, weil ein unbekannter Selektor die
   ganze Regel ungültig machen würde. */
.bau-anmeldung input:-webkit-autofill {
  -webkit-box-shadow: inset 0 0 0 100px color-mix(in srgb, var(--weiss) 6%, var(--wald-900));
  box-shadow: inset 0 0 0 100px color-mix(in srgb, var(--weiss) 6%, var(--wald-900));
  -webkit-text-fill-color: var(--text-invers); caret-color: var(--text-invers);
  border-radius: 999px; transition: background-color 9999s ease-out 0s;
  -webkit-background-clip: content-box; background-clip: content-box;
}
.bau-anmeldung input:autofill {
  box-shadow: inset 0 0 0 100px color-mix(in srgb, var(--weiss) 6%, var(--wald-900));
  -webkit-text-fill-color: var(--text-invers); caret-color: var(--text-invers);
  border-radius: 999px; background-clip: content-box;
}
.bau-anmeldung button {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--lind-500); color: var(--tinte); cursor: pointer;
  transition: background-color 0.2s, transform 0.25s var(--weich);
}
.bau-anmeldung button svg { width: 18px; height: 18px; }
.bau-anmeldung button:hover { background: var(--lind-300); transform: translateX(2px); }
.bau-anmeldung button:focus-visible { outline: 2px solid var(--lind-300); outline-offset: 3px; }
/* Passwortseite (tor.php, seit 29.11.2026): gleiche Form wie /intern/,
   dazu die Meldung bei falschem Passwort */
.bau-fehler { margin-top: 0.9rem; font-size: 0.9375rem; font-weight: 500; color: var(--text-invers); }
.bau-anmeldung-zeile:has(input[aria-invalid="true"]) { border-color: color-mix(in srgb, var(--lind-300) 55%, transparent); }

/* Bewegung */
@keyframes bau-auf { from { opacity: 0; transform: translateY(18px); } }
@keyframes bau-zeichnen { from { stroke-dashoffset: 100; } }
@keyframes bau-auftauchen { from { opacity: 0; } }
@keyframes bau-wandern { to { stroke-dashoffset: -16.1; } }
@keyframes bau-ring { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@keyframes bau-puls {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lind-500) 55%, transparent); }
  to   { box-shadow: 0 0 0 9px color-mix(in srgb, var(--lind-500) 0%, transparent); }
}
@keyframes bau-schweben {
  from { transform: translate(-56%, -47%) scale(1); }
  to   { transform: translate(-44%, -55%) scale(1.08); }
}


/* ==================================================================
   Ergänzungen nur für narinea.de (29.11.2026)
   Die Vorlage hat vor der Anmeldung zum internen Bereich nur das
   Formular. narinea.de hat dort weitere Seiten (Link ist unterwegs, Link
   bestätigen, Link nicht mehr gültig, Notzugang — alle aus
   alt/intern/bereich/anmeldung.php). Sie bekommen dieselbe Bühne; hier
   stehen nur die Bausteine, die der Vorlage dafür fehlen.
   Nur Variablen aus stil.css, keine neuen Farbwerte.
   ================================================================== */

/* Meldung statt oder über dem Formular */
.bau-nachricht { width: min(29rem, 100%); margin-top: clamp(24px, 3vw, 32px); }
.bau-nachricht + .bau-anmeldung { margin-top: 1.25rem; }
.bau-nachricht-titel { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--text-invers); }
.bau-nachricht-titel + .bau-text { margin-top: 0.6rem; }
.bau-text { font-size: 0.9375rem; line-height: 1.5; color: var(--text-invers-2); }
.bau-text strong { font-weight: 600; color: var(--text-invers); overflow-wrap: anywhere; }
/* Kleine Zeile unter Meldung oder Feld */
.bau-hinweis { margin-top: 0.9rem; font-size: 0.875rem; line-height: 1.5; color: var(--text-invers-2); }
.bau-hinweis a { color: var(--lind-300); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, var(--lind-300) 45%, transparent); }
.bau-hinweis a:hover { text-decoration-color: currentColor; }
/* Knopf „Jetzt anmelden“: Aussehen von „Login Webseite“ auf /login/ */
.bau-nachricht .bau-zugang { width: 100%; margin-top: 1.1rem; font: inherit; cursor: pointer; }

/* /login/ seit 29.11.2026 abends (Wunsch TJ): nur noch ein Knopf „Login
   Webseite“, etwas kleiner (44 px hoch, so breit wie sein Inhalt; vorher
   52 px hoch und halbe Spaltenbreite). „Login Intern“ steht ganz unten,
   sehr dezent, rechts neben „Zurück“. */
.bau-zugaenge-einzeln { display: flex; justify-content: center; width: auto; }
.bau-zugaenge-einzeln .bau-zugang { min-height: 44px; gap: 0.55rem; padding: 0.3rem 0.4rem 0.3rem 0.45rem; }
.bau-zugaenge-einzeln .bau-zugang-symbol { width: 28px; height: 28px; border-radius: 8px; }
.bau-zugaenge-einzeln .bau-zugang-symbol svg { width: 15px; height: 15px; }
.bau-zugaenge-einzeln .bau-zugang-name { flex: none; padding-right: 0.45rem; font-size: 0.875rem; }
.bau-zugaenge-einzeln .knopf-kreis { width: 26px; height: 26px; }
.bau-zugaenge-einzeln .knopf-kreis svg { width: 13px; height: 13px; }

/* Zwei Verweise ganz unten: der erste bleibt in der Mitte (wie „Zurück“
   und „Login“ auf den anderen Seiten), der leise steht rechts daneben */
.bau-unten-paar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bau-unten-paar > .bau-klein { grid-column: 2; }
.bau-unten-paar > .bau-leise { grid-column: 3; justify-self: start; }
/* Leiser Verweis: kleiner, ohne Symbol, halb durchscheinend; beim
   Überfahren hell wie die anderen */
.bau-leise {
  padding-inline: 0.7rem;
  font-size: 0.8125rem; font-weight: 400;
  color: color-mix(in srgb, var(--text-invers) 50%, transparent);
}
