/* Sauter AG — gemeinsame Basisstile.
   Ersetzt den bisher in jeder .dc.html wiederholten <style>-Block. */

@font-face {
  font-family: Archivo;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Archivo;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f4f3f1; }
body { font-family: Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: #0d0f12; }
img { display: block; }
picture { display: contents; }

/* Sichtbarer Tastaturfokus – vorher gar nicht vorhanden. */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, video:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Nur fuer Screenreader und Suchmaschinen sichtbar. Traegt die H1 der
   Startseite, deren Gestaltung ohne Ueberschrift auskommt. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Sprungmarke zum Inhalt für Tastatur- und Screenreader-Nutzung. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: #fff; color: #0d0f12;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Links im Fliesstext der Unterseiten. Als Klasse statt inline, weil
   style-hover vom Canvas-Runtime nicht in echtes CSS uebersetzt wird. */
.text-link {
  color: #0d0f12;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(13,15,18,0.35);
  transition: text-decoration-color 250ms ease;
}
.text-link:hover { text-decoration-color: #0d0f12; }

/* Dieselben Links auf dunklem Grund (Startseite). */
.text-link-hell {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.45);
  transition: text-decoration-color 250ms ease;
}
.text-link-hell:hover { text-decoration-color: #fff; }

@keyframes kfDrift {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
@keyframes kfPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Kachelraster "Unsere Leistungen" und "Unser Team": auf dem Desktop fest
   dreispaltig (6 Kacheln = 3x2, wie im Entwurf), darunter gestuft schmaler.
   Steht hier statt inline, weil Inline-Styles keine Media Queries erlauben. */
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* Video-Player: zentrierter Play-Button, blendet beim Start aus. */
[data-player][data-playing] [data-play] { opacity: 0; pointer-events: none; }
[data-player] [data-play]:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

/* Header-Videos: kein iOS-Play-Button, falls Autoplay blockiert ist
   (z. B. Stromsparmodus) – dann bleibt das Posterbild stehen.
   !important ist hier noetig: Safari setzt diese Shadow-Elemente sonst
   ueber das eigene UA-Stylesheet wieder sichtbar. Fallback in nav.js. */
video[autoplay]::-webkit-media-controls,
video[autoplay]::-webkit-media-controls-panel,
video[autoplay]::-webkit-media-controls-play-button,
video[autoplay]::-webkit-media-controls-overlay-play-button,
video[autoplay]::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* ==========================================================================
   Mobile-Ansicht
   Die Desktop-Werte stehen als Defaults hier bzw. als Variablen-Defaults;
   nur die Media Queries weichen davon ab. Kein !important.
   ========================================================================== */

:root {
  --gutter: 40px;         /* horizontaler Seitenrand aller Sections */
  --header-pad-y: 28px;
  --tile-h: 47vh;         /* Kachelhoehe Team. "Unsere Leistungen" nutzt
                             stattdessen aspect-ratio 3/2 wie die Fotos. */
  --tile-min: 280px;
  --split-h: 62vh;        /* Split-Hero der Startseite */
  --form-span: span 2;    /* Kontaktformular im Raster */
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px 32px; flex-wrap: nowrap;
  padding: var(--header-pad-y) var(--gutter);
  background: linear-gradient(to bottom, rgba(10,12,16,0.94) 0%,
                              rgba(10,12,16,0.7) 45%, rgba(10,12,16,0) 100%);
}
.site-logo { height: 54px; width: auto; }

.site-nav {
  order: 2; flex: 1 1 0; min-width: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 16px 18px; padding-top: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.78);
}
.nav-link {
  padding-bottom: 4px; white-space: nowrap;
  background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8));
  background-repeat: no-repeat; background-position: left bottom;
  background-size: 0% 1px;
  transition: background-size 380ms cubic-bezier(.2,.7,.2,1), color 250ms ease;
}
.nav-cta { display: none; }        /* nur im mobilen Overlay */
.nav-toggle { display: none; }     /* Desktop: kein Burger */

/* --- Tablet und schmaler: Burger + Overlay ------------------------------
   Breiter als die uebrigen Breakpoints (900px): die ausgeschriebenen Labels
   "Kaminfegerarbeiten" und "Lueftungsreinigung" brauchen neben Logo und
   Telefonnummer rund 1000px, sonst bricht die Navigation zweizeilig um.
   Wert mit der matchMedia-Abfrage in nav.js synchron halten. */
@media (max-width: 1023px) {
  .nav-toggle {
    order: 3; display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; margin: -6px -10px -6px 0;
    padding: 0 10px; border: 0; background: transparent; cursor: pointer;
    position: relative; z-index: 60;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 24px; background: #fff;
    transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease;
  }
  :root[data-nav-open] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  :root[data-nav-open] .nav-toggle span:nth-child(2) { opacity: 0; }
  :root[data-nav-open] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Logo bleibt ueber dem Overlay sichtbar */
  .site-header > a { position: relative; z-index: 60; }

  .site-nav {
    position: fixed; inset: 0; z-index: 50;
    flex-direction: column; flex-wrap: nowrap;
    justify-content: flex-start; align-items: flex-start;
    gap: 4px; padding: 96px var(--gutter) 40px;
    background: #0d0f12; color: rgba(255,255,255,0.86);
    font-size: 20px; letter-spacing: 0.04em;
    transform: translateY(-100%);
    transition: transform 380ms cubic-bezier(.2,.7,.2,1);
    overflow-y: auto; overscroll-behavior: contain;
  }
  :root[data-nav-open] .site-nav { transform: none; }

  .nav-link { padding: 11px 0; background-size: 0% 1px; }
  .site-nav .nav-link[aria-current] { color: #fff; background-size: 100% 1px; }
  .nav-cta {
    display: block; margin-top: 28px; padding: 14px 26px;
    background: #fff; color: #0d0f12;
    font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  }
}

/* --- Telefon ------------------------------------------------------------ */
@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --header-pad-y: 18px;
    --tile-h: 32vh;
    --tile-min: 200px;
    --split-h: 48vh;
    --form-span: auto;    /* einspaltig: kein Spannen ueber zwei Spalten */
  }
  .site-logo { height: 40px; }
  .site-nav { padding-top: 84px; }
}

/* Kein Scrollen hinter dem offenen Overlay. */
:root[data-nav-open] body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .site-nav, .nav-toggle span { transition: none; }
}
