/* dekr.tax Landing-Page - eigenstaendiges Stylesheet (kein ecmind.css).
   Optik angelehnt an ecmind.ch: JetBrains Mono, 5px-Rahmen, CI-Farben.
   Dunkelmodus wie dort: nur Neutralwerte drehen, CI-Farben bleiben, getoente
   Flaechen werden neutral und die Farbe wandert auf Rahmen/Ueberschrift. */

@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("../fonts/JetBrainsMono-Bold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* CI (in beiden Themes unveraendert) */
  --blue: #1aa7d7;
  --green: #00766e;
  --green-light: #4da19b;
  --yellow: #ffc214;

  --bg: #ffffff;
  --fg: #000000;
  --surface: #ffffff;
  --tint-yellow: #fffae6;
  --tint-blue: #e7f7fc;
  --tint-green: #e6f2f1;
  /* Rahmenfarbe getoenter Bloecke: hell schwarz, dunkel die CI-Farbe */
  --line-yellow: var(--fg);
  --line-blue: var(--fg);
  --line-green: var(--fg);
  --kicker: var(--green);
  --badge-green-bg: var(--tint-green);
  --badge-green-fg: var(--green);
  --show-light: inline-block;
  --show-dark: none;
  --scheme: light;

  --pad: 40px;      /* seitlicher Abstand */
  --box-pad: 60px;  /* Innenabstand der Rahmenbloecke */
  --gap: 120px;     /* Abstand zwischen Bloecken */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1519;
    --fg: #e6edf1;
    --surface: #1b252c;
    --tint-yellow: #1b252c;
    --tint-blue: #1b252c;
    --tint-green: #1b252c;
    --line-yellow: var(--yellow);
    --line-blue: var(--blue);
    --line-green: var(--green-light);
    --kicker: var(--green-light);
    --badge-green-bg: var(--green);
    --badge-green-fg: #e6edf1;
    --show-light: none;
    --show-dark: inline-block;
    --scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1519;
  --fg: #e6edf1;
  --surface: #1b252c;
  --tint-yellow: #1b252c;
  --tint-blue: #1b252c;
  --tint-green: #1b252c;
  --line-yellow: var(--yellow);
  --line-blue: var(--blue);
  --line-green: var(--green-light);
  --kicker: var(--green-light);
  --badge-green-bg: var(--green);
  --badge-green-fg: #e6edf1;
  --show-light: none;
  --show-dark: inline-block;
  --scheme: dark;
}
@media (max-width: 767px) { :root { --pad: 20px; --box-pad: 30px; --gap: 90px; } }
@media (max-width: 479px) { :root { --pad: 15px; --box-pad: 18px; --gap: 70px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: var(--scheme); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 20px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h2 { font-size: 44px; margin: 0 0 32px; }
h3 { font-size: 26px; margin: 24px 0 10px; }
p { margin: 0 0 14px; }
a { color: inherit; }
ul { padding-left: 1.2em; margin: 0 0 20px; }
img { max-width: 100%; }
strong { font-weight: 700; }
hr { border: 0; }
::selection { background: var(--blue); color: #0f1519; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.only-light { display: var(--show-light) !important; }
.only-dark { display: var(--show-dark) !important; }

.section { padding: 0 var(--pad); }
.wrap { max-width: 940px; margin: 0 auto; }

.icon { width: 1em; height: 1em; display: block; }

/* Farbtoene (background_color aus dem Content) */
.tone-yellow { --tone-bg: var(--tint-yellow); --tone-line: var(--line-yellow); }
.tone-blue   { --tone-bg: var(--tint-blue);   --tone-line: var(--line-blue); }
.tone-green  { --tone-bg: var(--tint-green);  --tone-line: var(--line-green); }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 24px 0;
  margin-bottom: 80px;
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-brand img { height: 40px; width: auto; display: block; }
.topbar-actions { display: flex; align-items: center; gap: 24px; }
.topbar-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-by img { height: 20px; width: auto; }
.theme-toggle {
  background: none;
  border: 0;
  padding: 4px;
  color: var(--fg);
  font-size: 26px;
  cursor: pointer;
}
@media (max-width: 479px) {
  .topbar { padding: 14px 0; margin-bottom: 50px; }
  .topbar-actions { gap: 12px; }
  .topbar-by { font-size: 11px; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; margin-bottom: 150px; }
.hero-logo { width: 180px; height: auto; margin-bottom: 30px; }
.hero-text { font-size: 48px; line-height: 1.4; margin: 0; }
.hero-underline { width: 32px; height: auto; vertical-align: sub; margin-left: 4px; }
@media (max-width: 991px) { .hero-text { font-size: 40px; } }
@media (max-width: 767px) { .hero { margin-bottom: 100px; } .hero-text { font-size: 32px; } .hero-underline { width: 22px; } }
@media (max-width: 479px) { .hero-logo { width: 130px; } .hero-text { font-size: 26px; } }

/* ---------- Lead ---------- */
.lead { max-width: 62ch; border-left: 8px solid var(--yellow); padding-left: 26px; margin-bottom: var(--gap); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  font-weight: 700;
  color: var(--kicker);
  margin: 0 0 12px;
}
.lead-statement { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; line-height: 1.25; margin: 0; text-wrap: balance; }

/* ---------- Rahmenblock (border-block) ---------- */
.box {
  border: 5px solid var(--tone-line, var(--fg));
  background: var(--tone-bg, transparent);
  padding: var(--box-pad);
  margin-bottom: var(--gap);
}
.box > :last-child { margin-bottom: 0; }
.block-heading { margin-top: 0; text-align: left; }
/* Hell ist --tone-line schwarz, dunkel die CI-Farbe des Blocks. */
.box .block-heading, .band .block-heading { color: var(--tone-line, var(--fg)); }

.actions { display: flex; justify-content: center; margin-top: 50px; }
.button {
  display: inline-block;
  border: 5px solid var(--tone-line, var(--fg));
  color: var(--tone-line, var(--fg));
  padding: 15px 25px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease;
}
.button:hover { background-color: color-mix(in srgb, currentColor 12%, transparent); }
@media (max-width: 767px) { .actions { margin-top: 30px; } .button { font-size: 20px; padding: 12px 22px; } }

/* ---------- Band (triptych, double-block) ---------- */
.band {
  border-top: 5px solid var(--tone-line, var(--fg));
  border-bottom: 5px solid var(--tone-line, var(--fg));
  background: var(--tone-bg, transparent);
  padding: 60px 0;
  margin-bottom: var(--gap);
}

/* double-block: zwei Karten, die oben aus dem Band herausragen */
.band-double { margin-top: calc(var(--gap) + 90px); }
.double { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.double-item {
  border: 5px solid var(--tone-line, var(--fg));
  background: var(--tone-bg, var(--surface));
  padding: var(--box-pad);
  margin: -150px 0 -65px;
}
.double-item h3 { margin-top: 0; }
.double-item > :last-child { margin-bottom: 0; }
@media (max-width: 991px) {
  .double { grid-template-columns: 1fr; }
  .double-item { margin-bottom: 0; }
  .double-item + .double-item { margin-top: 0; }
}

/* triptych */
.tri-preface { font-weight: 700; margin: 0 0 6px; }
.tri-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.card {
  background: var(--surface);
  border: 5px solid var(--tone-line, var(--fg));
  padding: 32px;
  min-width: 0;
  hyphens: auto;
}
.card h3 { margin-top: 0; font-size: 24px; }
.card p:last-child { margin-bottom: 0; }

.badge { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; flex: none; }
.badge-yellow { background: var(--yellow); color: #141310; font-size: 38px; margin-bottom: 22px; }
.badge-green { width: 52px; height: 52px; background: var(--badge-green-bg); color: var(--badge-green-fg); font-size: 26px; }

/* ---------- Zitat ---------- */
.quote { margin: 0 0 var(--gap); display: flex; flex-direction: column; align-items: flex-end; }
.quote blockquote { margin: 0; text-align: center; font-size: 30px; font-weight: 700; line-height: 1.3; }
.quote blockquote p { margin: 0; }
.quote figcaption { text-align: left; margin-top: 24px; font-size: 18px; line-height: 1.4; }
@media (max-width: 479px) { .quote blockquote { font-size: 22px; } }

/* ---------- Icon-Liste ---------- */
.icon-list-wrap { display: flex; gap: 60px; align-items: flex-start; margin-bottom: var(--gap); }
.icon-list-headline { flex: 0 0 30%; font-size: 28px; margin: 0; }
.icon-list { flex: 1; list-style: none; padding: 0; margin: 0; }
.icon-list li { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 26px; }
.icon-list li:last-child { padding-bottom: 0; }
.icon-list-body { padding-top: 8px; }
.icon-list-body p { margin: 0; }
.icon-list-term { color: var(--kicker); font-size: 18px; margin: 0 0 4px; }
@media (max-width: 768px) { .icon-list-wrap { flex-direction: column; gap: 24px; } }

/* ---------- Text-Raster ---------- */
.text-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 50px 60px; margin-bottom: var(--gap); }
.text-grid p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  body { font-size: 18px; }
}
@media (max-width: 479px) { h2 { font-size: 26px; } }

/* ---------- Fuss + Rechtstexte ---------- */
.site-footer { border-top: 5px solid var(--fg); padding-top: 40px; margin-top: var(--gap); }
.footer-contact { font-size: 16px; margin-bottom: 30px; }
.footer-copy { font-size: 14px; margin: 30px 0 60px; }
.legal { border-top: 1px solid var(--fg); }
.legal:last-of-type { border-bottom: 1px solid var(--fg); }
.legal > summary {
  display: flex;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
}
.legal > summary::-webkit-details-marker { display: none; }
.legal > summary::after { content: "+"; }
.legal[open] > summary::after { content: "\2212"; }
.legal-body { padding-bottom: 40px; font-size: 16px; }
.legal-body h2 { font-size: 28px; margin: 40px 0 16px; }
.legal-body h3 { font-size: 20px; }
/* Die Rechtstexte bringen eigene Sections/Baender mit; hier sitzen sie schon im Container. */
.legal-body .section { padding: 0; }
.legal-body .band { border: 0; background: none; padding: 0; margin: 30px 0; }
.legal-body .double-item { margin: 0; padding: 30px; }
