/* Trunex Horizont – Website-Stylesheet
   Layout: helle Sektionen im Wechsel weiß / eisblau, Kreis als Leitmotiv, Inhalt max. 1120 px. */
:root {
  --tx-navy: #102847;
  --tx-seeblau: #2F7BA6;
  --tx-seeblau-dunkel: #256389;
  --tx-himmelblau: #A1D9EC;
  --tx-eisblau: #EAF6FB;
  --tx-wolke: #F7FAFC;
  --tx-weiss: #FFFFFF;
  --tx-text-2: #5E7086;
  --tx-linie: #D3E3EC;

  --tx-font: "Manrope", "Segoe UI", Arial, system-ui, sans-serif;

  --tx-radius-sm: 8px;
  --tx-radius-md: 12px;
  --tx-radius-lg: 20px;
  --tx-radius-pill: 999px;

  --tx-shadow-1: 0 1px 2px rgba(16,40,71,.06), 0 2px 8px rgba(16,40,71,.06);
  --tx-shadow-2: 0 4px 12px rgba(16,40,71,.08), 0 12px 32px rgba(47,123,166,.12);
  --tx-focus: 0 0 0 2px #FFFFFF, 0 0 0 4px #2F7BA6;

  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--tx-font);
  font-size: 16px;
  line-height: 26px;
  color: var(--tx-navy);
  background: var(--tx-weiss);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tx-seeblau); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tx-seeblau-dunkel); }
:focus-visible { outline: none; box-shadow: var(--tx-focus); border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }

/* Typografie */
h1, h2, h3 { margin: 0; text-wrap: balance; }
.display { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; }
h1, .h1 { font-size: clamp(32px, 4.6vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h2, .h2 { font-size: 28px; line-height: 36px; font-weight: 700; }
h3, .h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 30px; color: var(--tx-text-2); max-width: 60ch; }
.small { font-size: 14px; line-height: 22px; color: var(--tx-text-2); }
.kicker { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-seeblau); }
.accent { color: var(--tx-seeblau); }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* Platzhalter für fehlende Inhalte */
.ph { background: #FFF6D6; color: var(--tx-navy); border-radius: 4px; padding: 0 4px; font-weight: 500; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tx-linie);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--tx-navy); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: var(--tx-radius-pill); }
.nav a:hover { background: var(--tx-eisblau); color: var(--tx-navy); }
.nav a[aria-current="page"] { color: var(--tx-seeblau-dunkel); font-weight: 700; }
.nav a.btn { margin-left: 8px; }
@media (max-width: 720px) {
  .site-header .wrap { padding-block: 10px; }
  .brand img { height: 30px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .nav a.btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 16px/1 var(--tx-font);
  padding: 14px 24px; border-radius: var(--tx-radius-pill);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--tx-seeblau); color: #FFFFFF; }
.nav a.btn-primary { color: #FFFFFF; padding: 10px 18px; }
.btn-primary:hover, .nav a.btn-primary:hover { background: var(--tx-seeblau-dunkel); color: #FFFFFF; }
.btn-secondary { background: var(--tx-weiss); color: var(--tx-navy); border-color: var(--tx-linie); }
.btn-secondary:hover { border-color: var(--tx-seeblau); color: var(--tx-navy); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sektionen */
.section { padding-block: 96px; }
.section-ice { background: var(--tx-eisblau); }
.section-cloud { background: var(--tx-wolke); }
@media (max-width: 720px) { .section { padding-block: 64px; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head > * + * { margin-top: 12px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--tx-weiss) 0%, var(--tx-eisblau) 100%); padding-block: 80px 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-text > * + * { margin-top: 20px; }
.hero-text .btn-row { margin-top: 32px; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: end; }
.hero-visual .circle-big {
  position: absolute; inset: 0; border-radius: 50%; background: var(--tx-weiss);
  box-shadow: var(--tx-shadow-2); display: grid; place-items: center;
}
.hero-visual .circle-big img { width: 58%; }
.hero-visual .circle-small {
  position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--tx-himmelblau); opacity: .38; left: -8%; bottom: -4%;
}
.page-hero { background: linear-gradient(180deg, var(--tx-weiss) 0%, var(--tx-eisblau) 100%); padding-block: 72px 64px; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero .wrap > * + * { margin-top: 16px; }
.page-hero::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: var(--tx-himmelblau); opacity: .25; right: -120px; top: -160px;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 260px; justify-self: start; order: -1; }
  .hero { padding-block: 48px 64px; }
}

/* Karten */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } .grid { gap: 24px; } }
.card { background: var(--tx-weiss); border-radius: var(--tx-radius-md); box-shadow: var(--tx-shadow-1); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .card-foot { margin-top: auto; padding-top: 12px; }
.icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--tx-eisblau);
  display: grid; place-items: center; color: var(--tx-seeblau); flex: none;
}
.card .icon { margin-bottom: 8px; }
.section-ice .card .icon { background: var(--tx-eisblau); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Listen mit Häkchen */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tx-eisblau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%232F7BA6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.section-ice .checks li::before { background-color: var(--tx-weiss); }

/* Ablauf (echte Reihenfolge) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%;
  background: var(--tx-seeblau); color: #FFFFFF; font-weight: 800; font-size: 18px;
  display: grid; place-items: center; margin-bottom: 8px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Prüfpunkte-Kacheln */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fact { background: var(--tx-eisblau); border-radius: var(--tx-radius-md); padding: 20px 24px; }
.fact strong { display: block; font-size: 17px; }

/* Split-Layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Leistungsdetails */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding-block: 48px; border-top: 1px solid var(--tx-linie); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-intro > * + * { margin-top: 12px; }
.price { display: inline-flex; align-items: baseline; gap: 8px; background: var(--tx-eisblau); border-radius: var(--tx-radius-pill); padding: 8px 16px; font-weight: 700; margin-top: 16px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 24px; } }

/* CTA-Box */
.cta { background: var(--tx-navy); color: #FFFFFF; border-radius: var(--tx-radius-lg); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: var(--tx-seeblau); opacity: .35; right: -90px; bottom: -150px; }
.cta > * { position: relative; z-index: 1; }
.cta p { color: #D3E3EC; margin-top: 8px; max-width: 52ch; }
@media (max-width: 560px) { .cta { padding: 32px 24px; } }

/* Formular */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select {
  font: 400 16px/24px var(--tx-font); color: var(--tx-navy);
  border: 1px solid var(--tx-linie); border-radius: var(--tx-radius-sm);
  padding: 12px 14px; background: var(--tx-weiss); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--tx-seeblau); box-shadow: var(--tx-focus); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--tx-text-2); }
.consent input { margin-top: 4px; accent-color: var(--tx-seeblau); }
.form-note { background: var(--tx-eisblau); border-radius: var(--tx-radius-sm); padding: 12px 16px; font-size: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .icon { width: 48px; height: 48px; }
.contact-list .icon svg { width: 22px; height: 22px; }

/* Rechtstexte */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; line-height: 30px; margin-top: 40px; }
.legal p, .legal ul { margin-top: 12px; }
.notice { background: var(--tx-eisblau); border-radius: var(--tx-radius-md); padding: 20px 24px; }
.legal ol { margin-top: 12px; padding-left: 24px; }
.legal ol li { margin-top: 8px; }
.legal-highlight { margin-top: 40px; border-left: 4px solid var(--tx-seeblau); background: var(--tx-eisblau); border-radius: var(--tx-radius-md); padding: 4px 24px 20px; }
.legal-highlight h2 { margin-top: 16px; }

/* Footer */
.site-footer { background: var(--tx-navy); color: #D3E3EC; padding-block: 64px 32px; font-size: 15px; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { color: var(--tx-himmelblau); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-grid h3 { color: #FFFFFF; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(211,227,236,.2); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Brief-Hinweis (persönliche Vorschau) */
.section-tight { padding-block: 32px; }
.letter-box { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--tx-weiss); border: 1px solid var(--tx-linie); border-radius: var(--tx-radius-lg); padding: 24px 32px; }
.letter-box > div { flex: 1 1 320px; min-width: 0; }
.letter-box > div > * + * { margin-top: 6px; }
.letter-box-compact { padding: 16px 20px; gap: 16px; border-radius: var(--tx-radius-md); }
.letter-box-compact > div { flex-basis: 200px; }
.letter-box-compact .icon { width: 44px; height: 44px; }
.letter-box-compact .icon svg { width: 20px; height: 20px; }

/* Ablauf auf eisblau: Karten */
.steps-on-ice li { background: var(--tx-weiss); border-radius: var(--tx-radius-md); box-shadow: var(--tx-shadow-1); padding: 24px; }

/* Design-Richtungen */
.design-card { position: relative; overflow: hidden; }
.design-letter { width: 56px; height: 56px; border-radius: 50%; background: var(--tx-eisblau); color: var(--tx-seeblau-dunkel); font-weight: 800; font-size: 24px; display: grid; place-items: center; margin-bottom: 8px; }

/* Preise */
.price-card { gap: 8px; }
.price-big { font-size: 44px; line-height: 52px; font-weight: 800; color: var(--tx-seeblau); letter-spacing: -0.01em; margin-top: 4px; }
.price-unit { font-size: 18px; font-weight: 700; color: var(--tx-text-2); }
.more-link { margin-top: 32px; font-weight: 700; }
.service-intro .price-big { margin-top: 8px; }

.dashes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--tx-text-2); }
.dashes li { position: relative; padding-left: 30px; }
.dashes li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 10px; height: 2px; background: var(--tx-text-2); border-radius: 2px; }

/* Tabellen */
.table-wrap { overflow-x: auto; min-width: 0; }
.tx-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.tx-table th, .tx-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--tx-linie); vertical-align: top; }
.tx-table thead th { background: var(--tx-eisblau); font-weight: 700; }
.tx-table thead th:first-child { border-top-left-radius: var(--tx-radius-sm); }
.tx-table thead th:last-child { border-top-right-radius: var(--tx-radius-sm); }
.tx-table tbody th { font-weight: 500; }
.tx-table .num { text-align: right; white-space: nowrap; }
.th-price { font-weight: 500; color: var(--tx-text-2); font-size: 14px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq { background: var(--tx-weiss); border-radius: var(--tx-radius-md); box-shadow: var(--tx-shadow-1); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 24px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tx-seeblau); font-weight: 800; font-size: 20px; line-height: 26px; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 24px 20px; color: var(--tx-navy); }

.notice-card { background: var(--tx-weiss); box-shadow: var(--tx-shadow-1); }

/* Manrope lokal (variable Schrift 400–800, Zeichensatz latin), SIL Open Font License 1.1 */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
}

/* Honeypot gegen Spam im Kontaktformular */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
