/* Fable 5.2 Complete Redesign - nettotakt.de - 2026-12-03 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

/* ==========================================================
   NettoTakt · DACH Precision Finance
   Authoritative theme – loads after the inline page styles
   ========================================================== */
:root {
  --canvas: #F5F7FA;
  --card: #FFFFFF;
  --line: #DCE3EC;
  --line-strong: #7C8DA5;
  --navy: #0F2744;
  --navy-2: #16365C;
  --navy-deep: #0B1D33;
  --cobalt: #1D56C4;
  --cobalt-dark: #17459E;
  --cobalt-soft: #EAF0FB;
  --emerald: #0D8A4E;
  --emerald-dark: #0A6B3D;
  --emerald-soft: #EFF9F3;
  --ink: #14233A;
  --text: #24364D;
  --muted: #4A5A70;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 39, 68, .05), 0 8px 24px -12px rgba(15, 39, 68, .18);
}

/* ---------- Base ---------- */
html {
  background: var(--canvas);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font: 500 16px/1.6 var(--sans);
  background: var(--canvas);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--cobalt);
  color: #fff;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}

a:hover {
  color: var(--cobalt-dark);
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}

.w {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

main.w {
  padding-bottom: 24px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  color: var(--ink);
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(27px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.022em;
  margin: 14px 0 14px;
}

h2 {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.012em;
  margin: 0 0 14px;
  padding: 0 0 0 14px;
  border-top: 0;
  border-left: 4px solid var(--cobalt);
}

h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0 8px;
}

p {
  color: var(--text);
}

section {
  padding: 32px 0 8px;
}

section p,
section li {
  max-width: 78ch;
}

section ul,
section ol {
  padding-left: 22px;
  margin: 8px 0 12px;
}

section li {
  margin-bottom: 6px;
}

section li::marker {
  color: var(--cobalt);
  font-weight: 700;
}

strong,
b {
  font-weight: 700;
  color: var(--ink);
}

small {
  color: var(--muted);
}

code,
kbd,
output,
.num,
.eur,
.rate {
  font-family: var(--mono);
  font-weight: 500;
}

code,
kbd {
  background: var(--cobalt-soft);
  color: var(--navy);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius);
  color: var(--text);
}

/* ---------- Header ---------- */
.top {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: relative;
  z-index: 50;
}

.top .w {
  min-height: 60px;
  gap: 8px 16px;
}

.logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  min-height: 44px;
}

.logo:hover {
  color: #fff;
}

.logo i {
  width: 12px;
  height: 12px;
  background: var(--cobalt);
  border-radius: 2px;
  margin-right: 8px;
}

.bm-ico {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}

.bm-ico rect {
  fill: var(--cobalt);
}

.bm-ico path {
  fill: #fff;
}

.top nav {
  gap: 2px;
  min-width: 0;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #D3DEEC;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.top nav a:hover,
.top nav a:focus-visible,
.top nav a[aria-current] {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.top :focus-visible,
.hero :focus-visible,
footer :focus-visible {
  outline-color: #fff;
}

/* ---------- Hero band ---------- */
.hero {
  position: relative;
  padding: 44px 0 40px;
  border-bottom: 0;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(820px 340px at 88% -20%, rgba(29, 86, 196, .6), transparent 70%),
    linear-gradient(135deg, #0F2744 0%, #16365C 100%);
  background-color: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cobalt) 0 70%, var(--emerald) 70% 100%);
}

.hero h1 {
  color: #fff;
  max-width: 900px;
}

.kick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #DCE8FF;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.kick::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3DDC91;
  box-shadow: 0 0 0 3px rgba(61, 220, 145, .25);
}

.lead {
  max-width: 720px;
  color: #D8E3F1;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
}

.hero p {
  color: #D8E3F1;
}

.hero a {
  color: #C4D9FF;
}

.hero a:hover {
  color: #fff;
}

.hero .kick {
  color: #DCE8FF;
}

/* ---------- Calculator bench & cards ---------- */
.bench {
  gap: 18px;
  margin-top: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 39, 68, .04);
  transition: box-shadow .18s ease, border-color .18s ease;
}

.card:hover,
.card:focus-within {
  border-color: #C3CFDF;
  box-shadow: inset 0 3px 0 var(--cobalt), var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.res {
  border-top: 3px solid var(--emerald);
}

.res:hover,
.res:focus-within {
  box-shadow: var(--shadow);
  border-top-color: var(--emerald);
}

/* ---------- Forms ---------- */
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  margin: 14px 0 6px;
}

input[type=number],
input[type=text],
input[type=email],
input[type=date],
input[type=search],
select,
textarea {
  width: 100%;
  max-width: 100%;
  font: 500 17px/1.3 var(--sans);
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input[type=number] {
  font-family: var(--mono);
  font-weight: 600;
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231D56C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--cobalt);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(29, 86, 196, .22);
}

input::placeholder,
textarea::placeholder {
  color: #5C6C82;
  opacity: 1;
}

input[type=range],
input[type=checkbox],
input[type=radio] {
  accent-color: var(--cobalt);
}

input[type=range] {
  width: 100%;
  min-height: 32px;
}

input[type=checkbox],
input[type=radio] {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
}

/* ---------- Buttons ---------- */
button,
.btn,
.button,
input[type=submit],
input[type=button] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--cobalt);
  border-radius: var(--radius);
  background: var(--cobalt);
  color: #fff;
  font: 700 15px/1.2 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

button:hover,
.btn:hover,
.button:hover,
input[type=submit]:hover,
input[type=button]:hover {
  background: var(--cobalt-dark);
  border-color: var(--cobalt-dark);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(29, 86, 196, .6);
}

button:active,
.btn:active,
.button:active {
  transform: translateY(1px);
}

button:disabled,
input:disabled,
select:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ---------- KPI results ---------- */
.kpis {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.kpi {
  background: #fff;
  padding: 14px;
  min-width: 0;
}

.kpi small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
  margin-bottom: 2px;
}

.kpi b {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(18px, 4.6vw, 22px);
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.kpi.m {
  grid-column: 1 / -1;
  background: var(--emerald-soft);
}

.kpi.m small {
  color: var(--emerald-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.kpi.m b {
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: -.02em;
}

.netto,
.net,
.pos,
output {
  color: var(--emerald-dark);
  font-weight: 600;
}

/* ---------- Tables ---------- */
.tscroll {
  overflow-x: auto;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #9FB0C6 transparent;
  scrollbar-width: thin;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14.5px;
  background: #fff;
}

th,
td {
  padding: 11px 14px;
  text-align: right;
  border-bottom: 1px solid #E6EBF2;
  white-space: nowrap;
}

th {
  background: var(--navy);
  color: #fff;
  font: 700 12px/1.3 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--cobalt);
}

td {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}

th:first-child,
td:first-child {
  text-align: left;
}

td:first-child {
  font-family: var(--sans);
  font-weight: 600;
}

tbody tr:nth-child(even) td {
  background: #F8FAFC;
}

tbody tr:hover td {
  background: var(--cobalt-soft);
}

tr:last-child td {
  border-bottom: 0;
}

tfoot td {
  font-weight: 600;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border-top: 2px solid var(--emerald);
}

caption {
  caption-side: bottom;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: left;
}

/* ---------- FAQ / details ---------- */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

details:hover {
  border-color: #B9C7DA;
}

details[open] {
  border-color: var(--cobalt);
  box-shadow: inset 3px 0 0 var(--cobalt);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 13px 16px;
  min-height: 48px;
  border-radius: var(--radius);
}

summary::marker {
  color: var(--cobalt);
}

summary:hover {
  color: var(--cobalt);
}

details p {
  padding: 0 16px 14px;
  color: var(--text);
}

/* ---------- Calculator index links ---------- */
.links {
  gap: 12px;
}

.links a {
  position: relative;
  min-height: 84px;
  min-width: 0;
  padding: 14px 42px 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.005em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: box-shadow .18s ease, border-color .18s ease, color .15s ease, transform .18s ease;
}

.links a::after {
  content: "\2192";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font: 600 18px/1 var(--mono);
  color: #6B7C93;
  transition: transform .18s ease, color .15s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--cobalt);
  border-color: #B9C7DA;
  border-left-color: #B9C7DA;
  box-shadow: inset 0 3px 0 var(--cobalt), var(--shadow);
  transform: translateY(-2px);
}

.links a:hover::after,
.links a:focus-visible::after {
  color: var(--cobalt);
  transform: translate(4px, -50%);
}

.links small {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}

/* ---------- Notes, crumbs, misc. content ---------- */
.note,
.hint,
.info,
.disclaimer {
  background: var(--cobalt-soft);
  border: 1px solid #C9D8F3;
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--ink);
  font-size: 14.5px;
}

.crumbs,
.breadcrumb,
.bc {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0 0;
}

.crumbs a,
.breadcrumb a,
.bc a {
  color: var(--cobalt);
  font-weight: 600;
}

.hero .crumbs,
.hero .breadcrumb,
.hero .bc,
.hero small {
  color: #D8E3F1;
}

/* ---------- Ads: hide empty placeholders ---------- */
.ad-slot:empty,
.ad-box:empty {
  display: none !important;
}

.ad-slot:not(:has(iframe, ins, img, video)),
.ad-box:not(:has(iframe, ins, img, video)) {
  display: none !important;
}

.ad-slot,
.ad-box {
  max-width: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
}

/* ---------- Trust band ---------- */
.bm-trust {
  background: #fff;
  border-top: 3px solid var(--cobalt);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 18px 0;
  margin-top: 40px;
  font: 500 13.5px/1.6 var(--sans);
}

.bm-trust-in {
  max-width: 1120px;
  gap: 10px 24px;
}

.bm-trust-badge {
  color: var(--emerald-dark);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .07em;
  padding: 6px 12px;
  background: var(--emerald-soft);
  border: 1px solid #BFE3CF;
  border-radius: 999px;
  max-width: 100%;
}

.bm-trust-badge svg {
  color: var(--emerald);
}

.bm-trust-txt {
  color: var(--text);
  flex: 1 1 300px;
  min-width: 0;
}

.bm-trust-txt a {
  color: var(--cobalt);
  font-weight: 700;
}

.bm-trust-txt a:hover {
  color: var(--cobalt-dark);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 40px;
  background: var(--navy-deep);
  background-image: linear-gradient(180deg, #0F2744 0%, #0B1D33 100%);
  color: #C2CFDF;
  font-size: 13.5px;
  padding: 30px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.bm-trust + footer {
  margin-top: 0;
}

footer p {
  color: #C2CFDF;
  max-width: 70ch;
  margin-bottom: 10px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px 8px 0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  color: #C4D9FF;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (min-width: 520px) and (max-width: 779px) {
  .links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 780px) {
  .top {
    position: sticky;
    top: 0;
    box-shadow: 0 6px 20px -12px rgba(11, 29, 51, .7);
  }

  .hero {
    padding: 64px 0 58px;
  }

  .bench {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .card {
    padding: 24px;
  }

  section {
    padding: 40px 0 8px;
  }
}

@media (max-width: 779px) {
  .top .w {
    padding-top: 4px;
    gap: 0 12px;
  }

  .top nav {
    flex: 1 1 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, #000 86%, transparent);
  }

  .top nav::-webkit-scrollbar {
    display: none;
  }

  .top nav a {
    flex: none;
    padding: 8px 10px;
  }

  .top nav a:first-child {
    padding-left: 0;
  }

  .top nav a:last-child {
    margin-right: 40px;
  }

  .hero {
    padding: 32px 0 34px;
  }

  .kick {
    font-size: 10.5px;
    letter-spacing: .08em;
  }

  .card {
    padding: 16px;
  }

  th,
  td {
    padding: 10px 12px;
  }

  footer a {
    padding-right: 16px;
  }
}

@media (max-width: 380px) {
  .kpis {
    grid-template-columns: 1fr;
  }

  .links a {
    padding-right: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .top nav,
  .ad-slot,
  .ad-box {
    display: none !important;
  }

  .hero,
  .top,
  footer {
    background: #fff !important;
    color: #000;
  }

  .hero h1,
  .lead,
  .logo,
  footer p,
  footer a {
    color: #000 !important;
  }
}
