@font-face {
  font-family: "FliesenSans";
  src: local("Manrope"), local("Open Sans"), local("Segoe UI"), local("Arial");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "FliesenDisplay";
  src: local("Space Grotesk"), local("Inter"), local("Avenir Next Demi Bold"), local("Segoe UI Semibold");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --accent: #0d8bd9;
  --accent-strong: #0662bf;
  --accent-warm: #f97316;
  --accent-warm-soft: #ffb88f;
  --success: #149569;
  --bg-top: #f9fcff;
  --bg-mid: #f4f8ff;
  --bg-bottom: #fdf7f1;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --surface-tint: #eef5ff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d7e4f3;
  --line-strong: #c5d8ee;
  --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 26px 70px rgba(6, 98, 191, 0.2);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% -5%, rgba(13, 139, 217, 0.2), transparent 34%),
    radial-gradient(circle at -12% 22%, rgba(249, 115, 22, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 44%, var(--bg-bottom) 100%);
  color: var(--text);
  font: 16px/1.7 "FliesenSans", "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(95px);
  pointer-events: none;
  opacity: 0.34;
  z-index: -1;
}

.bg-orb-a {
  width: 430px;
  height: 430px;
  top: -34px;
  right: -78px;
  background: rgba(13, 139, 217, 0.35);
}

.bg-orb-b {
  width: 360px;
  height: 360px;
  left: -110px;
  top: 480px;
  background: rgba(249, 115, 22, 0.24);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 48px 0;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.64)),
    repeating-linear-gradient(
      135deg,
      rgba(13, 139, 217, 0.03) 0 16px,
      rgba(255, 255, 255, 0.02) 16px 32px
    );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(197, 216, 238, 0.72);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(6, 98, 191, 0.32);
  font: 800 0.95rem/1 "FliesenDisplay", "Avenir Next", "Segoe UI", sans-serif;
}

.brand strong,
h1,
h2,
h3,
.button,
.faq-item summary {
  font-family: "FliesenDisplay", "Avenir Next", "Segoe UI", sans-serif;
}

.brand small,
.lead,
.section-head p,
.feature-card p,
.topic-card p,
.faq-item p,
.soft-note,
.result-copy,
.site-footer p,
.clean-list,
.article-content p,
.article-content li,
.breadcrumbs {
  color: var(--muted);
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: #243447;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 13px 20px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 220ms ease, color 220ms ease;
}

.button:hover,
.topic-card:hover,
.feature-card:hover,
.faq-item:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 38px rgba(6, 98, 191, 0.32);
}

.button-primary:hover {
  box-shadow: 0 20px 46px rgba(6, 98, 191, 0.38);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-ghost:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 800 0.76rem/1.2 "FliesenDisplay", "Avenir Next", "Segoe UI", sans-serif;
}

.hero-grid,
.hero-stack,
.calculator-shell,
.split-grid,
.footer-grid,
.article-layout {
  display: grid;
  gap: 26px;
}

.hero-stack {
  gap: 10px;
}

.hero-grid {
  min-height: calc(100vh - 92px);
}

.hero-copy-wide {
  max-width: 920px;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.lead {
  margin: 20px 0 0;
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.trust-row {
  margin-top: 20px;
}

.trust-row span,
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(13, 139, 217, 0.16);
  background: linear-gradient(150deg, rgba(13, 139, 217, 0.12), rgba(255, 255, 255, 0.9));
  color: #0d5aa1;
  font: 700 0.82rem/1 "FliesenDisplay", "Avenir Next", "Segoe UI", sans-serif;
}

.trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 0 4px rgba(13, 139, 217, 0.12);
}

.card {
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(253, 255, 255, 0.92));
  border: 1px solid rgba(197, 216, 238, 0.94);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13, 139, 217, 0.08), transparent 48%, rgba(249, 115, 22, 0.08));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(13, 139, 217, 0.34);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  opacity: 1;
}

.hero-visual,
.hero-calculator-stack,
.calculator-card,
.result-card,
.feature-card,
.topic-card,
.checklist-card,
.faq-item,
.article-card,
.cta-panel {
  padding: 26px;
}

.hero-section {
  padding-top: 30px;
  padding-bottom: 14px;
}

.hero-rechner-section {
  padding-top: 10px;
}

.hero-calculator-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  gap: 18px;
  align-items: start;
}

.compact-head {
  margin-bottom: 14px;
}

.compact-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
}

.hero-metrics,
.result-grid,
.feature-grid,
.topic-grid {
  display: grid;
  gap: 16px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.hero-metrics article,
.result-grid article {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
  border-radius: 14px;
  border: 1px solid rgba(197, 216, 238, 0.65);
}

.hero-metrics span,
.result-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-metrics strong,
.result-grid strong {
  font: 800 1.16rem/1.2 "FliesenDisplay", "Avenir Next", "Segoe UI", sans-serif;
  color: #0c2740;
}

.soft-note,
.result-copy {
  margin: 18px 0 0;
}

.soft-note a,
.soft-cta a,
.article-content a,
.inline-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.calculator-shell {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 9px;
  font-weight: 700;
  color: #143048;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
.tooltip-trigger:focus,
.menu-toggle:focus,
.button:focus,
.site-nav a:focus {
  outline: none;
}

input:focus-visible,
select:focus-visible,
.tooltip-trigger:focus-visible,
.menu-toggle:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.topic-card:focus-visible,
.footer-links a:focus-visible {
  box-shadow: 0 0 0 4px rgba(13, 139, 217, 0.2);
  border-color: var(--accent);
}

.input-wrap {
  position: relative;
}

.input-wrap small {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font: 700 0.82rem/1 "FliesenDisplay", "Avenir Next", "Segoe UI", sans-serif;
}

.input-wrap input {
  padding-right: 54px;
}

.label-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tooltip-trigger {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(13, 139, 217, 0.2);
  border-radius: 999px;
  background: rgba(13, 139, 217, 0.12);
  color: var(--accent-strong);
  cursor: pointer;
  font: 800 0.84rem/1 "FliesenDisplay", "Avenir Next", "Segoe UI", sans-serif;
}

.tooltip {
  position: fixed;
  max-width: 300px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.16);
  font-size: 0.92rem;
  z-index: 80;
}

.result-card {
  background:
    linear-gradient(180deg, rgba(13, 139, 217, 0.11), rgba(20, 149, 105, 0.1)),
    linear-gradient(160deg, #fafdff, #f8fbff);
  border-color: rgba(13, 139, 217, 0.3);
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.result-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.result-card.is-updating {
  transform: scale(1.012);
  box-shadow: var(--shadow-lg);
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.result-grid article strong {
  color: var(--success);
}

.soft-cta {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(13, 139, 217, 0.18);
}

.feature-grid,
.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

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

.feature-card,
.topic-card {
  height: 100%;
}

.feature-card,
.topic-card {
  text-decoration: none;
}

.topic-card h3 {
  margin-bottom: 8px;
}

.split-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

.clean-list li + li {
  margin-top: 7px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding-top: 18px;
  padding-bottom: 18px;
}

.faq-item summary {
  position: relative;
  padding-right: 28px;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-strong);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
}

.site-footer {
  padding: 40px 0 54px;
  border-top: 1px solid rgba(197, 216, 238, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.78));
}

.footer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: #0d5aa1;
}

.breadcrumbs {
  margin-bottom: 14px;
  font-size: 0.94rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.article-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.article-content h2 {
  margin-top: 40px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.article-content h3 {
  margin-top: 24px;
}

.article-content ul {
  padding-left: 18px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 10px;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.sidebar-stack {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.sidebar-stack .calculator-card,
.sidebar-stack .result-card,
.sidebar-stack .cta-panel,
.sidebar-stack > .card:not(.calculator-card):not(.result-card):not(.cta-panel) {
  padding: 16px;
}

.sidebar-stack h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.sidebar-stack .form-grid {
  gap: 10px;
}

.sidebar-stack label {
  gap: 6px;
  font-size: 0.89rem;
}

.sidebar-stack input,
.sidebar-stack select {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.sidebar-stack .input-wrap input {
  padding-right: 42px;
}

.sidebar-stack .input-wrap small {
  right: 10px;
  font-size: 0.74rem;
}

.sidebar-stack .result-badge {
  padding: 6px 10px;
  font-size: 0.74rem;
}

.sidebar-stack .result-grid {
  gap: 8px;
  margin-top: 12px;
}

.sidebar-stack .result-grid article {
  padding: 10px;
  border-radius: 10px;
}

.sidebar-stack .result-grid span {
  margin-bottom: 3px;
  font-size: 0.77rem;
}

.sidebar-stack .result-grid strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.sidebar-stack .result-copy,
.sidebar-stack .cta-panel p,
.sidebar-stack .mini-links a {
  font-size: 0.86rem;
}

.sidebar-stack .result-copy {
  margin-top: 12px;
}

.sidebar-stack .mini-links {
  gap: 8px;
}

.mini-links {
  display: grid;
  gap: 10px;
}

.mini-links a {
  text-decoration: none;
  color: var(--text);
}

.cta-panel {
  background: linear-gradient(180deg, rgba(13, 139, 217, 0.09), rgba(255, 255, 255, 0.97));
}

.mobile-calculator-help {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-calculator-stack,
  .section-head,
  .feature-grid,
  .topic-grid,
  .faq-list {
    animation: fade-up 560ms ease both;
  }

  .hero-calculator-stack {
    animation-delay: 60ms;
  }

  .feature-grid,
  .topic-grid {
    animation-delay: 90ms;
  }

  .faq-list {
    animation-delay: 120ms;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .calculator-shell,
  .split-grid,
  .footer-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

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

  .hero-calculator-stack {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .sidebar-stack .cta-panel,
  .sidebar-stack > .card:not(.calculator-card):not(.result-card):not(.cta-panel) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1450px) {
  .topic-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    padding: 10px 0;
  }

  .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-actions {
    display: none;
    grid-column: 1 / -1;
    gap: 14px;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
  }

  .nav-actions.is-open {
    display: grid;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-grid {
    min-height: auto;
    gap: 18px;
  }

  .hero-metrics,
  .form-grid,
  .result-grid,
  .feature-grid,
  .topic-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .calculator-card,
  .result-card,
  .feature-card,
  .topic-card,
  .checklist-card,
  .faq-item,
  .article-card,
  .cta-panel {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .trust-row {
    gap: 8px;
  }

  .trust-row span {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .mobile-calculator-help {
    position: fixed;
    right: 12px;
    bottom: 14px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    padding: 12px 14px;
    border: 1px solid rgba(6, 98, 191, 0.24);
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(13, 139, 217, 0.96), rgba(6, 98, 191, 0.96));
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(6, 98, 191, 0.38);
    font: 700 0.86rem/1.2 "FliesenDisplay", "Avenir Next", "Segoe UI", sans-serif;
    text-align: left;
    cursor: pointer;
  }

  .mobile-calculator-help:focus-visible {
    outline: none;
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.75),
      0 18px 36px rgba(6, 98, 191, 0.42);
  }
}
