/* Finanz-Netzwerk: Ratgeberlayout mit linker Navigation, nur Systemschriften */
:root {
  --fir: #123f33;
  --fir-2: #1d5a49;
  --mint: #e9f1ec;
  --mint-2: #d5e4db;
  --paper: #fff;
  --ground: #c9d6cf;
  --ink: #1b2622;
  --muted: #4f5e58;
  --rule: #a9bcb2;
  --wine: #84203c;
  --link: #0d5b45;
  --amber: #fbf1d0;
  --amber-line: #c9a63c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 Arial, Helvetica, "Liberation Sans", sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--wine); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
a.ext::after { content: "\00a0\2197"; font-size: .8em; color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 5; background: #fff; padding: 6px 10px; }

.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1120px; min-height: 100vh; margin: 0 auto; background: var(--paper); }

/* Linke Spalte */
.rail { background: var(--fir); color: #fff; padding: 22px 0; }
.rail-inner { position: sticky; top: 22px; }
.brand { display: block; padding: 0 20px 18px; color: #fff; text-decoration: none; border-bottom: 1px solid #2f6a59; }
.brand:hover { color: #fff; }
.brand svg { display: block; margin-bottom: 8px; }
.brand-name { display: block; font: bold 23px/1.15 "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif; }
.brand-note { display: block; margin-top: 5px; font-size: 13px; line-height: 1.35; color: #cfe0d8; }

.menu-toggle { display: none; }
.menu-list { list-style: none; margin: 12px 0 0; padding: 0; }
.menu-list a { display: block; padding: 9px 20px; color: #fff; text-decoration: none; font-size: 15px; border-left: 4px solid transparent; }
.menu-list a:hover { background: var(--fir-2); color: #fff; text-decoration: underline; }
.menu-list a[aria-current="page"] { background: var(--paper); color: var(--fir); border-left-color: var(--wine); font-weight: bold; }
.rail-group { margin: 18px 20px 2px; padding-top: 12px; border-top: 1px solid #2f6a59; font-size: 13px; color: #cfe0d8; }

/* Hauptbereich */
.main-col { display: flex; flex-direction: column; min-width: 0; }
.crumbs { padding: 10px 36px; font-size: 13.5px; color: var(--muted); background: var(--mint); border-bottom: 1px solid var(--mint-2); }
main { flex: 1; padding: 28px 36px 36px; max-width: 830px; }

h1, h2, h3 { font-family: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif; color: var(--fir); line-height: 1.22; }
h1 { font-size: 34px; margin: 0 0 14px; }
h2 { font-size: 24px; margin: 34px 0 9px; }
h3 { font-size: 19px; margin: 22px 0 4px; }
p { margin: 0 0 13px; }
ul, ol { margin: 0 0 16px; padding-left: 25px; }
li { margin-bottom: 6px; }
address { font-style: normal; margin-bottom: 13px; }
.intro { font-size: 18.5px; line-height: 1.55; color: #24332d; }
.fine { font-size: 13.5px; color: var(--muted); }
.next { font-weight: bold; margin-top: 20px; }

/* Verfügbarkeits-Streifen auf der Startseite */
.strip { margin: 22px 0 26px; padding: 16px 18px 12px; background: var(--mint); border-top: 4px solid var(--fir); }
.strip h2 { margin: 0 0 12px; font-size: 21px; }
.strip-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 9px; }
.strip-label { font-weight: bold; color: var(--fir); }
.cells { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.cells span { height: 30px; background: var(--fir-2); }
.cells .locked { background: repeating-linear-gradient(45deg, #fff 0 4px, var(--rule) 4px 7px); border: 1px solid var(--rule); }
.scale { display: flex; justify-content: space-between; margin: 3px 0 10px 102px; font-size: 13px; color: var(--muted); }
.strip p:last-child { margin-bottom: 4px; font-size: 14.5px; }

/* Zwei Anlagen */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; margin: 8px 0 20px; }
.pair > section { border-top: 2px solid var(--fir); padding-top: 3px; }
.pair h2 { margin-top: 8px; }
.pair h2 a { color: inherit; text-decoration: none; }
.pair h2 a:hover { color: var(--wine); text-decoration: underline; }

/* Kontoauszug-Tabellen */
.table-wrap { overflow-x: auto; margin: 12px 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { caption-side: top; text-align: left; padding-bottom: 7px; color: var(--muted); font-size: 14px; }
th, td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mint-2); }
thead th { border-top: 2px solid var(--fir); border-bottom: 2px solid var(--fir); color: var(--fir); }
tbody th { font-weight: normal; color: #2b3a34; }
tbody tr:nth-child(odd) { background: #f4f8f5; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 2px solid var(--fir); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.sum th, tr.sum td { font-weight: bold; color: var(--fir); }
td.both { text-align: center; }

.warn { margin: 20px 0; padding: 12px 15px; background: var(--amber); border-left: 5px solid var(--amber-line); }
.warn p:last-child { margin-bottom: 0; }
.hint { margin: 20px 0; padding: 12px 15px; background: var(--mint); border-left: 5px solid var(--fir); }
.hint p:last-child { margin-bottom: 0; }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { padding: 10px 2px; cursor: pointer; font-weight: bold; color: var(--fir); }
.faq details p { padding: 0 2px 6px; }

.source-list { list-style: none; padding: 0; }
.source-list li { padding: 9px 0; margin: 0; border-bottom: 1px solid var(--mint-2); }
.source-list span { display: block; color: var(--muted); font-size: 14.5px; }

.related { margin-top: 32px; padding-top: 12px; border-top: 2px solid var(--fir); }
.related h2 { margin-top: 0; font-size: 20px; }
.related ul { list-style: none; padding: 0; columns: 2; column-gap: 24px; }

/* Rechner */
.calc { margin: 18px 0; padding: 18px; background: var(--mint); border: 1px solid var(--rule); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.calc label { display: block; margin-bottom: 3px; font-weight: bold; font-size: 14.5px; color: var(--fir); }
.calc input { width: 100%; padding: 8px 9px; font: inherit; background: #fff; border: 1px solid #6f8279; border-radius: 0; font-variant-numeric: tabular-nums; }
.calc input[aria-invalid="true"] { border: 2px solid var(--wine); }
.calc .fine { margin: 12px 0; }
button { padding: 9px 18px; font: bold 15px Arial, Helvetica, sans-serif; color: #fff; background: var(--fir); border: 0; cursor: pointer; }
button:hover { background: var(--wine); }
.err { margin: 12px 0 0; color: var(--wine); font-weight: bold; }
.code { display: block; width: 100%; padding: 9px; font: 14px/1.5 "Courier New", Courier, monospace; border: 1px solid #6f8279; background: #f4f8f5; resize: vertical; }

/* Fuß */
footer { padding: 20px 36px; font-size: 14px; color: #dce8e2; background: #0d2f26; }
footer a { color: #fff; }
footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0 0 10px; padding: 0; }
footer p { margin: 0 0 6px; }

@media (max-width: 860px) {
  .shell { display: block; max-width: none; }
  .rail { padding: 12px 16px; }
  .rail-inner { position: static; }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; }
  .brand svg { margin: 0; flex: none; width: 38px; height: 38px; }
  .brand-note { display: none; }
  .menu-toggle { display: block; margin-top: 10px; }
  .menu-toggle summary { padding: 8px 10px; background: var(--fir-2); cursor: pointer; font-weight: bold; }
  .menu-desktop { display: none; }
  .menu-list { margin-top: 4px; }
  .menu-list a { padding: 10px 12px; }
  .rail-group { margin: 8px 12px 0; }
  .crumbs { padding: 8px 16px; }
  main { padding: 20px 16px 28px; max-width: none; }
  footer { padding: 18px 16px; }
  h1 { font-size: 29px; }
}
@media (min-width: 861px) { .menu-toggle { display: none; } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .intro { font-size: 17px; }
  .pair, .calc-grid { grid-template-columns: 1fr; }
  .pair > section + section { margin-top: 18px; }
  .strip { padding: 14px 12px 10px; }
  .strip-row { grid-template-columns: 1fr; gap: 3px; }
  .scale { margin-left: 0; }
  .cells span { height: 24px; }
  .related ul { columns: 1; }
  table { font-size: 14px; }
  th, td { padding: 7px; }
}
@media print {
  body { background: #fff; }
  .shell { display: block; }
  .rail, .crumbs, .related { display: none; }
  footer { background: none; color: #000; }
  footer a { color: #000; }
}
