/* Self-hosted variable font (latin subset, from @fontsource-variable/inter 5.3.0), SIL OFL 1.1: the licence text is
   published next to it. This file is a template (layouts/_partials/kit/site/asset.html). */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/site/fonts/Inter-Variable.3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62.woff2) format("woff2")}
/* ==========================================================================
   Nethotline site.css — einziges Stylesheet.
   Reihenfolge: Fonts → Tokens → Reset → Basis → Komponenten → Sektionen.
   ========================================================================== */

/* Fonts: assets/site/fonts.css (Inter variable, self-hosted), served in front of this file. */

/* ── Design-Tokens ───────────────────────────────────────────────────── */
:root {
  /* Contract tokens (--color-bg, -surface, -text, -text-muted, -accent, -line) come from theme.css. */
  --color-surface-warm: #f3ede4;
  --color-accent-dark: #b71821;   /* Hover / aktiver Zustand */
  --color-accent-soft: #fde4e5;   /* Flächen hinter Akzent-Inhalten */
  --color-footer-bg: #2b2b28;
  --color-footer-text: #d8d4cb;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --text-hero: clamp(2rem, 1.4rem + 3vw, 3.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);

  --radius: 10px;
  --shadow: 0 2px 12px rgba(43, 43, 40, 0.08);
  --container-max: 68rem;
}

/* ── Reset / Basis ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; text-wrap: balance; }
a { color: var(--color-accent-dark); }
a:hover { color: var(--color-accent-dark); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
/* On the dark footer the red ring is below 3:1; the footer text colour is 9.6:1. */
.site-footer :focus-visible { outline-color: var(--color-footer-text); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-surface); padding: var(--space-1) var(--space-2);
  z-index: 100;
}
.skip-link:focus { left: var(--space-2); }

/* Nur für Screenreader: im DOM/Accessibility-Baum, visuell entfernt
   (z. B. Abschnitts-Überschriften, die die Heading-Reihenfolge sauber halten). */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout-Bausteine ────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.section { padding-block: var(--space-section); }
.section-alt { background: var(--color-surface-warm); }
.eyebrow {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-1);
}
.section-title { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.section-intro { max-width: 46rem; color: var(--color-text-muted); margin-bottom: var(--space-4); }

/* ── Karten ──────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.card p { color: var(--color-text-muted); }

/* ── Fließtext-Seiten (Legal, SaaS-Details) ──────────────────────────── */
.prose, .kit-article__body { max-width: 46rem; }
.prose h1 { font-size: var(--text-2xl); margin-block: var(--space-4) var(--space-3); }
.prose h2, .kit-article__body h2 { font-size: var(--text-xl); margin-block: var(--space-4) var(--space-2); }
.prose h3, .kit-article__body h3 { font-size: var(--text-lg); margin-block: var(--space-3) var(--space-1); }
.prose p, .prose ul, .prose ol, .kit-article__body p, .kit-article__body ul, .kit-article__body ol { margin-bottom: var(--space-2); }

/* ── Header / Navigation ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}
.nav-row { display: flex; align-items: center; gap: var(--space-2); min-height: 4rem; }
.brand { flex: 0 0 auto; }
.brand img { width: 150px; height: auto; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  flex: 0 0 48px;
  width: 48px; height: 48px; padding: 12px;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-text); border-radius: 1px; }
.nav-menu {
  display: none;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  display: block; padding: 0.75rem 1rem;
  color: var(--color-text); text-decoration: none; font-weight: 700;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--color-accent-dark); }
.nav-cta { flex: 0 0 auto; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  /* margin-left:auto muss am <nav>-Wrapper sitzen (dem Flex-Item der Zeile),
     nicht an .nav-menu — sonst bleibt der Menü+CTA-Block links hängen. */
  .nav-row nav { margin-left: auto; }
  .nav-menu { display: flex; gap: var(--space-1); }
  .nav-cta { margin-left: var(--space-2); min-height: 44px; padding: 0.55em 1.3em; font-size: var(--text-sm); }
  .brand img { width: 230px; }
}
@media (max-width: 61.99rem) {
  /* Mobile Reihenfolge: Logo – CTA – Burger (Burger außen rechts); Tab-Reihenfolge bleibt DOM-Reihenfolge */
  .nav-cta { min-height: 44px; padding: 0.5em 1em; font-size: var(--text-sm); order: 1; }
  .nav-toggle { margin-left: 0; order: 2; }
  .nav-row { justify-content: space-between; }
  /* Scoped auf Mobile, damit Desktop (≥62rem) nie betroffen ist, selbst wenn is-open gesetzt bleibt */
  .nav-menu.is-open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: var(--space-2);
  }
}
@media (max-width: 26rem) {
  /* Sehr schmale Viewports (320px): Logo, CTA und Burger weiter verschlanken, damit sie in eine Zeile passen */
  .site-header .container { padding-inline: 0.75rem; }
  .nav-row { gap: var(--space-1); }
  .brand img { width: 120px; }
  .nav-cta { padding: 0.4em 0.65em; font-size: 0.75rem; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding-block: var(--space-4); margin-top: var(--space-section); }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.footer-about { max-width: 34rem; }
.footer-about p { margin-top: var(--space-1); }
.footer-about img { width: 180px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: var(--space-2); }
.footer-nav { display: grid; gap: var(--space-4) var(--space-3); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-content: start; }
.footer-col h2 { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; padding: 0; }
/* Für Spalten mit vielen (SEO-)Links: `params.wide = true` am Spalteneintrag von menu.footer (hugo.toml) setzen –
   die Spalte belegt dann zwei Raster-Tracks und bricht die Liste zweispaltig um. */
.footer-col--wide { grid-column: span 2; }
.footer-col--wide ul { columns: 2; column-gap: var(--space-4); }
.footer-col a, .footer-about a { color: var(--color-footer-text); text-decoration: none; line-height: 2; }
.footer-col a:hover, .footer-about a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--space-4); padding-top: var(--space-2); font-size: var(--text-sm); }
@media (max-width: 34rem) { .footer-col--wide ul { columns: 1; } }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: var(--space-4) var(--space-4); } }

/* ── Booking-Dialog ──────────────────────────────────────────────────── */
.booking-modal {
  width: min(680px, calc(100vw - 2rem));
  border: 0; border-radius: var(--radius); padding: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  /* Der globale Reset (* { margin: 0 }) überschreibt das UA-`dialog { margin: auto }`,
     das offene Dialoge zentriert — hier explizit wiederherstellen. */
  margin: auto;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
}
/* Flex-Spalte, damit der 700px-Iframe auf kleinen Viewports mitschrumpft
   statt den Dialog aus dem Bildschirm zu schieben. */
.booking-modal[open] { display: flex; flex-direction: column; }
.booking-modal::backdrop { background: rgba(43,43,40,0.55); }
.booking-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-line); }
.booking-head h2 { font-size: var(--text-lg); }
.booking-close { font-size: 1.75rem; line-height: 1; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; color: var(--color-text-muted); }
.booking-close:hover { color: var(--color-text); }
.booking-consent { padding: var(--space-4) var(--space-3); text-align: center; }
.booking-consent h3 { margin-bottom: var(--space-2); }
.booking-consent p { max-width: 30rem; margin-inline: auto; color: var(--color-text-muted); }
.booking-consent .kit-button { margin-block: var(--space-3) var(--space-1); }
.booking-fineprint { font-size: var(--text-sm); }
.booking-loader { padding: var(--space-4); text-align: center; color: var(--color-text-muted); }
.booking-frame { border: 0; width: 100%; height: 700px; flex: 1 1 auto; min-height: 0; }
.booking-consent, .booking-loader { overflow-y: auto; }
.nh-spinner {
  width: 46px; height: 46px; margin: 0 auto var(--space-2);
  border: 4px solid var(--color-line); border-top-color: var(--color-accent);
  border-radius: 50%; animation: nh-spin 0.8s linear infinite;
}
@keyframes nh-spin { to { transform: rotate(360deg); } }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding-block: var(--space-section); background: linear-gradient(180deg, var(--color-surface-warm), var(--color-bg)); }
.hero .container { max-width: 52rem; text-align: center; }
.hero-badge {
  display: inline-block; font-size: var(--text-sm); font-weight: 700;
  color: var(--color-accent-dark); background: var(--color-accent-soft);
  padding: 0.35em 1em; border-radius: 999px; margin-bottom: var(--space-3);
}
.hero h1 { font-size: var(--text-hero); margin-bottom: var(--space-3); }
.hero-text { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 38rem; margin: 0 auto var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }

/* ── Grids (einspaltig mobil, mehr auf Desktop — kein Zickzack) ──────── */
.grid-2, .grid-3 { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 42rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card-tag { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-dark); margin-bottom: var(--space-1); }
.produkte-hinweis { max-width: 46rem; color: var(--color-text-muted); margin-block: var(--space-4) var(--space-2); }
/* Produkt-Links als eigene Zeile (nicht am Fließtext hängend). Jeder Eintrag
   (Name + optionales "Bald verfügbar"-Badge) ist eine unteilbare inline-flex-
   Einheit, damit das Badge nie vom Produktnamen abreißt; die Liste bricht nur
   zwischen ganzen Einträgen um. Separator "·" via ::before. */
.produkte-liste {
  list-style: none; padding: 0; margin-block: 0 var(--space-3);
  max-width: 46rem; color: var(--color-text-muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 0.85em;
}
.produkt-eintrag { display: inline-flex; align-items: center; gap: 0.4em; }
.produkt-eintrag:not(:first-child)::before { content: "·"; color: var(--color-line); }

/* ── Über uns ────────────────────────────────────────────────────────── */
.about-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-items: center; }
.about-grid img { border-radius: var(--radius); }
@media (min-width: 48rem) { .about-grid { grid-template-columns: 3fr 2fr; } }

/* ── Kontakt-CTA ─────────────────────────────────────────────────────── */
.kontakt-cta { text-align: center; background: var(--color-accent-soft); }
.kontakt-cta .section-intro { margin-inline: auto; }
.kontakt-cta .hero-actions { justify-content: center; }

/* ── Projekte-Seite ──────────────────────────────────────────────────── */
.page-head { padding-bottom: 0; }
.weitere-title { margin-top: var(--space-section); font-size: var(--text-xl); }
.weitere-liste { columns: 1; color: var(--color-text-muted); padding-left: 1.2em; }
@media (min-width: 48rem) { .weitere-liste { columns: 2; column-gap: var(--space-4); } }

/* ── Formulare ───────────────────────────────────────────────────────── */
.nh-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; margin-block: var(--space-3); }
@media (min-width: 42rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-full { grid-column: 1 / -1; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-weight: 700; font-size: var(--text-sm); }
.form-grid input:not([type="checkbox"]), .form-grid textarea {
  /* Field border at least 3:1 against white and the page (WCAG 1.4.11); the line colour was 1.33:1. */
  font: inherit; font-weight: 400; color: var(--color-text);
  padding: 0.75em 1em; min-height: 48px;
  border: 1px solid #86817a; border-radius: var(--radius);
  background: var(--color-surface);
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--color-accent); }
.nh-form-consent { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; color: var(--color-text-muted); }
.nh-form-consent label { cursor: pointer; font-size: var(--text-sm); }
.nh-form-consent input { margin-top: 4px; width: 20px; height: 20px; flex: 0 0 auto; }
.contact-status:empty { display: none; }
.contact-status { margin-top: var(--space-2); padding: 0.9em 1.2em; border-radius: var(--radius); }
.contact-status--ok { background: #e4f3e8; color: #22663a; }
.contact-status--error { background: #fbe5e2; color: #a03024; }
.kontakt-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 62rem) { .kontakt-grid { grid-template-columns: 3fr 2fr; } }
.kontakt-direkt h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.kontakt-direkt p { margin-bottom: var(--space-2); }

/* ── Ratgeber-Artikel (Lesespalte + sticky CTA-Sidebar) ──────────────────
   Mobil: eine Spalte, Sidebar aus (das CTA-Band + Formular unten tragen den
   Call-to-Action). Ab 62rem: Lesespalte (~48rem) + 17rem sticky CTA-Rail,
   die zusammen die volle Boxed-Breite füllen — kein verschenkter Rand mehr. */

/* ── Produkt-Status-Badge (freies `badge:`-Label pro Produkt, z. B. „Pilotbetrieb") ─ */
.product-badge {
  display: inline-block; font-size: var(--text-sm); font-weight: 700;
  color: var(--color-accent-dark); background: var(--color-accent-soft);
  padding: 0.2em 0.75em; border-radius: 999px;
  vertical-align: middle; white-space: nowrap;
}
.product-badge-lg { font-size: 1rem; padding: 0.4em 1.1em; }

/* ── hugo-kit blocks in the Nethotline look ───────────────────────────
   kit.css lays blocks out and theme.css sets the token contract; this keeps the site's own rhythm: sections as wide
   as the old container, centred hero on a warm gradient, bands across the full width (border-image fills the
   viewport width without a wrapper element), eyebrows in small caps, cards with shadow. Links inside blocks use
   --color-accent-dark (#b71821): the accent itself is below 4.5:1 on the warm and the pale red bands. */
html { scroll-padding-top: 5rem; } /* focused elements and #anchors stay clear of the sticky header (2.4.11) */
.kit-block { max-width: var(--container-max); padding: var(--space-section) clamp(1rem, 4vw, 2rem); }
/* The site's reset (* { margin: 0 }) is unlayered and beats every margin of kit.css: centre the blocks, the 404 page
   and articles again and give headings, texts and button rows their spacing back. */
.kit-block, .kit-page, .kit-article { margin-inline: auto; }
.kit-block :where(h1, h2) { margin-bottom: var(--space-3); }
.kit-block :where(p, ul, ol):not(:last-child, .kit-eyebrow, .kit-hero__eyebrow, .kit-actions) { margin-bottom: var(--space-3); }
.kit-article__header, .kit-article__body, .kit-article__back { margin-inline: auto; max-width: 46rem; }
.kit-actions { margin-block: var(--space-4); }
.kit-block h2 { font-size: var(--text-2xl); line-height: 1.2; }
.kit-block a:not(.kit-button) { color: var(--color-accent-dark); }
.kit-eyebrow {
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-dark); margin-bottom: var(--space-1);
}
.kit-hero {
  text-align: center; justify-items: center;
  border-image: linear-gradient(180deg, var(--color-surface-warm), var(--color-bg)) fill 0 / / 0 100vmax;
}
.kit-hero .kit-hero__text { max-width: 52rem; }
.kit-hero h1 { font-size: var(--text-hero); line-height: 1.15; hyphens: manual; }
.kit-hero .kit-hero__eyebrow {
  display: inline-block; font-size: var(--text-sm); color: var(--color-accent-dark); background: var(--color-accent-soft);
  padding: 0.35em 1em; border-radius: 999px; margin-bottom: var(--space-3);
}
.kit-hero .kit-hero__lead { font-size: var(--text-lg); max-width: 38rem; margin-inline: auto; }
.kit-hero .kit-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
/* The hero's second action and secondary buttons look like the old ghost buttons. */
.kit-hero .kit-hero__link, .kit-button--secondary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 14px 22px; border-radius: var(--radius);
  border: 2px solid var(--color-accent); background: transparent; font-weight: 700; text-decoration: none;
}
.kit-block .kit-hero__link, .kit-block .kit-button--secondary, .kit-button--secondary { color: var(--color-accent-dark); }
.kit-hero .kit-hero__link:hover, .kit-button--secondary:hover { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.kit-button:hover:not(.kit-button--secondary) { background: var(--color-accent-dark); }
#leistungen, #ueber-uns, #produkte { border-image: linear-gradient(var(--color-surface-warm), var(--color-surface-warm)) fill 0 / / 0 100vmax; }
.kit-cta { text-align: center; border-image: linear-gradient(var(--color-accent-soft), var(--color-accent-soft)) fill 0 / / 0 100vmax; }
.kit-cta > p { margin-inline: auto; color: var(--color-text-muted); }
.kit-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.kit-cta > :not(.kit-links, .kit-actions) { flex-basis: 100%; max-width: none; }
.kit-cta > p:not(.kit-actions) { padding-inline: max(0px, calc((100% - 46rem) / 2)); }
.kit-cta .kit-links { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; list-style: none; padding: 0; margin: 0; }
.kit-cta .kit-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border: 2px solid var(--color-accent); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.kit-cta .kit-actions { display: flex; margin: 0; }
.kit-card { padding: var(--space-3); box-shadow: var(--shadow); }
.kit-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.kit-card p { color: var(--color-text-muted); }
.kit-card .kit-card__tag { font-size: var(--text-sm); color: var(--color-accent-dark); margin-bottom: var(--space-1); }
@media (min-width: 42rem) { #leistungen .kit-cards__list { grid-template-columns: repeat(2, 1fr); } }
.nh-products { padding-top: 0; }
.kit-features--image .kit-img { border-radius: var(--radius); }
/* site.css is unlayered and its a { color } would beat the kit layer's button label colour. */
a.kit-button:not(.kit-button--secondary), a.kit-button:not(.kit-button--secondary):hover { color: var(--color-accent-contrast); }
.kit-features__image .kit-img { max-width: 256px; margin-inline: auto; }
/* Windows high contrast: border-image is not replaced by the forced colours, so the bands would stay light behind
   forced light text. */
@media (forced-colors: active) {
  .kit-hero, #leistungen, #ueber-uns, #produkte, .kit-cta { border-image: none; }
}
/* Ratgeber articles (kit-article): header with byline and tag, the first of the two calls to action without a band. */
.kit-article__header h1 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.kit-article__meta { font-size: var(--text-sm); color: var(--color-text-muted); }
.kit-article__tags { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-dark); margin-block: var(--space-1) var(--space-4); }
.kit-article .kit-cta:has(+ .kit-cta) { border-image: none; }
.kit-article__back { margin-block: var(--space-4); }
