/* flotech.dev · Design-Sprache „Stream“ (Basis: stream.css aus ~/Software/Claude-Projects/Design, darunter Seiten-Teil).
   Schrift liegt selbst auf dem Server (Atkinson Hyperlegible Next, SIL Open Font License), nichts wird von Google geladen. */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/schrift/atkinson-next-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/schrift/atkinson-next-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --grund: #0e0f13;     /* Seitenhintergrund */
  --flaeche: #1b1e25;   /* Kästen */
  --hell: #22262f;      /* Kopfzeilen, Hover */
  --rand: #2c313c;      /* Ränder, Trenner */
  --text: #f4f4f6;
  --leise: #9a9daa;     /* Nebeninfos */
  --akzent: #ff2b2b;    /* Kanal-Rot, sparsam */
  --gut: #3ddc84; --warn: #ffb347; --schlecht: #ff5c5c; --info: #6cb4ff;
  /* Titel und Labels: Avenir Next (Mac), sonst Systemschrift · Inhalte: Atkinson Hyperlegible (lesbar, l/I/1 und 0/O verschieden) */
  --titel: 'Avenir Next', 'Avenir', 'Segoe UI', system-ui, sans-serif;
  --eng: 'Avenir Next Condensed', 'Avenir Next', 'Arial Narrow', system-ui, sans-serif;
  --inhalt: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', -apple-system, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--grund); }
body { margin: 0; background: var(--grund); color: var(--text); font: 15px/1.45 var(--inhalt); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.innen { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Kopfleiste: Titel groß, Großbuchstaben, gesperrt, roter Balken links */
.kopfleiste { background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.kopfleiste .innen { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.kopfleiste h1 { margin: 0; padding-left: 12px; border-left: 6px solid var(--akzent); font: 800 26px/1.1 var(--titel); letter-spacing: .08em; text-transform: uppercase; }
.kopfleiste h1 b { color: var(--akzent); font-weight: inherit; }
.kopfleiste .rechts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Abschnitts-Label: klein, rot, weit gesperrt (wie „CHAT“ im Stream) */
.ueber { margin: 26px 0 12px; font: 600 13px var(--titel); letter-spacing: .3em; text-transform: uppercase; color: var(--akzent); }

/* Kasten, optional mit roten Eckwinkeln wie die Kamera-Rahmen (.ecken) */
.kasten { position: relative; background: var(--flaeche); border: 1px solid var(--rand); padding: 12px 14px; }
.ecken::before, .ecken::after { content: ''; position: absolute; width: 22px; height: 22px; border: 3px solid var(--akzent); pointer-events: none; }
.ecken::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; }
.ecken::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }

/* Schild: Text mit rotem Balken links, z. B. Name, Ereignis */
.schild { display: inline-block; padding: 4px 12px 3px 10px; border-left: 5px solid var(--akzent); background: rgba(14, 15, 19, .9); font: 800 15px var(--titel); letter-spacing: .08em; text-transform: uppercase; }
.leiste { border-left: 3px solid var(--akzent); padding-left: 9px; }   /* leichter Balken für Listenzeilen */

/* Kapsel mit Ampelpunkt für Zustände */
.kapsel { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid var(--rand); background: var(--flaeche); font: 600 13px var(--inhalt); white-space: nowrap; }
.kapsel::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--leise); flex: none; }
.kapsel.gut::before { background: var(--gut); } .kapsel.warn::before { background: var(--warn); } .kapsel.schlecht::before { background: var(--schlecht); } .kapsel.info::before { background: var(--info); }
.kapsel.live { border-color: var(--akzent); color: var(--akzent); font-family: var(--titel); font-weight: 800; letter-spacing: .08em; }
.kapsel.live::before { background: var(--akzent); }

/* Zahlen und Werte: immer lesbare Schrift, nie Großbuchstaben */
.wert { font: 800 26px/1.1 var(--inhalt); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.leise { color: var(--leise); }
.marke { display: inline-block; font: 700 11px var(--titel); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--rand); color: var(--text); }

/* Knöpfe: ohne Wirkung → gesperrt und grau, nicht nur unauffällig */
button, .knopf { font: 700 14px var(--inhalt); color: var(--text); background: var(--hell); border: 1px solid var(--rand); border-radius: 6px; padding: 7px 13px; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .knopf:hover { border-color: var(--akzent); }
button.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
button:disabled { opacity: .4; cursor: not-allowed; }
input, select, textarea { font: 15px var(--inhalt); color: var(--text); background: var(--flaeche); border: 1px solid var(--rand); border-radius: 6px; padding: 7px 10px; }

/* Fenster (dialog) */
dialog { padding: 0; border: 1px solid var(--rand); background: var(--grund); color: var(--text); width: min(900px, calc(100% - 32px)); box-shadow: 0 20px 60px #000a; }
dialog::backdrop { background: #000a; }
pre { font: 12.5px/1.5 ui-monospace, 'SF Mono', monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: #08090c; border: 1px solid var(--rand); padding: 10px 12px; margin: 0; }

/* Bewegung: weich einblenden, nie flackern */
@keyframes rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rein { animation: rein .35s ease-out; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Seite flotech.dev ---------- */
@media (prefers-color-scheme: light) {
  :root { --grund: #f6f6f8; --flaeche: #ffffff; --hell: #eceef2; --rand: #d9dce3; --text: #14161b; --leise: #5f6371; --akzent: #e01e1e; --gut: #1f9d55; color-scheme: light; }
  .schild { background: rgba(255, 255, 255, .92); }
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img { max-width: 100%; height: auto; display: block; }
.innen { max-width: 1040px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }

/* Kopf: Logo + Navigation, bleibt oben */
.kopf { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--flaeche) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rand); }
.kopf .innen { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.kopf .logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; padding-left: 10px; border-left: 5px solid var(--akzent); font: 800 20px var(--titel); letter-spacing: .1em; text-transform: uppercase; }
.kopf .logo-link img { width: 32px; height: 32px; }
.kopf nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.kopf nav a { text-decoration: none; color: var(--leise); font: 600 14px var(--inhalt); }
.kopf nav a:hover { color: var(--text); }
@media (max-width: 720px) { .kopf nav { display: none; } }

/* Start-Bühne */
.buehne { padding: 64px 0 40px; }
.buehne .innen { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.buehne h1 { margin: 0 0 14px; padding-left: 14px; border-left: 8px solid var(--akzent); font: 800 clamp(40px, 7vw, 72px)/1 var(--titel); letter-spacing: .08em; text-transform: uppercase; }
.buehne .unterzeile { font-size: 19px; color: var(--leise); margin: 0 0 24px; max-width: 34ch; }
.buehne .knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.buehne .bild { position: relative; justify-self: center; width: min(340px, 80vw); }
.buehne .bild img { width: 100%; aspect-ratio: 1; }
@media (max-width: 720px) { .buehne .innen { grid-template-columns: 1fr; } .buehne .bild { order: -1; width: 200px; justify-self: start; } }

.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; }
.knopf:hover { border-color: var(--akzent); }

/* Abschnitte */
.abschnitt { padding: 22px 0 18px; }
.abschnitt h2 { margin: 0 0 14px; font: 800 clamp(26px, 4vw, 34px)/1.15 var(--inhalt); }
.abschnitt p { max-width: 68ch; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.leistung { border-left: 4px solid var(--akzent); }
.leistung h3 { margin: 4px 0 6px; font: 700 18px var(--inhalt); }
.leistung p { margin: 0; color: var(--leise); font-size: 14px; }
.leistung .zeichen { font-size: 26px; }

/* Über mich */
.ueber-mich { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.ueber-mich img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--rand); }
.ueber-mich p { margin: 0 0 14px; }
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 18px; }
.fakt .ueber { margin: 0 0 4px; font-size: 11px; }
.fakt b { font-size: 15px; }
@media (max-width: 720px) { .ueber-mich { grid-template-columns: 1fr; } .ueber-mich img { max-width: 260px; } }

/* Karten (automatisch aus projekte/, blog/, veranstaltungen/) */
.sortierung { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; color: var(--leise); font-size: 13px; }
.sortierung button { padding: 5px 11px; font-size: 13px; }
.sortierung button[aria-pressed="true"] { border-color: var(--akzent); color: var(--akzent); }
.karten { display: grid; gap: 10px; }
.karte { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; text-decoration: none; padding: 14px 16px; border-left: 4px solid var(--rand); }
.karte:hover { border-left-color: var(--akzent); background: var(--hell); }
.karte .bild { width: 64px; height: 64px; display: grid; place-items: center; background: var(--hell); font-size: 28px; }
.karte .bild img { width: 56px; height: 56px; object-fit: contain; }
.karte h3 { margin: 0 0 3px; font: 700 18px var(--inhalt); }
.karte p { margin: 0 0 6px; color: var(--leise); font-size: 14px; }
.karte .pfeil { color: var(--leise); font-size: 20px; }
.karte .datum { color: var(--leise); font-size: 12px; margin-left: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .karte { grid-template-columns: 48px 1fr; } .karte .bild { width: 48px; height: 48px; } .karte .pfeil { display: none; } }

/* GitHub-Repos */
.repo { text-decoration: none; display: grid; gap: 6px; border-left: 4px solid var(--rand); }
.repo:hover { border-left-color: var(--akzent); background: var(--hell); }
.repo h3 { margin: 0; font: 700 17px var(--inhalt); overflow-wrap: anywhere; }
.repo p { margin: 0; color: var(--leise); font-size: 14px; }
.repo .klein { color: var(--leise); font-size: 12px; }

/* Streaming */
.streaming { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border-left: 5px solid #9146ff; }
.streaming h3 { margin: 0 0 6px; font: 800 22px var(--inhalt); }
.streaming p { margin: 0; color: var(--leise); }
.streaming .knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.twitch { background: #9146ff; border-color: #9146ff; color: #fff; }
.kofi { background: #72a4f2; border-color: #72a4f2; color: #fff; }
@media (max-width: 640px) { .streaming { grid-template-columns: 1fr; } }

/* Kontakt */
.kontakt { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.kontakt .mail { font: 800 clamp(20px, 3.5vw, 28px) var(--inhalt); text-decoration: none; overflow-wrap: anywhere; }
.kontakt .mail:hover { color: var(--akzent); }

/* Feste Mail-Taste auf dem Handy */
.handy-taste { display: none; }
@media (max-width: 720px) {
  .handy-taste { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; justify-content: center; box-shadow: 0 8px 30px #0008; }
  body { padding-bottom: 80px; }
}

/* Unterseiten */
.seite { padding: 40px 20px 24px; }   /* sitzt mit .innen am selben Element – seitlicher Abstand wie .innen, sonst klebt der Text am Handy am Rand */
.seite h1 { margin: 0 0 12px; padding-left: 12px; border-left: 6px solid var(--akzent); font: 800 clamp(30px, 5vw, 46px)/1.1 var(--inhalt); }
.seite .vorspann { font-size: 18px; color: var(--leise); max-width: 62ch; margin: 0 0 20px; }
.seite h2 { margin: 30px 0 10px; font: 800 24px var(--inhalt); }
.seite p, .seite li { max-width: 70ch; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 20px 0; }
.zahlen .wert { color: var(--text); }
.zahlen .leise { font-size: 13px; }
.schritte { display: grid; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.schritte li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.schritte li::before { content: attr(data-zeichen); font-weight: 800; color: var(--leise); }
.schritte li.erledigt::before { color: var(--gut); }
.rechtliches .kasten { margin-bottom: 12px; }
.rechtliches h2 { margin: 0 0 8px; font: 600 12px var(--titel); letter-spacing: .25em; text-transform: uppercase; color: var(--akzent); }
.rechtliches p { margin: 0 0 8px; }

/* Fuß */
.fuss { margin-top: 36px; border-top: 1px solid var(--rand); padding: 22px 0 30px; color: var(--leise); font-size: 13px; }
.fuss .innen { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.fuss nav { display: flex; gap: 14px; flex-wrap: wrap; }
.fuss a { color: var(--leise); }

/* Link-Seite für die Instagram-Bio */
.links { max-width: 520px; margin: 0 auto; padding: 36px 16px 40px; text-align: center; }
.links img.ich { width: 112px; height: 112px; object-fit: cover; object-position: 50% 30%; margin: 0 auto 14px; border: 3px solid var(--akzent); border-radius: 50%; }
.links h1 { margin: 0 0 4px; font: 800 26px var(--titel); letter-spacing: .1em; text-transform: uppercase; }
.links .unterzeile { color: var(--leise); margin: 0 0 22px; }
.links .liste { display: grid; gap: 10px; text-align: left; }
.links .liste a { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; background: var(--flaeche); border: 1px solid var(--rand); border-left: 5px solid var(--akzent); }
.links .liste a:hover { background: var(--hell); }
.links .liste .zeichen { font-size: 22px; text-align: center; }
.links .liste b { display: block; font-size: 16px; }
.links .liste small { color: var(--leise); }

/* Ko-fi-Kasten auf der Startseite */
.unterstuetzen { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border-left: 5px solid #72a4f2; padding: 20px 22px; }
.knopf.gross { padding: 14px 22px; font-size: 16px; }
@media (max-width: 640px) { .unterstuetzen { grid-template-columns: 1fr; } }

/* Streamzeiten (/streams): größere Schrift, Liste ohne Tabelle, damit sie am Handy umbricht */
.streams { font-size: 18px; }
.streams .vorspann a { color: var(--text); }
.streams .naechster { border-left: 5px solid #9146ff; padding: 20px 22px; margin: 8px 0 14px; }
.streams .naechster p { margin: 0 0 10px; max-width: none; }
.streams .naechster p:last-child { margin-bottom: 0; }
.streams .naechster .etikett { font: 600 13px var(--titel); letter-spacing: .25em; text-transform: uppercase; color: var(--leise); }
.streams .naechster .etikett .marke { letter-spacing: .06em; }
.streams .naechster .gross { font: 800 clamp(24px, 4.5vw, 34px)/1.2 var(--inhalt); color: var(--text); }
.streams .naechster.ist-live { border-left-color: var(--akzent); }
.streams .pause-hinweis { border-left: 5px solid var(--warn); padding: 12px 16px; max-width: none; }
.streams .marke.vielleicht, .streamliste .marke { background: #4a3b16; color: var(--warn); }
.streamliste { display: grid; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.streams .streamliste li { display: grid; grid-template-columns: 7.5em 9.5em 1fr; gap: 6px 16px; align-items: baseline; padding: 12px 16px; border-left: 4px solid var(--akzent); max-width: none; }
.streamliste li.vielleicht { border-left-color: var(--warn); border-left-style: dashed; }
.streamliste .tag b { display: inline-block; min-width: 1.6em; }
.streamliste .zeit { font-variant-numeric: tabular-nums; color: var(--leise); }
.streamliste .thema { font-weight: 700; overflow-wrap: anywhere; }
.streams .stand { font-size: 15px; }
.streams .kalender p { max-width: none; }
.streams .kalender .knoepfe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.streams code { font: 14px ui-monospace, 'SF Mono', monospace; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .streams .streamliste li { grid-template-columns: auto 1fr; }
  .streamliste .thema { grid-column: 1 / -1; }
}
