/* OCH – Operational Communication Harbor (v120)
 * Grundbausteine (Karten, Felder, Knöpfe, Tabellen) kommen aus der ACF-Gestaltung (basis.css.php). Hier: das Erscheinungsbild in Orange.
 * Lesbarkeit zuerst: Schrift bleibt dunkel auf hellem Kristallglas; Silber- und Farbschimmer laufen als Lichtband über dunkle
 * Buchstaben, Glitzer und Hologramm liegen nur auf dem Hintergrund. Großflächig bewegt wird nur per transform/opacity. */
html.ocf {
  --akzent-1: #2A1450; --akzent-2: #5B2BD9; --akzent-text: #FFFFFF;
  --marke: #B83A0B; --marke-hell: #FFF1E6; --marke-rand: #FFC9A3;
  --radius: 18px; --radius-s: 12px;
  --ocf-tinte: #1F1238; --ocf-tinte-weich: #4A3B63;
  --ocf-glas: rgba(255, 255, 255, .9); --ocf-glas-rand: rgba(255, 255, 255, .85);
  --ocf-schatten: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 18px 44px rgba(120, 40, 0, .22);
  color-scheme: light;
}
html.ocf, body.ocf-koerper { min-height: 100%; background: #FF8A00 linear-gradient(135deg, #FFB020 0%, #FF8A00 42%, #FF5E00 100%) fixed; }
body.ocf-koerper { margin: 0; color: var(--ocf-tinte); font-family: var(--font); overflow-x: hidden; }

/* Bewegtes Hologramm über dem Orange (dreht sich langsam, ein einziger Ebenen-Transform) */
.ocf-holo { position: fixed; inset: -60vmax; z-index: 0; pointer-events: none; opacity: .3; mix-blend-mode: soft-light; will-change: transform;
  background: conic-gradient(from 0deg, #FF7AD9, #8AF3FF, #B5FF9A, #FFE58A, #C9A8FF, #FF7AD9); animation: ocf-drehen 80s linear infinite; }
@keyframes ocf-drehen { to { transform: rotate(360deg); } }
/* Glitzer: zwei versetzte Punktfelder, die abwechselnd aufleuchten */
.ocf-glitzer { position: fixed; inset: 0; z-index: 0; pointer-events: none; will-change: opacity;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .95) 0 1px, transparent 1.7px), radial-gradient(circle, rgba(255, 236, 248, .9) 0 1.2px, transparent 2px);
  background-size: 190px 190px, 270px 270px; background-position: 0 0, 95px 140px; animation: ocf-funkeln 6s ease-in-out infinite; }
.ocf-glitzer-2 { background-size: 230px 230px, 310px 310px; background-position: 60px 40px, 170px 15px; animation-delay: -3s; }
@keyframes ocf-funkeln { 0%, 100% { opacity: .06; } 50% { opacity: .6; } }
.ocf-kopf, .ocf-inhalt, .ocf-fuss { position: relative; z-index: 1; }

/* Kopfzeile: helles Kristallglas */
.ocf-kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 24px 12px; background: rgba(255, 255, 255, .74);
  border-bottom: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 34px rgba(120, 40, 0, .2); }
.ocf-marke { display: flex; align-items: center; gap: 12px; color: var(--ocf-tinte); text-decoration: none; }
.ocf-zeichen { position: relative; display: inline-block; font: 900 31px/1 var(--font); letter-spacing: .05em; }
/* Silberschimmer: dunkle Buchstaben, ein silbern-weißes Lichtband zieht durch; ab und zu ein farbiger Glanz */
.ocf-zeichen-silber, .ocf-schimmer-text { color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 260% 100%;
  background-image: linear-gradient(100deg, var(--ocf-tinte) 0%, var(--ocf-tinte) 38%, #6E7A93 43%, #F4F7FC 48%, #FFFFFF 50%, #B9C4D9 53%, var(--ocf-tinte) 60%, var(--ocf-tinte) 100%);
  animation: ocf-silber 6.5s ease-in-out infinite; }
.ocf-zeichen-farbe { position: absolute; inset: 0; color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 260% 100%; opacity: 0;
  background-image: linear-gradient(100deg, transparent 0%, transparent 40%, #FF4FC4 46%, #3FD3FF 50%, #7CF25A 54%, transparent 60%, transparent 100%);
  animation: ocf-silber 6.5s ease-in-out infinite, ocf-farbglanz 19.5s ease-in-out infinite; }
@keyframes ocf-silber { 0% { background-position: 100% 0; } 62%, 100% { background-position: 0 0; } }
@keyframes ocf-farbglanz { 0%, 64% { opacity: 0; } 70%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
.ocf-marke-text strong { display: block; font-size: 14.5px; letter-spacing: .01em; }
.ocf-marke-text small { display: block; margin-top: 2px; font-size: 12px; color: var(--ocf-tinte-weich); }
.ocf-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ocf-nav-punkt { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; color: var(--ocf-tinte);
  text-decoration: none; font-weight: 700; font-size: 14px; transition: background .2s, transform .2s, box-shadow .2s; }
.ocf-nav-punkt:hover { background: rgba(255, 255, 255, .85); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(120, 40, 0, .16); }
.ocf-nav-punkt.aktiv { background: var(--ocf-tinte); color: #FFFFFF; box-shadow: 0 8px 20px rgba(31, 18, 56, .35), 0 0 0 2px rgba(255, 255, 255, .7); }
.ocf-zaehler { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #FF3D7F; color: #FFFFFF; font-size: 11.5px; text-align: center; box-shadow: 0 0 12px rgba(255, 61, 127, .6); }
.ocf-person { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.ocf-initiale { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #FFFFFF; font-weight: 900;
  background: linear-gradient(140deg, #2A1450, #5B2BD9); box-shadow: 0 0 0 2px #FFFFFF, 0 4px 12px rgba(31, 18, 56, .35); }
.ocf-abmelden { display: inline-flex; align-items: center; gap: 6px; color: var(--ocf-tinte); text-decoration: none; padding: 7px 10px; border-radius: 10px; }
.ocf-abmelden:hover { background: rgba(255, 255, 255, .85); }

/* Inhalt */
.ocf-inhalt { max-width: 1180px; margin: 0 auto; padding: 26px 24px 46px; }
.ocf-titel { margin-bottom: 18px; }
.ocf-titel h1 { margin: 6px 0 4px; font: 900 clamp(26px, 3.4vw, 36px)/1.15 var(--font); letter-spacing: -.02em; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .35)); }
.ocf-untertitel { margin: 0; font-weight: 600; color: var(--ocf-tinte-weich); }
.ocf-zurueck { display: inline-flex; align-items: center; gap: 6px; color: var(--ocf-tinte); font-weight: 700; text-decoration: none; font-size: 14px; }
.ocf-zurueck:hover { text-decoration: underline; }

/* Kristallglas-Karten mit Spiegelkante (statisch) */
html.ocf .karte { position: relative; overflow: hidden; background: var(--ocf-glas); border: 1px solid var(--ocf-glas-rand); box-shadow: var(--ocf-schatten); }
html.ocf .karte::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, 0) 30%), linear-gradient(315deg, rgba(255, 210, 160, .32) 0%, rgba(255, 255, 255, 0) 28%); }
html.ocf .karte > * { position: relative; z-index: 1; }

/* Erhabene Knöpfe: heben sich an, Lichtfleck folgt dem Zeiger, Spiegelglanz zieht einmal durch */
html.ocf .knopf { position: relative; overflow: hidden; isolation: isolate; transition: transform .18s cubic-bezier(.2, .7, .25, 1), box-shadow .18s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 2px 0 rgba(120, 40, 0, .12), 0 6px 16px rgba(120, 40, 0, .14); }
html.ocf .knopf::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .6), transparent 62%); }
html.ocf .knopf::before { content: ""; position: absolute; top: -60%; bottom: -60%; left: -60%; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-120%) skewX(-20deg); }
html.ocf .knopf:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 1px 0 #FFFFFF inset, 0 3px 0 rgba(120, 40, 0, .18), 0 14px 28px rgba(120, 40, 0, .26), 0 0 0 3px rgba(255, 138, 0, .22); }
html.ocf .knopf:hover:not(:disabled)::after { opacity: 1; }
html.ocf .knopf:hover:not(:disabled)::before { transition: transform .75s ease; transform: translateX(460%) skewX(-20deg); }
html.ocf .knopf:active:not(:disabled) { transform: translateY(0) scale(.98); }
html.ocf .knopf-primaer:hover:not(:disabled) { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 30px rgba(42, 20, 80, .4), 0 0 24px rgba(122, 43, 255, .45); }

/* Kennzahlen */
.ocf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 18px; }
.ocf-kpi { position: relative; overflow: hidden; display: block; padding: 18px 18px 16px; border-radius: 18px; color: var(--ocf-tinte); text-decoration: none;
  background: var(--ocf-glas); border: 1px solid var(--ocf-glas-rand); box-shadow: var(--ocf-schatten); transition: transform .2s cubic-bezier(.2, .7, .25, 1), box-shadow .2s; }
.ocf-kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #FF7AD9, #8AF3FF, #B5FF9A, #FFE58A, #C9A8FF, #FF7AD9); background-size: 200% 100%; }
.ocf-kpi::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-140%) skewX(-18deg); animation: ocf-spiegel 7s ease-in-out infinite; will-change: transform; }
.ocf-kpi:nth-child(2)::after { animation-delay: -1.7s; } .ocf-kpi:nth-child(3)::after { animation-delay: -3.4s; } .ocf-kpi:nth-child(4)::after { animation-delay: -5.1s; }
@keyframes ocf-spiegel { 0%, 55% { transform: translateX(-140%) skewX(-18deg); } 85%, 100% { transform: translateX(360%) skewX(-18deg); } }
.ocf-kpi b { display: block; font: 900 34px/1 var(--font); letter-spacing: -.02em; }
.ocf-kpi span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ocf-tinte-weich); }
.ocf-kpi:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #FFFFFF inset, 0 22px 46px rgba(120, 40, 0, .3); }
.ocf-kpi.hervor b { color: #C2185B; }

/* Reiter des Posteingangs auf Orange */
html.ocf .postfach-reiter a { background: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .9); color: var(--ocf-tinte); font-weight: 700; box-shadow: 0 4px 12px rgba(120, 40, 0, .12); }
html.ocf .postfach-reiter a.aktiv { background: var(--ocf-tinte); border-color: var(--ocf-tinte); color: #FFFFFF; }

/* Absender-Wahl beim Antworten */
.ocf-absender-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ocf-absender-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #FFF1E6; border: 1px solid #FFC9A3; font-weight: 700; font-size: 14px; }
.ocf-absender-chip.gewaehlt { background: #EEE8FF; border-color: #C9B8FF; color: #3B1E78; }
.ocf-absender-liste { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--rand); box-shadow: 0 16px 34px rgba(31, 18, 56, .18); }
.ocf-absender-liste[hidden] { display: none; }
.ocf-absender-option { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ocf-absender-option:hover, .ocf-absender-option[aria-selected="true"] { border-color: #5B2BD9; box-shadow: 0 0 0 3px rgba(91, 43, 217, .14); }
.ocf-absender-option small { color: var(--ocf-tinte-weich); }
.ocf-zustand { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ocf-zustand.aktiv { background: #E3FBEF; color: #0B6B3F; } .ocf-zustand.gesperrt { background: #FDE7EA; color: #A8131E; } .ocf-zustand.abgelaufen { background: #EEF0F4; color: #4A4F5E; }

/* Anmeldung */
.ocf-anmeldung { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.ocf-anmeldung .karte { width: 100%; max-width: 420px; padding: 30px 28px; }
.ocf-anmeldung .ocf-zeichen { font-size: 44px; }

.ocf-fuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1180px; margin: 0 auto; padding: 0 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; font-weight: 700; color: rgba(31, 18, 56, .72); }

@media (max-width: 760px) { .ocf-kopf { padding-left: 14px; padding-right: 14px; } .ocf-nav { margin-left: 0; } .ocf-person-name { display: none; } .ocf-inhalt { padding: 18px 14px 36px; } }
@media (prefers-reduced-motion: reduce) {
  .ocf-holo, .ocf-glitzer, .ocf-zeichen-silber, .ocf-zeichen-farbe, .ocf-schimmer-text, .ocf-kpi::after { animation: none; }
  .ocf-zeichen-silber, .ocf-schimmer-text { background: none; color: var(--ocf-tinte); }
  html.ocf .knopf, .ocf-kpi, .ocf-nav-punkt { transition: none; }
  html.ocf .knopf:hover::before { transition: none; transform: translateX(-120%) skewX(-20deg); }
}

/* Absender-Seite: zwei Spalten, auf schmalen Bildschirmen untereinander; Tabellen scrollen statt abgeschnitten zu werden */
.ocf-zweispaltig { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .ocf-zweispaltig { grid-template-columns: 1fr; } }
html.ocf .tabelle-rahmen { overflow-x: auto; }
.ocf-zeilen-aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.ocf-zeilen-aktionen form { margin: 0; }
