Files
tidefront/apps/web/src/styles.css
T

305 lines
19 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@import "tailwindcss";
@import "./theme.css";
/* Stil „Seekarte 2.0“: helles Papier bzw. Nachtkarte, Marinetinte, Akzentblau für Handlung, Siegelrot für Alarm.
Alle Farbklassen zeigen auf die Tokens aus theme.css (hell/dunkel) – die alten Namen (navy, slate, sea, brass,
red, emerald …) bleiben als Schlüssel bestehen, damit alle Bildschirme mitziehen. navy = Papiertöne, slate = Tinte. */
@theme inline {
--color-paper: var(--tf-paper);
--color-card: var(--tf-card);
--color-inset: var(--tf-inset);
--color-track: var(--tf-track);
--color-plate: var(--tf-plate);
--color-field: var(--tf-field);
--color-ink: var(--tf-ink);
--color-ink2: var(--tf-ink2);
--color-rule: var(--tf-rule);
--color-rule2: var(--tf-rule2);
--color-accent: var(--tf-accent);
--color-on-accent: var(--tf-on-accent);
--color-accent-ink: var(--tf-accent-ink);
--color-siegel: var(--tf-siegel);
--color-siegel-bg: var(--tf-siegel-bg);
--color-siegel-ink: var(--tf-siegel-ink);
--color-see: var(--tf-see);
--color-moos: var(--tf-moos);
--color-moos-bg: var(--tf-moos-bg);
--color-moos-line: var(--tf-moos-line);
--color-messing: var(--tf-messing);
--color-brass: var(--tf-brass);
--color-warn: var(--tf-warn);
--color-warn-ink: var(--tf-warn-ink);
--color-on-strong: var(--tf-on-strong);
--color-nav-sel: var(--tf-nav-sel);
--color-head: var(--tf-head);
--color-head-ink: var(--tf-head-ink);
--color-head-muted: var(--tf-head-muted);
--color-navy-950: var(--tf-inset);
--color-navy-900: var(--tf-paper);
--color-navy-800: var(--tf-card);
--color-navy-700: var(--tf-track);
--color-navy-600: var(--tf-rule2);
--color-slate-50: var(--tf-ink);
--color-slate-100: var(--tf-ink);
--color-slate-200: var(--tf-ink);
--color-slate-300: var(--tf-ink);
--color-slate-400: var(--tf-ink2);
--color-slate-500: var(--tf-ink2);
--color-slate-600: var(--tf-ink2);
--color-slate-700: var(--tf-ink);
--color-slate-800: var(--tf-ink);
--color-slate-900: var(--tf-ink);
--color-slate-950: var(--tf-ink);
--color-sea-300: var(--tf-see);
--color-sea-400: var(--tf-see);
--color-sea-500: var(--tf-see);
--color-brass-300: var(--tf-messing);
--color-brass-400: var(--tf-messing);
--color-brass-500: var(--tf-messing);
--color-red-100: var(--tf-siegel);
--color-red-200: var(--tf-siegel);
--color-red-300: var(--tf-siegel);
--color-red-400: var(--tf-siegel);
--color-red-500: var(--tf-siegel);
--color-red-600: var(--tf-siegel);
--color-red-700: var(--tf-siegel);
--color-red-800: var(--tf-siegel-ink);
--color-red-900: var(--tf-siegel-ink);
--color-red-950: var(--tf-siegel-bg);
--color-emerald-300: var(--tf-moos);
--color-emerald-400: var(--tf-moos);
--color-emerald-500: var(--tf-moos);
--color-emerald-600: var(--tf-moos);
--color-emerald-700: var(--tf-moos);
--color-emerald-950: var(--tf-moos-bg);
--color-green-300: var(--tf-moos);
--color-amber-300: var(--tf-messing);
--color-orange-300: var(--tf-warn-ink);
}
@theme {
/* Kartenformen 2.0: 6 px für Karten und Knöpfe, 8 px für große Knöpfe und Bildfelder. */
--radius-lg: 6px;
--radius-xl: 6px;
--radius-2xl: 8px;
--radius-3xl: 16px;
--font-serif: "Fraunces", Georgia, "Times New Roman", serif;
--font-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
html, body, #root { height: 100%; }
/* iPhone (Statusleiste „black-translucent“): nichts darf unter Uhr/Notch rutschen. #root polstert oben für alle
Bildschirme (mit und ohne Kopfleiste), der feste Streifen färbt den Bereich wie die Kopfleiste. */
:root { --tf-safe-top: env(safe-area-inset-top, 0px); } /* E2E simuliert die Notch über diese Variable */
#root { box-sizing: border-box; padding-top: var(--tf-safe-top); }
.tf-statusbar { position: fixed; top: 0; left: 0; right: 0; height: var(--tf-safe-top); background: var(--tf-head); z-index: 70; pointer-events: none; }
/* Safari (iPhone) vergrößert Schrift sonst eigenmächtig, etwa im Querformat – dann laufen Texte über den Rand. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
margin: 0;
color: var(--color-ink);
font-family: var(--font-sans);
font-variant-numeric: tabular-nums;
-webkit-tap-highlight-color: transparent;
overscroll-behavior: none;
/* Lange deutsche Wörter und Namen umbrechen statt über den Rahmen zu laufen; Silbentrennung nach lang="de". */
overflow-wrap: break-word;
-webkit-hyphens: auto;
hyphens: auto;
/* Seekarte 2.0: glatte Flächen statt Papierfaser. */
background-color: var(--tf-paper);
line-height: 1.45;
}
html { background-color: var(--tf-paper); }
input, select, button, textarea { font: inherit; }
/* Zahlen, Codes und Eingaben nie trennen. */
.mono, input, textarea, code, pre { -webkit-hyphens: manual; hyphens: manual; }
/* Silbentrennung (lang="de") nur im Fließtext, nicht in Navigation, Knöpfen, Zahlen. */
main :where(p, li) { hyphens: auto; -webkit-hyphens: auto; }
main :where(.mono, code, button) { hyphens: manual; -webkit-hyphens: manual; }
/* Navigation, Reiter, Knöpfe und Titel nie automatisch trennen („Meldun-gen“); lange Wörter tragen bei Bedarf ­. */
nav, button, [role="tab"], h1, h2, h3, .font-display { -webkit-hyphens: manual; hyphens: manual; }
[role="tab"] { white-space: nowrap; }
input, select, textarea { color: var(--color-ink); }
::placeholder { color: var(--tf-placeholder); }
:focus-visible { outline: 2px solid var(--tf-accent); outline-offset: 2px; }
.tap { min-height: 44px; min-width: 44px; }
/* Beschriftungen in Versalien: Plex Sans halbfett, gesperrt (wie die Legende einer Seekarte). */
.font-display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; }
/* Titel in Fraunces, normale Schreibung. */
.font-serif, h1.font-display, h2.font-display.text-lg, h2.font-display.text-xl {
font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.005em; text-transform: none;
}
/* Abschnittstitel 2.0 (Karten, Lage-Gruppen): Fraunces 18 px, Tinte. */
.tf-h2 { font-family: var(--font-serif); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -0.005em; color: var(--tf-ink); text-transform: none; }
/* Zentral für alle Bildschirme: Abschnittstitel, die noch als kleine Versal-Beschriftung (h2.font-display.uppercase)
gesetzt sind, erscheinen als Fraunces-Titel; Knöpfe in normaler Schreibung statt Versalien. */
h2.font-display.uppercase { font-family: var(--font-serif); font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; text-transform: none; color: var(--tf-ink); }
button.font-display.uppercase { font-family: var(--font-sans); text-transform: none; letter-spacing: 0.02em; font-weight: 600; }
/* Kleine Versal-Beschriftung (JETZT, STUFE 2, KOSTEN AUSBAU). */
.tf-label { font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tf-ink2); }
/* Große Kennzahl (Gebäudeblatt). */
.tf-figure { font-family: var(--font-mono); font-weight: 500; font-size: 22px; line-height: 1.2; }
.mono { font-family: var(--font-mono); font-weight: 500; }
/* Fläche: Karte (6 px, feine Linie). */
.panel { background: var(--tf-card); border: 1px solid var(--tf-rule); }
/* Kopf eines Panels: feste Tintenlinie oben (2.0: 2 px statt doppelt). */
.brass-edge { border-top: 2px solid var(--tf-ink); }
.rule-double { border-bottom: 2px solid var(--tf-ink); }
/* Knöpfe 2.0: Akzent gefüllt, Umriss in Akzent, leise mit feiner Linie; halbfett, normale Schreibung. */
.btn-primary { background: var(--tf-accent); color: var(--tf-on-accent); border: 1px solid var(--tf-accent); font-weight: 600; }
.btn-primary:active { filter: brightness(0.9); }
.btn-danger { background: var(--tf-siegel); color: var(--tf-on-strong); border: 1px solid var(--tf-siegel); font-weight: 600; }
.btn-danger:active { filter: brightness(0.9); }
.btn-secondary { background: transparent; color: var(--tf-accent-ink); border: 1px solid var(--tf-accent); font-weight: 600; }
.btn-secondary:active { background: var(--tf-inset); }
/* Leiser Knopf (Nebenaktionen wie „alle zeigen“, „ändern“): Rahmen statt unterstrichenem Link. */
.btn-quiet { background: var(--tf-card); color: var(--tf-ink); border: 1px solid var(--tf-rule); }
.btn-quiet:active { background: var(--tf-inset); }
.field { background: var(--tf-field); border: 1px solid var(--tf-rule2); color: var(--tf-ink); }
.field:focus { border-color: var(--tf-accent); }
select.field, select { background-color: var(--tf-field); color: var(--tf-ink); }
/* Gepunkteter Trenner zwischen Zeilen einer Karte. */
.tf-dots { border-top: 1px dotted var(--tf-rule2); }
/* Fortschrittsbalken 2.0: 5 px, gerundet, Bahn in track. */
.tf-track { background: var(--tf-track); border-radius: 3px; overflow: hidden; }
/* Hinweiszeile mit Messinglinie links (Gezeit, Ausbaubild). */
.tf-note { border-left: 3px solid var(--tf-brass); padding-left: 10px; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tf-siegel) 45%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.pulse { animation: pulse-ring 2s ease-out infinite; }
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sheet-in { animation: slide-up 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
/* Laufender Fortschritt: schräge Schraffur. */
.stripes { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tf-card) 35%, transparent) 0 2px, transparent 2px 6px); }
.hatch { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tf-ink) 16%, transparent) 0 1px, transparent 1px 4px); }
/* Hervorgehobene Kachel: innerer Seeblau-Rahmen. */
.reticle { position: relative; box-shadow: inset 0 0 0 1px var(--tf-accent); border-color: var(--tf-accent) !important; }
.reticle::before, .reticle::after { content: none; }
/* Raute als Aufzählungszeichen (Logbuch). */
.diamond { width: 9px; height: 9px; transform: rotate(45deg); display: inline-block; flex: none; }
/* Börse: Tickerband (Tinte mit Papierschrift), Kurstafel und Kurszettel. */
.ticker { background: var(--tf-head); color: var(--tf-head-ink); }
.ticker-up { color: var(--tf-head-good); }
.ticker-down { color: var(--tf-head-alarm); }
.ticker-track { display: flex; width: max-content; animation: ticker-run 38s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Kurszettel: gezackter Abriss oben und unten. */
.slip { background: var(--tf-field); border-left: 1px solid var(--tf-rule); border-right: 1px solid var(--tf-rule); position: relative; }
.slip::before, .slip::after { content: ""; position: absolute; left: 0; right: 0; height: 6px;
background: radial-gradient(circle at 4px 6px, transparent 3px, var(--tf-field) 3.5px) 0 0 / 8px 6px repeat-x; }
.slip::before { top: -6px; transform: scaleY(-1); }
.slip::after { bottom: -6px; }
.dotted-row { border-bottom: 1px dotted var(--tf-rule2); }
/* Stufenbilder der Gebäude: Bauplan als Blaupause, dezentes Einblenden beim Aufstieg in einen neuen Abschnitt. */
.tf-plan path, .tf-plan rect, .tf-plan circle { fill: none; stroke: var(--tf-art-see); stroke-width: 1; stroke-dasharray: 2.4 1.8; }
@keyframes tf-grow { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.tf-grow { animation: tf-grow 600ms ease-out; }
/* Bewegte Gebäude (building-art/motion.tsx): nur transform/opacity; Ursprung je Element per transform-origin. */
@keyframes tf-spin { to { transform: rotate(360deg); } }
.tf-spin { animation: tf-spin 4s linear infinite; }
@keyframes tf-smoke { 0% { transform: translate(0, 3px); opacity: 0; } 30% { opacity: var(--tf-op, 0.9); } 100% { transform: translate(2px, -8px); opacity: 0; } }
.tf-smoke { animation: tf-smoke 3.2s ease-out infinite; }
@keyframes tf-flicker { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(0.88, 1.14); } 50% { transform: scale(1.06, 0.86); } 75% { transform: scale(0.94, 1.08); } }
.tf-flicker { animation: tf-flicker 0.9s ease-in-out infinite; }
@keyframes tf-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.12; } }
.tf-blink { animation: tf-blink 2.4s ease-in-out infinite; }
@keyframes tf-turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.tf-turn { animation: tf-turn 6s ease-in-out infinite; }
@keyframes tf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--tf-amp, 4px)); } }
.tf-bob { animation: tf-bob 3.6s ease-in-out infinite; }
@keyframes tf-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
.tf-swing { animation: tf-swing 7s ease-in-out infinite; }
@keyframes tf-flutter { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(0.82) skewY(7deg); } }
.tf-flutter { animation: tf-flutter 1.4s ease-in-out infinite; }
@keyframes tf-glint { 0%, 72%, 100% { opacity: 0; } 82% { opacity: 0.85; } }
.tf-glint { animation: tf-glint 6s ease-in-out infinite; }
/* Unsichtbar (außerhalb des Bildschirms) oder Tab verborgen: anhalten. */
/* Uhr (Minutenzeiger), Medaille, Hafenbild: leise Grundbewegung in SVG-Einheiten (transform-box: view-box). */
.tf-clock { animation: tf-spin 20s linear infinite; transform-box: view-box; transform-origin: 32px 32px; }
@keyframes tf-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.tf-medal { animation: tf-sway 4.5s ease-in-out infinite; transform-box: view-box; transform-origin: 32px 4px; }
.tf-wave { animation: tf-drift 6s ease-in-out infinite; }
@keyframes tf-floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(0.8px) rotate(-1deg); } }
.tf-float { animation: tf-floaty 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.tf-puff { animation: tf-glow 3s ease-in-out infinite; }
.tf-vflag { animation: tf-flutter 1.8s ease-in-out infinite; transform-box: view-box; transform-origin: 25px 25.5px; }
.tf-beam { animation: tf-glow 4s ease-in-out infinite; }
@keyframes tf-gullfly { 0% { transform: translate(-8px, 6px); } 50% { transform: translate(44px, 0); } 100% { transform: translate(100px, 5px); } }
.tf-gull { animation: tf-gullfly 22s linear infinite; }
.tf-star { animation: tf-glow 2.8s ease-in-out infinite; }
/* Wetter-Symbole (Vorhersage, Kärtchen): leise und versetzt. */
@keyframes tf-drift { 0%, 100% { transform: translateX(-1.5px); } 50% { transform: translateX(1.5px); } }
@keyframes tf-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes tf-shake { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.tf-wx-sonne { animation: tf-spin 28s linear infinite; transform-origin: 50% 50%; }
.tf-wx-wolke, .tf-wx-nebel { animation: tf-drift 7s ease-in-out infinite; }
.tf-wx-wind { animation: tf-drift 2.6s ease-in-out infinite; }
.tf-wx-mond { animation: tf-glow 5s ease-in-out infinite; }
.tf-wx-sturm { animation: tf-shake 0.7s ease-in-out infinite; transform-origin: 50% 80%; }
/* ---- Bewegte Symbole: Einheiten und Forschungen (icons-motion.tsx, mv()). Drehpunkt kommt inline in Rasterpunkten;
ruhig und klein (meist 3–9 s, ±1–4°, 1–2 px). Unter 28 px (Icon setzt .tf-still) steht alles still. */
.tf-mi { transform-box: view-box; }
.tf-still .tf-mi { animation: none; }
@keyframes tf-i-rock { 0%, 100% { transform: rotate(-1.3deg); } 50% { transform: rotate(1.3deg); } }
.tf-i-rock { animation: tf-i-rock 6.5s ease-in-out infinite; }
.tf-i-rockfast { animation: tf-i-rock 3.8s ease-in-out infinite; }
@keyframes tf-i-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.4px); } }
.tf-i-bob { animation: tf-i-bob 4.4s ease-in-out infinite; }
@keyframes tf-i-dive { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.8px); } }
.tf-i-dive { animation: tf-i-dive 8s ease-in-out infinite; }
@keyframes tf-i-look { 0%, 38% { transform: scaleX(1); } 50%, 88% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.tf-i-look { animation: tf-i-look 9s ease-in-out infinite; }
@keyframes tf-i-hover { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(0.6px, -1px) rotate(1.2deg); } 66% { transform: translate(-0.6px, 0.5px) rotate(-1deg); } }
.tf-i-hover { animation: tf-i-hover 7s ease-in-out infinite; }
@keyframes tf-i-tilt { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.tf-i-tilt { animation: tf-i-tilt 5s ease-in-out infinite; }
@keyframes tf-i-scan { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.tf-i-scan { animation: tf-i-scan 6s ease-in-out infinite; }
@keyframes tf-i-elev { 0%, 20%, 100% { transform: rotate(0); } 55%, 70% { transform: rotate(-5deg); } }
.tf-i-elev { animation: tf-i-elev 8s ease-in-out infinite; }
.tf-i-spin { animation: tf-spin 9s linear infinite; }
.tf-i-spinslow { animation: tf-spin 18s linear infinite; }
@keyframes tf-i-flag { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(0.86) skewY(6deg); } }
.tf-i-flag { animation: tf-i-flag 2.4s ease-in-out infinite; }
@keyframes tf-i-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.tf-i-blink { animation: tf-i-blink 3.2s ease-in-out infinite; }
.tf-i-glow { animation: tf-glow 5s ease-in-out infinite; }
@keyframes tf-i-ping { 0%, 100% { opacity: 0.25; } 25% { opacity: 1; } 60% { opacity: 0.45; } }
.tf-i-ping { animation: tf-i-ping 2.7s ease-in-out infinite; }
@keyframes tf-i-drift { 0%, 100% { transform: translateX(-1.2px); } 50% { transform: translateX(1.2px); } }
.tf-i-drift { animation: tf-i-drift 5s ease-in-out infinite; }
@keyframes tf-i-steam { 0% { transform: translateY(1px); opacity: 0.4; } 40% { opacity: 1; } 100% { transform: translateY(-2px); opacity: 0.3; } }
.tf-i-steam { animation: tf-i-steam 3.6s ease-out infinite; }
[data-tf-off] .tf-mv, html.tf-hidden .tf-mv { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .tf-grow, .tf-mv { animation: none !important; } }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
/* Tickerband steht still und lässt sich wischen. */
.ticker-track { animation: none !important; }
.ticker-scroll { overflow-x: auto; }
}
/* Lage (UX 0.43, L-4): Abholen-Rückmeldung steigt kurz auf; Hervorhebung „LOS“/Empfohlen (B5). */
@keyframes tf-claim { 0% { transform: translateY(6px) scale(0.96); opacity: 0; } 40% { transform: translateY(-3px) scale(1.03); opacity: 1; } 100% { transform: none; opacity: 1; } }
.tf-claim { animation: tf-claim 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes tf-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tf-accent) 45%, transparent); } }
.tf-flash { animation: tf-flash 1.4s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .tf-claim, .tf-flash { animation: none !important; } }