/* Portal arbeiten.steuersoft.de - Gestaltung angelehnt an www.steuersoft.de.
   Alles lokal: Schrift Inter (OFL) aus /assets, keine fremden Quellen. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin.woff2") format("woff2-variations"), url("inter-latin.woff2") format("woff2");
}

:root {
  --navy-tief: #060f20;
  --navy: #0a1e3d;
  --marke: #1e3f6e;
  --marke-hell: #2d5789;
  --gruen: #6cb33f;
  --gruen-hell: #8cc63f;
  --akzent: #e8630a;
  --text: #e8edf5;
  --text-leise: #9fb0c8;
  --rand: rgba(255, 255, 255, 0.10);
  --karte: rgba(255, 255, 255, 0.035);
  --warn: #f2b33d;
  --stoer: #e5484d;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--navy-tief);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(45, 87, 137, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(108, 179, 63, 0.10), transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gruen-hell); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Statusleiste (wie auf steuersoft.de) ───────────────────────── */
.status {
  font-size: 0.82rem;
  border-bottom: 1px solid var(--rand);
  background: rgba(6, 15, 32, 0.85);
}
.status-innen { max-width: 1140px; margin: 0 auto; padding: 0.45rem 1.25rem; display: flex; gap: 0.6rem; align-items: center; }
.status-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); flex: none; box-shadow: 0 0 0 3px rgba(108, 179, 63, 0.18); }
.status[data-stufe="wartung"] .status-punkt { background: var(--warn); box-shadow: 0 0 0 3px rgba(242, 179, 61, 0.2); }
.status[data-stufe="stoerung"] .status-punkt { background: var(--stoer); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.2); }
.status[data-stufe="wartung"] { background: rgba(242, 179, 61, 0.10); }
.status[data-stufe="stoerung"] { background: rgba(229, 72, 77, 0.12); }
.status-titel { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.status-text { color: var(--text-leise); }

/* ── Kopf ────────────────────────────────────────────────────────── */
.kopf { border-bottom: 1px solid var(--rand); background: rgba(10, 30, 61, 0.55); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.kopf-innen { max-width: 1140px; margin: 0 auto; padding: 0.9rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 18px; width: auto; display: block; }
.logo-zusatz { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gruen); border-left: 1px solid var(--rand); padding-left: 0.75rem; }
.kopf nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; font-size: 0.92rem; }
.kopf nav a { color: var(--text); }
.knopf {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  background: var(--gruen); color: #0b1a07; border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}
.knopf:hover { background: var(--gruen-hell); text-decoration: none; transform: translateY(-1px); }
.knopf.zweit { background: transparent; color: var(--text); border-color: var(--rand); }
.knopf.zweit:hover { background: rgba(255, 255, 255, 0.06); }
.knopf.klein { padding: 0.45rem 0.95rem; font-size: 0.88rem; }

/* ── Inhalt ──────────────────────────────────────────────────────── */
main { flex: 1; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.held { padding: 4.5rem 0 3rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.held h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 0 0 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.held h1 em { font-style: normal; color: var(--gruen); display: block; }
.held p.lead { font-size: 1.12rem; color: var(--text-leise); max-width: 38rem; margin: 0 0 2rem; }
.held .knoepfe { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.etikett { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gruen); margin-bottom: 1rem; }

.anmeldekarte {
  border: 1px solid var(--rand); border-radius: var(--radius); background: linear-gradient(180deg, rgba(30, 63, 110, 0.45), rgba(10, 30, 61, 0.6));
  padding: 1.75rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.anmeldekarte h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.anmeldekarte p { margin: 0 0 1.25rem; color: var(--text-leise); font-size: 0.95rem; }
.anmeldekarte .knopf { width: 100%; justify-content: center; }
.anmeldekarte ul { list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: 0.88rem; color: var(--text-leise); }
.anmeldekarte li { padding: 0.3rem 0 0.3rem 1.5rem; position: relative; }
.anmeldekarte li::before { content: "✓"; position: absolute; left: 0; color: var(--gruen); font-weight: 700; }

.abschnitt { padding: 2.5rem 0; }
.abschnitt > h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-leise); text-align: center; margin: 0 0 1.5rem; font-weight: 700; }
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kachel { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--karte); padding: 1.25rem; }
.kachel .klein { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-leise); font-weight: 700; }
.kachel h3 { margin: 0.35rem 0 0.4rem; font-size: 1.05rem; }
.kachel p { margin: 0; color: var(--text-leise); font-size: 0.9rem; }

.band {
  margin: 1rem 0 3rem; border-radius: var(--radius); padding: 1.6rem 1.8rem;
  background: linear-gradient(90deg, rgba(108, 179, 63, 0.22), rgba(108, 179, 63, 0.08));
  border: 1px solid rgba(108, 179, 63, 0.35); display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.band p { margin: 0; font-weight: 600; font-size: 1.05rem; }
.band p span { display: block; font-weight: 400; color: var(--text-leise); font-size: 0.95rem; }

/* Textseiten (Erste Schritte, Impressum, Datenschutz) */
.textseite { max-width: 820px; margin: 0 auto; padding: 3rem 0 4rem; }
.textseite h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.textseite .lead { color: var(--text-leise); margin: 0 0 2rem; font-size: 1.05rem; }
.textseite h2 { font-size: 1.15rem; margin: 2.2rem 0 0.6rem; color: var(--text); }
.textseite p, .textseite li { color: #cdd7e6; }
.textseite ul { padding-left: 1.2rem; }
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.schritte li { counter-increment: s; position: relative; padding: 1rem 1rem 1rem 3.4rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--karte); margin-bottom: 0.75rem; }
.schritte li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--marke); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.85rem; }
.schritte strong { color: var(--text); }
.hinweisbox { border-left: 3px solid var(--gruen); background: rgba(108, 179, 63, 0.08); padding: 0.9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
.hinweisbox.warn { border-left-color: var(--warn); background: rgba(242, 179, 61, 0.08); }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--rand); }
th { color: var(--text-leise); font-weight: 600; }
td.ja { color: var(--gruen); font-weight: 700; }
td.nein { color: var(--text-leise); }

/* ── Fuss ───────────────────────────────────────────────────────── */
.fuss { border-top: 1px solid var(--rand); margin-top: 2rem; font-size: 0.85rem; color: var(--text-leise); }
.fuss-innen { max-width: 1140px; margin: 0 auto; padding: 1.5rem 1.25rem; display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.fuss nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fuss a { color: var(--text-leise); }

@media (max-width: 900px) {
  .held { grid-template-columns: 1fr; padding-top: 3rem; gap: 2rem; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .kacheln { grid-template-columns: 1fr; }
  .kopf nav a:not(.knopf) { display: none; }
  .logo-zusatz { display: none; }
}
@media (prefers-reduced-motion: reduce) { .knopf { transition: none; } }

/* ── IP-Freigabe (App-Zugang) - bewusst auffaellig ─────────────────── */
.freigabe-karte {
  border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.25rem 1.4rem;
  background: var(--karte); margin: 0 0 2rem; border-left-width: 6px;
}
.freigabe-karte.gross { margin-top: -0.5rem; }
.fg-kopf { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.fg-kopf .klein { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-leise); font-weight: 700; }
.fg-kopf .knopf { margin-left: auto; }
.fg-ampel { width: 18px; height: 18px; border-radius: 50%; background: var(--text-leise); flex: none; }
.fg-titel { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.fg-zeile { color: var(--text-leise); font-size: 0.92rem; }
.fg-zeile strong { color: var(--text); font-variant-numeric: tabular-nums; }
.fg-text { margin: 0.8rem 0 0; color: #cdd7e6; }
.fg-entziehen { display: inline-block; margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-leise); text-decoration: underline; }
.fg-gruen { border-left-color: var(--gruen); background: rgba(108, 179, 63, 0.10); }
.fg-gruen .fg-ampel { background: var(--gruen); box-shadow: 0 0 0 5px rgba(108, 179, 63, 0.22); }
.fg-gruen .fg-titel { color: var(--gruen-hell); }
.fg-gelb { border-left-color: var(--akzent); background: rgba(232, 99, 10, 0.10); }
.fg-gelb .fg-ampel { background: var(--akzent); box-shadow: 0 0 0 5px rgba(232, 99, 10, 0.22); }
.fg-gelb .fg-titel { color: #ff9a52; }
.fg-gelb .fg-knopf { background: var(--akzent); color: #fff; }
.fg-gelb .fg-knopf:hover { background: #ff7a22; }
.fg-grau { border-left-color: var(--text-leise); }
[hidden] { display: none !important; }

.freigabe-form { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--karte); padding: 1.4rem; margin: 1.5rem 0; }
.freigabe-form h2 { margin-top: 0; }
.freigabe-form label { display: block; font-size: 0.88rem; color: var(--text-leise); margin: 0.9rem 0 0.3rem; }
.freigabe-form input { width: 100%; padding: 0.7rem 0.8rem; border-radius: 10px; border: 1px solid var(--rand);
  background: rgba(6, 15, 32, 0.6); color: var(--text); font: inherit; }
.freigabe-form input:focus { outline: 2px solid var(--gruen); outline-offset: 1px; }
.freigabe-form button { margin-top: 1.2rem; width: 100%; justify-content: center; cursor: pointer; }
.freigabe-form button:disabled { opacity: 0.6; cursor: wait; }
.fg-meldung { margin: 0.8rem 0 0; min-height: 1.2em; font-weight: 600; }
.fg-meldung.gut { color: var(--gruen-hell); }
.fg-meldung.fehler { color: #ff8a8a; }
.rdp-dateien { border: 1px solid rgba(108, 179, 63, 0.35); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: rgba(108, 179, 63, 0.07); margin: 1.5rem 0; }
.rdp-dateien h2 { margin-top: 0; }
.rdp-dateien .knopf { margin: 0.3rem 0.5rem 0.3rem 0; }
.rdp-dateien .fein { color: var(--text-leise); font-size: 0.9rem; }
.knopf.gross { padding: 0.95rem 1.5rem; font-size: 1.05rem; }
.rdp-dateien .knopf.gross { display: inline-flex; margin: 0.4rem 0; }
