/* Mein FSF – Kundenportal. Firmenfarben wie die Ablage (Petrol #006883, Grau #51666f, Grund #efefee), eine Schrift.
   Für Kundinnen und Kunden jeden Alters: große Schrift, viel Luft, klare Knöpfe. Hingucker: Verträge als Karteikarten mit Reiter. */
@font-face { font-family: "Hanken Grotesk"; src: url("/static/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --fjord: #006883; --fjord-tief: #00505f; --fjord-weich: #d9eaee; --schiefer: #51666f;
  --grund: #efefee; --flaeche: #ffffff; --flaeche-2: #f7f7f6; --linie: #d9d9d6;
  --tinte: #1e2a30; --leise: #51666f; --warn: #8f5410; --warn-bg: #fbefdb; --fehler: #b3261e; --ok: #2e7d4f;
  --auf-fjord: #ffffff; --schatten: 0 1px 2px rgb(21 35 42 / .06), 0 6px 18px rgb(21 35 42 / .07);
  --r: 12px; --schrift: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fjord: #45a9c2; --fjord-tief: #6cc0d5; --fjord-weich: #12333c; --schiefer: #9fb2b9;
    --grund: #0e171b; --flaeche: #142127; --flaeche-2: #18272e; --linie: #263a42;
    --tinte: #e3ebee; --leise: #9aaeb5; --warn: #e9b56a; --warn-bg: #3a2a12; --fehler: #ff8a80; --ok: #7fd1a1;
    --auf-fjord: #08161b; --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 6px 18px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
  .marke img { filter: brightness(0) invert(.92); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 18px/1.55 var(--schrift); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--fjord); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--fjord); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.2; margin: .2em 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 0 0 .5em; font-weight: 650; }
h3 { font-size: 1.05rem; margin: 1em 0 .3em; }
p { margin: 0 0 .8em; }
.leise { color: var(--leise); font-size: .92em; }
.gross { font-size: 1.15em; }
.warn { background: var(--warn-bg); color: var(--warn); padding: .6em .8em; border-radius: 8px; }

.testband { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: .85rem; padding: .3em 1em; font-weight: 600; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(16px, 4vw, 40px); background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--tinte); }
.marke img { height: 34px; width: auto; }
.marke span { font-weight: 700; font-size: 1.05rem; color: var(--fjord); border-left: 1px solid var(--linie); padding-left: .7rem; }
.nav { display: flex; gap: .3rem; padding: .4rem clamp(16px, 4vw, 40px); background: var(--flaeche); border-bottom: 1px solid var(--linie); overflow-x: auto; }
.nav a { padding: .45em .9em; border-radius: 999px; text-decoration: none; color: var(--tinte); white-space: nowrap; }
.nav a:hover { background: var(--fjord-weich); }
.haupt { width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(16px, 4vw, 40px); flex: 1; }
.fuss { display: flex; gap: 1.2rem; justify-content: center; padding: 1.4rem 16px 2rem; font-size: .9rem; }
.fuss a { color: var(--leise); }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin: 0 0 1.2rem; box-shadow: var(--schatten); }
.karte.schmal { max-width: 520px; }
.karte.akzent { border-left: 5px solid var(--fjord); }
.leise-karte { background: var(--flaeche-2); box-shadow: none; }
.hinweis-karte { max-width: 600px; }
.willkommen h1 { max-width: 20ch; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: .55em 1.3em; border-radius: 10px;
  border: 2px solid var(--fjord); background: var(--fjord); color: var(--auf-fjord); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--fjord-tief); border-color: var(--fjord-tief); }
.knopf.leise { background: transparent; color: var(--fjord); }
.knopf.leise:hover { background: var(--fjord-weich); }
.knopf.klein { min-height: 38px; padding: .25em .9em; font-size: .9rem; }
.abmelden { margin: 0; }

.formular { display: flex; flex-direction: column; gap: .35rem; }
.formular label { font-weight: 600; margin-top: .6rem; }
.formular .knopf { margin-top: 1rem; align-self: flex-start; }
input, select, textarea { font: inherit; font-size: 18px; color: var(--tinte); background: var(--flaeche); border: 1.5px solid var(--linie); border-radius: 10px; padding: .6em .75em; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--fjord); outline: none; box-shadow: 0 0 0 3px var(--fjord-weich); }
input[type="checkbox"] { width: 24px; height: 24px; flex: none; margin: .1em 0 0; accent-color: var(--fjord); }
input[type="file"] { padding: .5em; background: var(--flaeche-2); }
.haken { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500 !important; background: var(--flaeche-2); padding: .8rem; border-radius: 10px; }
.zwei-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.zwei-felder label { grid-row: 1; }
.zwei-felder > :nth-child(2) { grid-row: 2; grid-column: 1; }
.zwei-felder > :nth-child(4) { grid-row: 2; grid-column: 2; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.zwei > .karte { margin: 0; }

.rechtstext { background: var(--flaeche-2); border-radius: 10px; padding: 1rem 1.2rem; font-size: .95rem; }
.rechtstext.lang { max-height: 340px; overflow-y: auto; border: 1px solid var(--linie); }
.karte.rechtstext.lang { max-height: none; }

.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .8rem; }
.vertraege { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem 1.2rem; margin-top: 1.4rem; }
.vertrag { position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 0 var(--r) var(--r) var(--r); padding: 1.1rem 1.2rem 1rem; box-shadow: var(--schatten); }
.vertrag .reiter { position: absolute; left: -1px; top: -1.55rem; height: 1.55rem; max-width: 75%; padding: .15rem .9rem 0; background: var(--fjord); color: var(--auf-fjord);
  border-radius: 8px 8px 0 0; font-size: .78rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vertrag.gedimmt { opacity: .72; }
.vertrag.gedimmt .reiter { background: var(--schiefer); }
.vertrag-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.vertrag-kopf h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.vertrag dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; margin: 0 0 .9rem; font-size: .95rem; }
.vertrag dt, .karte dt, .eckdaten dt { color: var(--leise); }
.vertrag dd, .karte dd, .eckdaten dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.karte dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 0; }
.status { font-size: .8rem; font-weight: 650; padding: .15em .6em; border-radius: 999px; background: var(--fjord-weich); color: var(--fjord-tief); white-space: nowrap; }
.status-gekündigt, .status-ruhend { background: var(--warn-bg); color: var(--warn); }
.stand { color: var(--leise); font-size: .85rem; margin-top: 1rem; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.kachel { display: flex; flex-direction: column; gap: .3rem; min-height: 96px; padding: 1.1rem 1.2rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r);
  text-decoration: none; color: var(--tinte); box-shadow: var(--schatten); }
.kachel:hover { border-color: var(--fjord); }
.kachel strong { color: var(--fjord); font-size: 1.05rem; }
.kachel span { color: var(--leise); font-size: .92rem; }
.marke-status { display: inline-block; font-style: normal; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: .1em .6em; border-radius: 6px; font-size: .85rem; align-self: flex-start; }

.dokliste { list-style: none; padding: 0; margin: 1rem 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.dokliste li + li { border-top: 1px solid var(--linie); }
.dokliste a { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem; text-decoration: none; color: var(--tinte); }
.dokliste a:hover { background: var(--fjord-weich); }
.dokliste .typ { font-size: .78rem; font-weight: 650; color: var(--fjord); text-transform: none; }
.dokliste li.leise { padding: 1rem; }

.objekt-kopf { margin-bottom: 1.2rem; }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0; }
.eckdaten dt { font-size: .85rem; }
.eckdaten dd { font-size: 1.1rem; }
.objekt-text { margin-bottom: 1rem; }
.protokoll { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.protokoll li { padding: .35rem 0; border-top: 1px solid var(--linie); }
.protokoll span { color: var(--leise); display: inline-block; min-width: 12.5rem; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .zwei, .zwei-felder { grid-template-columns: 1fr; }
  .zwei-felder > * { grid-row: auto !important; grid-column: auto !important; }
  .dokliste a { grid-template-columns: 1fr; gap: .1rem; }
  .marke img { height: 28px; }
  .marke span { font-size: .95rem; }
  .formular .knopf { align-self: stretch; }
  .protokoll span { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
