/* Schriften lokal (SIL Open Font License, siehe assets/fonts/OFL.txt) – statt Google Fonts (C11, Datenschutz) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }
/* Five Lakes Padel Leagues – Stil des Prototyps: Seeblau als Grundton, Hechendorf-Orange als Akzent */
:root { --bg:#F2F6F8; --surface:#fff; --surface-2:#E6EEF3; --fg:#13232F; --muted:#5C6E7B; --line:#D5DFE6; --lake:#0D4B6E; --lake-2:#1C7FA8; --lake-3:#9CCBE1; --sky:#DDEBF3; --accent:#E8601C; --accent-ink:#fff; --ok:#2B8A4E; --warn:#B87400; --crit:#B3261E; --display:"Barlow Condensed","Arial Narrow",Arial,sans-serif; --body:"Barlow","Helvetica Neue",Arial,sans-serif; --shadow:0 10px 30px rgba(13,75,110,.10); }
@media (prefers-color-scheme: dark) { :root { --bg:#0B1820; --surface:#122531; --surface-2:#1A3140; --fg:#E6EEF3; --muted:#94A7B4; --line:#244052; --lake:#0F5A82; --lake-2:#2C93C1; --lake-3:#4C8FB0; --sky:#163445; --accent:#F27A3A; --accent-ink:#15110D; --ok:#4FBF7A; --warn:#E0A030; --crit:#E06C64; --shadow:0 10px 30px rgba(0,0,0,.35); } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--body); }
a { color: var(--lake-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.5vw, 40px); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--accent); }
.eyebrow.light { color: #FFC28F; }
.muted, .hint { color: var(--muted); } .hint { font-size: 14px; margin-top: 6px; }
.light-muted { color: rgba(255,255,255,.85); margin-top: 6px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }
section { padding-block: 48px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.head .sub { color: var(--muted); max-width: 62ch; }
/* Kopf */
header.top { position: sticky; top: 0; z-index: 9; background: var(--lake); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 18px; padding-block: 10px; }
.brand { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; flex: 0 0 auto; display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 42px; height: 42px; flex: 0 0 auto; }
.brand small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .14em; opacity: .85; margin-top: 3px; }
nav.main { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-radius: 6px; white-space: nowrap; opacity: .9; }
nav.main a:hover, nav.main a.on { background: rgba(255,255,255,.14); opacity: 1; }
nav.main a.cta { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.btn.tiny.on { border-color: var(--line); background: var(--surface); color: var(--fg); opacity: 1; }
.flash { margin-top: 16px; padding: 10px 14px; border-radius: 10px; font-weight: 600; background: #2B8A4E22; color: var(--ok); }
.flash.warn { background: #B8740033; color: var(--warn); } .flash.crit { background: #B3261E22; color: var(--crit); }
/* Hero */
.hero { background: linear-gradient(180deg, var(--lake) 0%, var(--lake-2) 85%); color: #fff; position: relative; overflow: hidden; padding: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding-block: 56px 88px; align-items: end; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 800; text-transform: uppercase; line-height: .92; }
.hero h1 span { color: #FFC28F; display: block; font-size: clamp(22px, 3.4vw, 42px); letter-spacing: .05em; line-height: 1.05; margin-top: .45em; } /* Hero-Zeile: Slogan unter der Überschrift, kleiner als die Hauptzeilen */
.hero .lead { font-size: clamp(17px, 2vw, 20px); max-width: 34ch; margin-top: 18px; opacity: .95; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; padding: 12px 20px; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.small { font-size: 15px; padding: 8px 14px; } .btn.tiny { font-size: 13px; padding: 5px 10px; letter-spacing: .03em; }
.btn.danger { background: #B3261E22; color: var(--crit); }
.season { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 18px 20px; }
.season dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; }
.season dt { color: rgba(255,255,255,.75); font-size: 14px; } .season dd { margin: 0; font-weight: 600; }
.progress { margin-top: 14px; } .progress .bar { height: 8px; background: rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; } .progress .bar i { display: block; height: 100%; background: #FFC28F; }
.progress .cap { display: flex; justify-content: space-between; font-size: 13px; margin-top: 6px; color: rgba(255,255,255,.8); }
.waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 70px; display: block; } .wave-bg { fill: var(--bg); }
/* So läuft's */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px 22px; display: grid; gap: 10px; align-content: start; }
.step .n { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--lake-2); line-height: 1; } .step p { color: var(--muted); font-size: 15px; }
/* Tabelle */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 0 12px; font-size: 13px; color: var(--muted); } .legend b { color: var(--fg); }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
table.standings { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
table.standings th, table.standings td { padding: 10px; text-align: right; white-space: nowrap; }
table.standings th { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--muted); border-bottom: 2px solid var(--line); }
table.standings .l { text-align: left; } table.standings td { border-bottom: 1px solid var(--line); font-size: 15px; }
tr.team { cursor: pointer; } tr.team:hover td, tr.team[aria-expanded="true"] td { background: var(--surface-2); }
td.rank { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--lake); } td.pts { font-weight: 800; font-family: var(--display); font-size: 20px; }
td.name { font-weight: 600; } td.name .ort { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.delta { font-family: var(--body); font-size: 11px; font-weight: 600; margin-left: 4px; } .delta.up { color: var(--ok); } .delta.down { color: var(--crit); } .delta.same { color: var(--muted); }
tr.group td { background: var(--sky); text-align: left; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--lake); padding: 7px 10px; } tr.group td b { color: var(--accent); margin-right: 6px; }
tr.detail td { background: var(--surface-2); padding: 10px 14px 14px; white-space: normal; text-align: left; }
.resultlist { display: grid; gap: 6px; } .result { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; font-size: 14px; }
.result .r { color: var(--muted); font-family: var(--display); font-weight: 700; } .result .sets { color: var(--muted); }
.wl { font-family: var(--display); font-weight: 800; min-width: 24px; text-align: center; border-radius: 6px; padding: 2px 6px; } .wl.w { background: #2B8A4E22; color: var(--ok); } .wl.l { background: #B3261E22; color: var(--crit); } .wl.n { background: var(--line); color: var(--muted); }
table.ft { min-width: 420px; } table.ft td.start { color: var(--accent); font-weight: 700; }
@media (max-width: 640px) { .col-games { display: none; } }
/* Runde */
.rounds, .groups { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.round { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .04em; padding: 8px 12px; min-width: 72px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; display: grid; justify-items: center; line-height: 1; gap: 5px; }
.round small { font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.round.on { background: var(--lake); color: #fff; border-color: var(--lake); } .round.on small { color: rgba(255,255,255,.75); } .round.future { opacity: .65; } .round.future.on { opacity: 1; }
.deadline { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.deadline .big { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); } .deadline .big small { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.deadline.done { border-left-color: var(--ok); } .deadline.done .big { color: var(--ok); } .deadline.future { border-left-color: var(--lake-3); } .deadline.future .big { color: var(--lake-2); }
.matches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.match { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.match .teams { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; } .match .t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .match .t.win { color: var(--lake-2); }
.match .score { font-family: var(--display); font-weight: 800; font-size: 18px; } .match .meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 9px; background: var(--line); color: var(--muted); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.chip.ok { background: #2B8A4E22; color: var(--ok); } .chip.warn { background: #B8740033; color: var(--warn); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 28px 20px; text-align: center; color: var(--muted); }
/* Finaltag */
.stand { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.finale { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card.dark { background: var(--lake); color: #fff; border-color: transparent; } .card.dark h3 { font-size: 28px; }
.card.prose { line-height: 1.6; white-space: normal; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; } .fact .v { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; } .fact .k { font-size: 13px; opacity: .8; margin-top: 4px; }
.dur { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.14); font-weight: 600; font-size: 14px; } .dur.long { background: var(--accent); color: var(--accent-ink); }
ul.clean { margin: 10px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; } ul.clean li::marker { color: var(--accent); } ul.clean.light { color: rgba(255,255,255,.85); }
table.courtplan { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 14px; }
table.courtplan th, table.courtplan td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.courtplan th { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--muted); }
table.courtplan td.time { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--lake); white-space: nowrap; } table.courtplan td.free { color: var(--muted); } table.courtplan td.fin { color: var(--accent); font-weight: 600; }
/* Regeln */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .rule { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; } .rule h3 { color: var(--lake); margin-bottom: 8px; } .rule p { color: var(--muted); font-size: 15px; }
/* Formulare */
.form { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .span2 { grid-column: 1 / -1; } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fs { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.fs legend { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--lake); padding: 0 6px; }
.field { display: grid; gap: 5px; min-width: 0; margin-bottom: 10px; } .field label { font-size: 14px; font-weight: 600; } .opt { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.field input, .field select, .form-inline select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; min-width: 0; }
.field input:focus, .field select:focus { outline: 3px solid rgba(28,127,168,.45); outline-offset: 0; border-color: var(--lake-2); }
.field.invalid input, .field.invalid select { border-color: var(--crit); } .err { color: var(--crit); font-size: 13px; }
.checks { gap: 10px; } .check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; font-weight: 400; } .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.summary { border: 1px solid var(--line); border-left: 6px solid var(--ok); border-radius: 12px; padding: 18px 20px; background: var(--surface); display: grid; gap: 12px; justify-items: start; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; } .form-inline select { width: auto; }
/* Admin */
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; } .tile .v { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--lake); } .tile .k { color: var(--muted); font-size: 14px; margin-top: 4px; } .tile.warn .v { color: var(--warn); }
table.admin { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
table.admin th, table.admin td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin th { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--muted); }
tr.st-ausgeschieden td { opacity: .55; }
td.actions { white-space: nowrap; } form.inline { display: inline-block; margin: 0 4px 4px 0; }
footer { background: var(--lake); color: rgba(255,255,255,.85); margin-top: 20px; } footer .wrap { padding-block: 32px; display: grid; grid-template-columns: 1fr auto; gap: 16px; font-size: 14px; align-items: center; } footer a { color: #fff; margin-left: 16px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 80px; } .steps, .rules { grid-template-columns: repeat(2, 1fr); } .finale { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .steps, .rules, .matches, .form-grid, .fs, .grid2, .facts3 { grid-template-columns: 1fr; } footer .wrap { grid-template-columns: 1fr; } footer a { margin-left: 0; margin-right: 16px; } .brand { font-size: 18px; gap: 8px; } .brand .logo { width: 34px; height: 34px; } .fact .v { font-size: 26px; } }

/* C3: Mein Team, Admin */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; } .subnav a { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; } .subnav a.on { background: var(--lake); color: #fff; border-color: var(--lake); }
dl.contact { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; } dl.contact dt { color: rgba(255,255,255,.75); font-size: 14px; } dl.contact dd { margin: 0; font-weight: 600; }
.btn.wa { background: #25D366; color: #062d14; margin-left: 8px; }
.fact .v.crit { color: #FFB4AE; }
.score-big { font-family: var(--display); font-weight: 800; font-size: 32px; margin-top: 8px; }
.sets { display: grid; gap: 8px; margin: 12px 0; } .set-row { display: grid; grid-template-columns: 1fr 64px 16px 64px; gap: 8px; align-items: center; } .set-row label { font-size: 14px; font-weight: 600; } .set-row input { font: inherit; font-size: 18px; text-align: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; } .set-row .colon { text-align: center; font-weight: 800; }
.small-input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); width: 130px; }
tr.overdue td { background: #B3261E11; } .crit { color: var(--crit); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; resize: vertical; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } .set-row { grid-template-columns: 1fr 56px 12px 56px; } }

/* C4: Finaltag */
.ft-row { display: grid; grid-template-columns: 90px 1fr 54px 12px 54px 1fr auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ft-row .lbl { font-family: var(--display); font-weight: 700; color: var(--muted); letter-spacing: .04em; } .ft-row .t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ft-row .t:last-of-type { text-align: right; }
.ft-row input { font: inherit; font-size: 16px; text-align: center; padding: 6px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); width: 100%; } .ft-row .colon { text-align: center; font-weight: 800; }
ol.placement { margin: 8px 0 0; padding-left: 22px; font-weight: 600; } ol.placement li:first-child { color: var(--accent); font-size: 18px; }
.live-bar { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 6px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
@media (max-width: 640px) { .ft-row { grid-template-columns: 70px 1fr 46px 10px 46px 1fr; } .ft-row button { grid-column: 1 / -1; justify-self: end; } }

/* C5: Konto, Saisons */
.announce { padding-block: 0 8px; } .announce-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; border-left: 6px solid var(--accent); margin-top: 24px; }
.saison-wahl { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; } .saison-wahl select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.groups.saisons { margin-bottom: 14px; }
code.code { font-size: 20px; font-weight: 800; letter-spacing: .15em; padding: 3px 10px; background: var(--sky); color: var(--lake); border-radius: 6px; }
@media (max-width: 640px) { .announce-card { grid-template-columns: 1fr; } .saison-wahl { margin-left: 0; width: 100%; } }

/* C14: Nachrichten je Spiel, Zahl neuer Nachrichten in der Navigation, Telefon ändern */
nav.main a .badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: #fff; color: var(--accent); font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0; text-align: center; margin-left: 6px; vertical-align: 2px; }
.card.chat { grid-column: 1 / -1; }
.msgs { display: grid; gap: 10px; margin-top: 14px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.msg { padding: 10px 14px; border-radius: 14px; background: var(--surface-2); max-width: min(85%, 560px); justify-self: start; }
.msg.mine { background: var(--sky); justify-self: end; border-bottom-right-radius: 4px; } .msg.theirs { border-bottom-left-radius: 4px; }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; } .msg .meta b { color: var(--fg); }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.chat form.msg-form { margin-top: 14px; display: grid; gap: 8px; } .chat textarea { min-height: 72px; } .chat .msg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
details.thread summary { cursor: pointer; font-weight: 600; white-space: nowrap; } details.thread .msgs { max-height: 320px; min-width: 280px; } details.thread .msg { max-width: 100%; }
table.admin td.actions { min-width: 240px; } table.admin td.thread-cell { min-width: 300px; }   /* Platz für 0:0 · Sieg A · Sieg B · Öffnen in einer Zeile, seit die Spalte Nachrichten dazukam */
.tel-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; } .tel-form input { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 200px; max-width: 100%; }
@media (max-width: 640px) { .msg { max-width: 92%; } }
