/* ==========================================================================
   SENSO® Cloud – stylesheet (Version 1)
   Based on the toolkit master (00-toolkit/styles/style.css), CI values from
   00-docs/ci-values.md (confirmed by Minna 2026-10-08).
   --------------------------------------------------------------------------
   HOW TO CHANGE THINGS
   All editable values are in section 1 ("Settings"). Change them there only.
   Sizes are plain numbers = pixels on a laptop (1440 px wide).
   Smartphones, tablets and large screens scale automatically.
   Accessibility (Barrierefreiheit): section 4 + checklist section 10.
   ========================================================================== */


/* ==========================================================================
   1. SETTINGS  (CI values of this client)
   ========================================================================== */
:root {
  /* --- Colors ---------------------------------------------------------- */
  --color-bg:          #19272B;  /* page background (dark petrol)           */
  --color-panel:       #223035;  /* footer, boxes, second contact column    */
  --color-header:      rgba(25, 39, 43, .6);  /* header over the photo     */
  --color-text:        #AFC1C5;  /* running text, headings                  */
  --color-muted:       #8A9CA0;  /* footer headings (live #85979B, a bit
                                    lighter for contrast 4.5:1 – checklist 10.7) */
  --color-soft:        #69797D;  /* second line of large lead texts         */
  --color-white:       #FFFFFF;  /* menu, buttons, footer links             */
  --color-button:      #20282D;  /* header button „Kontakt"                 */
  --color-overlay:     rgba(0, 0, 0, .4);  /* dark layer on hero photos     */
  --color-focus:       #FFFFFF;  /* keyboard focus frame                    */

  /* --- Fonts ----------------------------------------------------------- */
  --font-heading: "DM Sans", Arial, sans-serif;  /* headings, menu, buttons */
  --font-text:    "Heebo", Arial, sans-serif;    /* running text            */

  /* --- Font sizes (laptop px) ------------------------------------------ */
  --fs-hero-h1:   72;
  --fs-hero-h2:   36;
  --fs-h2:        36;
  --fs-h3:        36;
  --fs-h4:        28;
  --fs-h5:        18;
  --fs-lead:      56;   /* large two-tone lead text */
  --fs-text:      19;
  --fs-nav:       15;
  --fs-button:    18;
  --fs-small:     16;   /* footer lines   */
  --fs-tiny:      13;   /* copyright      */

  /* --- Spacing and widths (laptop px) ---------------------------------- */
  --space-section: 101;   /* section padding (top/bottom and sides)  */
  --header-gutter: 44;
  --width-content: 1140;  /* legal pages, centered titles            */

  /* --- Header ---------------------------------------------------------- */
  --header-top:    72;    /* row with logo + Kontakt button   */
  --header-bottom: 63;    /* row with menu + contact line     */
  --logo-height:   50;

  --transition: .3s ease;
}


/* ==========================================================================
   2. AUTOMATIC SCALING  (no need to change)
   --u = headings and spacing (1px on a 1440 px laptop)
   --t = normal text (shrinks less on phones)
   ========================================================================== */
:root {
  --a11y-text: 1;
  --a11y-ui: 1;
  --u: calc(clamp(0.5px, calc(0.5px + 0.03472vw), 1.25px) * var(--a11y-ui));
  --t: calc(clamp(0.84px, calc(0.75px + 0.01736vw), 1.15px) * var(--a11y-text));
}


/* ==========================================================================
   3. FONTS  (files in assets/fonts – no Google connection)
   ========================================================================== */
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Heebo";   font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/heebo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Heebo";   font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/heebo-latin-700-normal.woff2") format("woff2"); }


/* ==========================================================================
   4. BASE + ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: calc(var(--fs-text) * var(--t));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); font-weight: 400; color: var(--color-text); }
h2 { font-size: calc(var(--fs-h2) * var(--u)); line-height: 1.24; }
h3 { font-size: calc(var(--fs-h3) * var(--u)); line-height: 1.31; }
h4 { font-size: calc(var(--fs-h4) * var(--u)); line-height: 1.4; font-weight: 500; }
h5 { font-size: calc(var(--fs-h5) * var(--t)); line-height: 1.5; font-weight: 500; color: var(--color-muted); }
p { margin: 0; }
/* ® always small and raised (SENSO® rule, Minna 2026-10-08) */
sup.reg { font-size: .5em; line-height: 0; vertical-align: super; margin-left: .03em; }
/* heading look independent of level (correct heading order for screen readers) */
.h3 { font-size: calc(var(--fs-h3) * var(--u)); line-height: 1.31; font-weight: 400; }
.h4 { font-size: calc(var(--fs-h4) * var(--u)); line-height: 1.4; font-weight: 500; }
.h5 { font-size: calc(var(--fs-h5) * var(--t)); line-height: 1.5; font-weight: 500; color: var(--color-muted); font-family: var(--font-heading); }
p + p { margin-top: .8em; }
ul { margin: 0; }

/* 10.1 skip link – visible only when reached with the keyboard */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 12px 20px; background: var(--color-white); color: var(--color-bg);
  font-family: var(--font-heading); font-size: 16px; border-radius: 4px;
}
.skip-link:focus { top: 16px; }
/* 10.4 clearly visible focus frame */
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.svg-sprite { display: none; }
/* 10.6 no movement when the visitor's device asks for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   5. LAYOUT HELPERS
   ========================================================================== */
.section { position: relative; padding: calc(var(--space-section) * var(--u)); }
.section--panel { background: var(--color-panel); }
.inner { max-width: calc(var(--width-content) * var(--u)); margin: 0 auto; }
.text p { margin-top: calc(25 * var(--u)); }
.text p + p { margin-top: .8em; }
.text h3 + p, .text h4 + p { margin-top: calc(25 * var(--u)); }
.centered { text-align: center; }


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
/* Filled pill button (header „Kontakt") */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: calc(51 * var(--u)); padding: calc(6 * var(--u)) calc(33 * var(--u)) calc(7 * var(--u));
  border-radius: 25px; background: var(--color-button); color: var(--color-white);
  font-family: var(--font-heading); font-size: calc(var(--fs-button) * var(--t));
  transition: background var(--transition);
}
.button:hover { background: var(--color-panel); }
/* Text button: text + small arrow, thin line under it */
.text-button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: calc(var(--fs-button) * var(--t)); line-height: 2;
  color: var(--color-text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--transition);
}
.text-button:hover { background-size: 0 1px; background-position: 100% 100%; }
.icon-arrow { width: .55em; height: .55em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; }
.button-stack { display: flex; flex-direction: column; align-items: flex-start; gap: calc(14 * var(--u)); margin-top: calc(30 * var(--u)); }


/* ==========================================================================
   7. BLOCK: site-header  (over the hero photo, compact + solid when scrolling)
   ========================================================================== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0 calc(var(--header-gutter) * var(--u));
  background: var(--color-header);
  transition: background var(--transition), transform var(--transition);
}
.site-header.is-fixed { position: fixed; background: var(--color-bg); box-shadow: 0 1px 0 rgba(175,193,197,.15); }
.site-header.is-fixed .site-header__bottom { display: none; }
.site-header__top {
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--header-top) * var(--u)); min-height: 60px;
}
.site-header__logo img { height: calc(var(--logo-height) * var(--u)); min-height: 40px; width: auto; }
.site-header__right { display: flex; align-items: center; gap: calc(20 * var(--u)); }
.site-header__bottom {
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--header-bottom) * var(--u));
}
.main-nav ul { list-style: none; padding: 0; display: flex; gap: calc(30 * var(--u)); }
.main-nav a {
  font-family: var(--font-heading); font-size: calc(var(--fs-nav) * var(--t)); color: var(--color-white);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px;
  transition: background-size var(--transition);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background-size: 100% 1px; }
.header-contact { font-family: var(--font-heading); font-size: calc(var(--fs-nav) * var(--t)); color: var(--color-text); }
.header-contact a:hover { color: var(--color-white); }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--color-white); cursor: pointer;
}
.icon-search { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.menu-toggle { display: none; }
.icon-menu { width: 26px; height: 18px; stroke: currentColor; stroke-width: 1.6; }

/* search bar over the header */
.search-cover {
  position: absolute; inset: 0; z-index: 2; display: none; align-items: center; gap: 12px;
  padding: 0 calc(var(--header-gutter) * var(--u)); background: var(--color-bg);
}
.site-header.is-search-open .search-cover { display: flex; }
.search-cover__input {
  flex: 1; height: 50px; border: 0; border-bottom: 1px solid var(--color-text); background: none;
  color: var(--color-white); font-family: var(--font-heading); font-size: calc(24 * var(--u));
}
.search-cover__input::placeholder { color: var(--color-text); }
/* no frame around the search field – thin line in text color (Minna 2026-10-08) */
.search-cover__input:focus, .search-cover__input:focus-visible { outline: none; border-bottom: 1px solid var(--color-text); }
.search-cover__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; }

/* mobile menu panel */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; z-index: 100; width: min(360px, 100%);
  padding: 80px 32px 32px; background: var(--color-panel); overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform var(--transition), visibility var(--transition);
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav li + li { margin-top: 14px; }
.mobile-nav a { font-family: var(--font-heading); font-size: 20px; color: var(--color-white); }
.mobile-nav__close { position: absolute; top: 20px; right: 20px; font-size: 32px; }
.mobile-nav__contact { margin-top: 28px; font-size: 15px; }

@media (max-width: 1024px) {
  .site-header__bottom, .site-header .button { display: none; }
  .menu-toggle { display: inline-flex; }
}


/* ==========================================================================
   8. BLOCK: page-hero  (full-width photo, dark layer, H1 + H2 bottom left)
   ========================================================================== */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: calc(700 * var(--u)); padding: calc(var(--space-section) * var(--u));
  padding-top: calc(200 * var(--u));
  background: var(--color-bg) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
.page-hero__content { position: relative; max-width: calc(860 * var(--u)); }
.page-hero h1 { font-size: calc(var(--fs-hero-h1) * var(--u)); line-height: 1.18; font-weight: 600; }
.page-hero h2, .page-hero .page-hero__sub { font-size: calc(var(--fs-hero-h2) * var(--u)); line-height: 1.24; font-weight: 400; }
.page-hero .text-button { margin-top: calc(32 * var(--u)); }
.page-hero--home { min-height: calc(855 * var(--u)); background-position: 50% 0; }
.page-hero--home .page-hero__content { max-width: calc(681 * var(--u)); }
.page-hero--medium { min-height: calc(500 * var(--u)); }
/* legal pages: lower hero, title in the content column */
.page-hero--small { min-height: calc(400 * var(--u)); padding-bottom: calc(50 * var(--u)); }
.page-hero--small .page-hero__content { width: 100%; max-width: calc(var(--width-content) * var(--u)); margin: 0 auto; }


/* ==========================================================================
   9. BLOCK: intro-lead  (left: title, text, buttons · right: large lead text)
   BLOCK: lead-text  (large two-tone text, Heebo)
   ========================================================================== */
.intro-lead { display: grid; grid-template-columns: 464fr 688fr; gap: calc(87 * var(--u)); }
.lead-text { font-size: calc(var(--fs-lead) * var(--u)); line-height: 1.1; font-family: var(--font-text); color: var(--color-text); }
.lead-text .soft { display: block; margin-top: .45em; color: var(--color-soft); }
.lead-section { padding-bottom: calc(150 * var(--u)); }
.lead-section .text-button { margin-top: calc(32 * var(--u)); }


/* ==========================================================================
   10. BLOCK: card-slider  (2.5 cards visible, thin lines between, endless)
   ========================================================================== */
.card-slider {
  position: relative; overflow: hidden;
  padding: calc(58 * var(--u)) 0 calc(58 * var(--u)) calc(var(--space-section) * var(--u));
}
.card-slider__track { display: flex; list-style: none; margin: 0; padding: 0; transition: transform .8s ease; }
.card {
  position: relative; flex: 0 0 calc((100vw - var(--space-section) * var(--u) - 2 * 90 * var(--u)) / 2.5);
  margin-right: calc(90 * var(--u));
}
.card::after { /* thin line between the cards */
  content: ""; position: absolute; top: 0; bottom: 0; right: calc(-45 * var(--u)); width: 1px; background: rgba(175,193,197,.25);
}
.card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__image img { transform: scale(1.04); }
.card h4 { margin-top: calc(24 * var(--u)); }
.card p { margin-top: calc(6 * var(--u)); font-size: calc(16 * var(--t)); }
.slider-pause {
  position: absolute; right: calc(var(--space-section) * var(--u)); bottom: calc(10 * var(--u));
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(175,193,197,.4);
  border-radius: 20px; background: none; color: var(--color-text); font-family: var(--font-heading); font-size: 13px; cursor: pointer;
}
.slider-pause:hover { color: var(--color-white); border-color: var(--color-white); }


/* ==========================================================================
   11. BLOCK: image-band  (photo strip before the footer, Startseite)
   ========================================================================== */
.image-band { height: calc(400 * var(--u)); background: center / cover no-repeat; }


/* ==========================================================================
   12. BLOCK: feature-boxes  (2 columns of boxes: title + text)
   ========================================================================== */
.feature-title { padding-top: calc(100 * var(--u)); padding-bottom: 0; }
.feature-title p { max-width: calc(var(--width-content) * var(--u)); margin-left: auto; margin-right: auto; }
.feature-boxes {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto);
  column-gap: 2%; row-gap: calc(32 * var(--u));
}
.feature-box { padding: calc(42 * var(--u)); background: var(--color-panel); }
.feature-box h4 { margin-bottom: calc(15 * var(--u)); }


/* ==========================================================================
   13. BLOCK: image-text  (image 1/3 left, text 2/3 right)
   ========================================================================== */
.image-text { display: grid; grid-template-columns: 1fr 2fr; }
.image-text__image { min-height: calc(500 * var(--u)); background: center / cover no-repeat; }
.image-text__text { padding: calc(var(--space-section) * var(--u)); background: var(--color-bg); }
.image-text__text h3 + p { margin-top: calc(25 * var(--u)); }
.image-text__text p + p { margin-top: .6em; }


/* ==========================================================================
   14. BLOCK: side-accordion  (left: title + text · right: numbered accordion)
   ========================================================================== */
.side-accordion { display: grid; grid-template-columns: 384fr 768fr; gap: calc(86 * var(--u)); }
.accordion { counter-reset: acc; }
.accordion__item { counter-increment: acc; border-top: 1px solid var(--color-text); }
.accordion__item:first-child { border-top: 0; }
.accordion__item:last-child { border-bottom: 1px solid var(--color-text); }
.accordion__heading { margin: 0; font-size: inherit; }
.accordion__button {
  display: flex; align-items: center; width: 100%; gap: 14px;
  padding: calc(21 * var(--u)) 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-size: calc(var(--fs-h4) * var(--u)); font-weight: 500; line-height: 1.4; color: var(--color-text);
}
.accordion__button::before { content: counter(acc, decimal-leading-zero); flex: none; font-size: 12px; font-weight: 400; }
.accordion__button span { flex: 1; }
.accordion__icon { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform var(--transition); }
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }
.accordion__panel { display: none; padding: 0 calc(33 * var(--u)) calc(40 * var(--u)); }
.accordion__item.is-open .accordion__panel { display: block; }
.accordion--plain .accordion__button::before { content: none; }
.after-accordion { margin-top: calc(64 * var(--u)); }


/* ==========================================================================
   15. BLOCK: contact-info  (2 equal columns, second on panel color)
   ========================================================================== */
.contact-info { display: grid; grid-template-columns: 1fr 1fr; }
.contact-info > div { padding: calc(var(--space-section) * var(--u)); }
.contact-info > div:nth-child(2) { background: var(--color-panel); }
.contact-info .h3 + p { margin-top: calc(25 * var(--u)); }
.contact-info .h4 { margin-top: calc(30 * var(--u)); }
.contact-info .h4 + p { margin-top: calc(20 * var(--u)); }
.contact-info a:hover { color: var(--color-white); }


/* ==========================================================================
   15b. BLOCK: contact-form  (Version 2 – form on Kontakt, sent by kontakt-senden.php)
   ========================================================================== */
.contact-form { padding: calc(var(--space-section) * var(--u)); border-top: 1px solid rgba(175,193,197,.15); }
.contact-form .inner { max-width: calc(860 * var(--u)); margin: 0; }
.contact-form h2 + p { margin-top: calc(20 * var(--u)); }
.contact-form form { display: grid; grid-template-columns: 1fr 1fr; gap: calc(28 * var(--u)) calc(40 * var(--u)); margin-top: calc(40 * var(--u)); }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--wide, .form-consent, .form-actions, .form-status { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-heading); color: var(--color-white); }
.form-field .req, .form-consent .req { color: var(--color-text); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-text); border-radius: 4px;
  background: var(--color-panel); color: var(--color-white); font: inherit; font-size: calc(17 * var(--t));
}
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.form-field input:user-invalid, .form-field textarea:user-invalid, .form-consent input:user-invalid { border-color: #FFB4A8; outline: 2px solid #FFB4A8; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; }
.form-consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--color-white); }
.form-consent a, .form-status a { text-decoration: underline; text-underline-offset: 3px; }
.form-hint { font-size: calc(15 * var(--t)); color: var(--color-muted); }
.form-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions .button { border: 1px solid var(--color-text); cursor: pointer; }
.form-status { padding: 16px 20px; border: 1px solid var(--color-text); border-radius: 4px; background: var(--color-panel); color: var(--color-white); }
.form-status[hidden] { display: none; }
@media (max-width: 767px) { .contact-form form { grid-template-columns: 1fr; } }


/* ==========================================================================
   16. BLOCK: legal-text  (Impressum, Datenschutz …)
   ========================================================================== */
.legal { padding: calc(60 * var(--u)) calc(var(--space-section) * var(--u)) calc(140 * var(--u)); }
.legal .inner > * + * { margin-top: 1em; }
.legal h2 { margin-top: 1.4em; }
.legal h3 { margin-top: 1.2em; }
.legal h4 { margin-top: 1.4em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .accordion { margin-top: calc(50 * var(--u)); }
.legal .accordion a { text-decoration: underline; }


/* ==========================================================================
   17. BLOCK: footer
   ========================================================================== */
.site-footer { background: var(--color-panel); color: var(--color-white); font-size: calc(var(--fs-small) * var(--t)); }
.site-footer__top, .site-footer__bottom { display: grid; grid-template-columns: 474fr 952fr; gap: calc(30 * var(--u)); padding: 0 calc(82 * var(--u)); }
.site-footer__top { padding-top: calc(92 * var(--u)); align-items: start; }
.site-footer__logo img { width: calc(250 * var(--u)); min-width: 160px; }
.site-footer__claim { max-width: calc(600 * var(--u)); color: var(--color-white); font-family: var(--font-heading); font-size: calc(24 * var(--u)); line-height: 1.4; font-weight: 400; }
.site-footer__bottom { padding-top: calc(30 * var(--u)); padding-bottom: calc(40 * var(--u)); }
.site-footer__cols { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(30 * var(--u)); }
.site-footer__cols ul { list-style: none; padding: 0; }
.site-footer__cols .h5 { margin-bottom: 4px; }
.site-footer a:hover { color: var(--color-text); }
.site-footer__copy { padding: calc(20 * var(--u)) calc(82 * var(--u)) calc(30 * var(--u)); text-align: right; font-size: calc(var(--fs-tiny) * var(--t)); color: var(--color-muted); }

/* back-to-top */
.back-to-top {
  position: fixed; right: 25px; bottom: 25px; z-index: 40; width: 40px; height: 60px;
  display: flex; align-items: center; justify-content: center; color: var(--color-text);
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 16px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.2; }


/* ==========================================================================
   18. STANDARD PAGES: 404 + search
   ========================================================================== */
.error-page, .search-page { padding-top: calc(60 * var(--u)); padding-bottom: calc(140 * var(--u)); }
.error-page p { margin-top: calc(20 * var(--u)); max-width: calc(700 * var(--u)); }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(20 * var(--u)); list-style: none; padding: 0; margin-top: calc(40 * var(--u)); }
.link-grid a { display: block; padding: calc(28 * var(--u)); background: var(--color-panel); font-family: var(--font-heading); font-size: calc(22 * var(--u)); }
.link-grid a:hover { color: var(--color-white); }
.search-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: calc(30 * var(--u)); }
.search-form input {
  flex: 1 1 280px; height: 51px; padding: 0 16px; border: 1px solid var(--color-text); border-radius: 25px;
  background: none; color: var(--color-white); font: inherit;
}
.search-count { margin-top: calc(30 * var(--u)); }
.search-results { list-style: none; padding: 0; margin-top: calc(20 * var(--u)); }
.search-results li { padding: calc(24 * var(--u)) 0; border-top: 1px solid rgba(175,193,197,.3); }
.search-results h3 { font-size: calc(26 * var(--u)); }
.search-results h3 a { text-decoration: underline; text-underline-offset: 4px; }
.search-results p { margin-top: 8px; }
mark { background: var(--color-text); color: var(--color-bg); padding: 0 2px; }


/* ==========================================================================
   19. SMALL SCREENS  (only layout changes – sizes scale automatically)
   ========================================================================== */
@media (max-width: 900px) {
  .intro-lead, .side-accordion, .contact-info, .image-text, .feature-boxes,
  .site-footer__top, .site-footer__bottom, .site-footer__cols, .link-grid { grid-template-columns: 1fr; }
  .feature-boxes { grid-auto-flow: row; grid-template-rows: none; }
  .site-footer__cols { grid-column: 1; }
  .image-text__image { min-height: 300px; }
  .card { flex-basis: 75vw; }
  .page-hero { min-height: 70vh; }
  .page-hero--small { min-height: 300px; }
  .site-footer__copy { text-align: left; }
}
@media (max-width: 600px) {
  .section, .page-hero, .image-text__text, .contact-info > div { padding-left: 20px; padding-right: 20px; }
  .legal { padding-left: 20px; padding-right: 20px; }
  .card-slider { padding-left: 20px; }
  .site-footer__top, .site-footer__bottom, .site-footer__copy { padding-left: 20px; padding-right: 20px; }
  .lead-text { font-size: 30px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero h2, .page-hero .page-hero__sub { font-size: 22px; }
}


/* ==========================================================================
   BLOCK: accessibility  (copied from 00-toolkit 2026-10-08; Barrierefreiheit – every website, rule 2026-10-08)
   Base (always on): skip link, visible focus frame, reduced motion.
   Accessibility menu (a11y-menu, script scripts/a11y.js): text size,
   contrast (light / dark), underline links, stop animations, more line
   spacing, readable font. Choice is remembered in the browser.
   The menu is an extra – the website itself must already meet WCAG 2.1 AA.
   ========================================================================== */

/* --- long words never push the page sideways (zoom / larger text) ------- */
h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, td, th { overflow-wrap: break-word; }

/* --- reduced motion (device setting or menu) ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* --- menu options ---------------------------------------------------------- */
html.a11y-links a:not(.button):not(.skip-link) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-spacing body, html.a11y-spacing p, html.a11y-spacing li { line-height: 1.9 !important; letter-spacing: .02em; word-spacing: .08em; }
html.a11y-spacing p + p { margin-top: 1.2em; }
html.a11y-font { --font-heading: Verdana, Tahoma, Arial, sans-serif; --font-editor: Verdana, Tahoma, Arial, sans-serif; --font-theme: Verdana, Tahoma, Arial, sans-serif; --font-lead-alt: Verdana, Tahoma, Arial, sans-serif; }

/* contrast light: black on white, CI colors replaced */
html.a11y-contrast-light {
  --color-primary: #000; --color-primary-hover: #333; --color-on-primary: #fff;
  --color-page-bg: #fff; --color-light-bg: #fff; --color-dark-bg: #000;
  --color-heading: #000; --color-text: #000; --color-text-strong: #000;
  --color-nav: #000; --color-nav-active: #000; --color-muted: #000;
  --color-footer-heading: #fff; --color-footer-text: #fff; --color-border: #000;
  --color-tag-bg: #fff; --color-focus: #C00000;
  --article-bg-a: #fff; --article-bg-b: #fff; --article-box-border: #000;
}
/* contrast dark: yellow / white on black */
html.a11y-contrast-dark {
  --color-primary: #FFE600; --color-primary-hover: #fff; --color-on-primary: #000;
  --color-page-bg: #000; --color-light-bg: #000; --color-dark-bg: #000;
  --color-heading: #FFE600; --color-text: #fff; --color-text-strong: #fff;
  --color-nav: #fff; --color-nav-active: #FFE600; --color-muted: #fff;
  --color-footer-heading: #FFE600; --color-footer-text: #fff; --color-border: #fff;
  --color-tag-bg: #000; --color-focus: #00E5FF; --color-on-image: #fff;
  --article-bg-a: #000; --article-bg-b: #000; --article-box-border: #FFE600;
}
html.a11y-contrast-light body, html.a11y-contrast-dark body { background: var(--color-page-bg); color: var(--color-text); }
html.a11y-contrast-dark a:not(.button) { color: #FFE600; }
html.a11y-contrast-light .section, html.a11y-contrast-dark .section,
html.a11y-contrast-light [class*="bg-"], html.a11y-contrast-dark [class*="bg-"] { background-image: none !important; }
html.a11y-contrast-light .post-card__date, html.a11y-contrast-dark .post-card__date,
html.a11y-contrast-dark .tag-list a, html.a11y-contrast-light .tag-list a,
html.a11y-contrast-light .sidebar-search, html.a11y-contrast-dark .sidebar-search { border: 1px solid currentColor; }
/* text on photos keeps a dark plate in both contrast modes */
html.a11y-contrast-light .hero-slider__content, html.a11y-contrast-dark .hero-slider__content,
html.a11y-contrast-light .page-hero h1, html.a11y-contrast-dark .page-hero h1,
html.a11y-contrast-light .page-hero h2, html.a11y-contrast-dark .page-hero h2 { background: rgba(0,0,0,.85); color: #fff; padding: .2em .4em; }

/* --- the menu itself -------------------------------------------------------- */
.a11y-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 1px solid currentColor; border-radius: var(--radius-pill, 999px); background: transparent;
  color: inherit; font-family: var(--font-heading); font-size: 15px; cursor: pointer;
}
.a11y-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.a11y-toggle--floating {
  position: fixed; left: 16px; bottom: 16px; z-index: 900;
  background: #1A5FB4; color: #fff; border-color: #1A5FB4; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.a11y-panel {
  position: fixed; left: 16px; bottom: 76px; z-index: 950;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto;
  padding: 22px; background: #fff; color: #000; border: 2px solid #000; border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 14px; font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 700; color: #000; }
.a11y-panel fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.a11y-panel legend { margin-bottom: 6px; font-weight: 700; }
.a11y-panel .a11y-row { display: flex; gap: 6px; flex-wrap: wrap; }
.a11y-panel button {
  min-height: 44px; padding: 6px 12px; flex: 1 1 auto;
  border: 2px solid #000; border-radius: 6px; background: #fff; color: #000;
  font: inherit; cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] { background: #000; color: #fff; }
.a11y-panel button:focus-visible { outline: 3px solid #1A5FB4; outline-offset: 2px; }
.a11y-panel .a11y-reset { margin-top: 6px; width: 100%; background: #F2F2F2; }
.a11y-panel .a11y-note { margin: 12px 0 0; font-size: 14px; }
.a11y-panel .a11y-note a, html.a11y-contrast-dark .a11y-panel .a11y-note a { color: #1A5FB4; text-decoration: underline; }
.a11y-panel .a11y-close { position: absolute; right: 10px; top: 10px; flex: none; min-height: 40px; width: 40px; padding: 0; border-width: 1px; font-size: 22px; line-height: 1; }
@media print { .a11y-toggle, .a11y-panel, .skip-link { display: none !important; } }


/* project colors in the two contrast modes (variable names of this project) */
html.a11y-contrast-light { --color-bg:#fff;--color-panel:#fff;--color-header:rgba(255,255,255,.97);--color-text:#000;--color-muted:#000;--color-soft:#000;--color-white:#000;--color-button:#fff;--color-overlay:rgba(255,255,255,0);--color-focus:#C00000; }
html.a11y-contrast-dark { --color-bg:#000;--color-panel:#000;--color-header:rgba(0,0,0,.95);--color-text:#fff;--color-muted:#fff;--color-soft:#fff;--color-white:#FFE600;--color-button:#000;--color-focus:#00E5FF; }
