
/* thch-tokens.css */
/* Thermochema Design Tokens */
/* Source: Figma THCH UI/UX Design */
/* Agent-managed, git-tracked — no Oxyblock dependency */

/* === Fonts === */
/* Alle vier Schnitte sind auf die unten gesetzte unicode-range subsettet
   (~63 KB -> ~19 KB je Datei); die ungekuerzten Originale liegen als
   assets/fonts/*.full.woff2 daneben. Zeichen ausserhalb der Range fallen
   bewusst auf system-ui zurueck. */
@font-face {
  font-family: "Aptos";
  src: url("https://www.thermochema.at/wp-content/plugins/thch-project/assets/fonts/Aptos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2264-2265;
}
@font-face {
  font-family: "Aptos";
  src: url("https://www.thermochema.at/wp-content/plugins/thch-project/assets/fonts/Aptos-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2264-2265;
}
@font-face {
  font-family: "Aptos";
  src: url("https://www.thermochema.at/wp-content/plugins/thch-project/assets/fonts/Aptos-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2264-2265;
}
@font-face {
  font-family: "Aptos Display";
  src: url("https://www.thermochema.at/wp-content/plugins/thch-project/assets/fonts/Aptos-Display-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2264-2265;
}

:root {
  /* === Typography === */
  --thch-font-heading: "Aptos Display", "Aptos", "Barlow", system-ui, sans-serif;
  --thch-font-body: "Aptos", "Lato", system-ui, sans-serif;

  /* === Colors === */
  --thch-color-primary: #1D245D;
  --thch-color-primary-dark: #0C0F27;
  --thch-color-secondary: #161B37;
  --thch-color-accent: #0066FF;
  --thch-color-tertiary: #ADA791;      /* Perlbeige 500 — Claim auf Hell, Linien, Rahmen, aktive States */
  --thch-color-tertiary-300: #C8C4B5;  /* Perlbeige hell — Hintergründe / Schrift auf dunklem Grund */
  --thch-color-tertiary-700: #7B7767;  /* Perlbeige dunkel — Schrift auf hellem Grund (Designwert; a11y-Abdunklung auf #605D4D am 07.09. zurueckgenommen, Entscheidung Philipp) */

  /* === Eyebrow / Landmark-Label über Headlines (kanonisch) === */
  --thch-eyebrow-font: var(--thch-font-body, "Aptos", system-ui, sans-serif);
  --thch-eyebrow-size: 1rem;
  --thch-eyebrow-weight: 400;
  --thch-eyebrow-line-height: 1.5rem;   /* 150% */
  --thch-eyebrow-tracking: 0.125rem;
  --thch-eyebrow-gap: 1rem;             /* Abstand zur Headline */
  --thch-color-neutral: #EAECF0;
  --thch-color-black: #171B37;
  --thch-color-white: #FFFFFF;

  /* === HSL components (for opacity/shade variations) === */
  --thch-primary-h: 233;
  --thch-primary-s: 52%;
  --thch-primary-l: 24%;
  --thch-tertiary-h: 47;
  --thch-tertiary-s: 15%;
  --thch-tertiary-l: 62%;
  --thch-accent-h: 216;
  --thch-accent-s: 100%;
  --thch-accent-l: 50%;

  /* === Typography Scale ===
     Headings: fluid clamp (rem + vw), viewport 320px–1240px
     Body text: flat rem (fluid adds no value at this range)
     All ratios ≤ 2.5x → WCAG SC 1.4.4 safe */
  --thch-h1: clamp(1.8rem, 1.2087rem + 2.957vw, 3.5rem);
  --thch-h2: clamp(1.5rem, 1.1737rem + 1.631vw, 2.438rem);
  --thch-h3: clamp(1.25rem, 1.0109rem + 1.196vw, 1.9375rem);
  --thch-h4: clamp(1.125rem, 1.0815rem + 0.217vw, 1.25rem);
  --thch-text-2xl: 1.875rem;
  --thch-text-xl: 1.5rem;
  --thch-text-lg: 1.25rem;
  --thch-text-base: 1.125rem;

  /* === Spacing Scale ===
     Fluid clamp (rem + vw), viewport 320px–1240px */
  --thch-space-xs: clamp(0.5rem, 0.413rem + 0.435vw, 0.75rem);
  --thch-space-sm: clamp(0.8rem, 0.6435rem + 0.783vw, 1.25rem);
  --thch-space-md: clamp(0.8rem, 0.7304rem + 0.348vw, 1rem);
  --thch-space-lg: clamp(1rem, 0.8261rem + 0.87vw, 1.5rem);
  --thch-space-xl: clamp(1.2rem, 0.7478rem + 2.261vw, 2.5rem);
  --thch-space-2xl: clamp(1.4rem, 1.1913rem + 1.043vw, 2rem);
  --thch-space-3xl: clamp(1.6rem, 1.113rem + 2.435vw, 3rem);
  --thch-space-4xl: clamp(1.8rem, 1.0348rem + 3.826vw, 4rem);
  --thch-space-5xl: clamp(2rem, 0.9565rem + 5.217vw, 5rem);
  --thch-space-6xl: clamp(3rem, 1.2609rem + 8.696vw, 8rem);

  /* === Layout === */
  --thch-content-width: 77.5rem; /* 1240px */
  --thch-gutter: 2rem;
  --thch-container-width: calc(var(--thch-content-width) + var(--thch-gutter) * 2);
}

/* === Responsive token overrides (tablet/mobile) === */
@media (max-width: 48rem) {
  :root {
    --thch-text-2xl: 1.5rem;    /* 30→24px */
    --thch-text-xl: 1.25rem;    /* 24→20px */
    --thch-text-lg: 1.125rem;   /* 20→18px */
    --thch-text-base: 1rem;     /* 18→16px */
    --thch-gutter: 1.25rem;     /* 32→20px */
  }
}

/* thch-base.css */
/* Thermochema Base Styles */
/* Reset, typography, global defaults */
/* Agent-managed, git-tracked */

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === Typography === */
body {
  font-family: var(--thch-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--thch-color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--thch-font-heading);
  font-weight: 700;
  color: var(--thch-color-primary);
  margin: 0;
}

a {
  color: var(--thch-color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:not(.thch-toolbox__contact-card):not(.thch-toolbox__result-pill--primary):not(.thch-btn--primary):not(.thch-btn--footer-cta):not(.thch-breadcrumb__link):not(.thch-search-results__pill):not(.thch-search-results__icon-btn):not(.thch-header__toolbox):not(.thch-header__wordmark):not(.thch-icon-cards__card):not(.wp-block-button__link):hover {
  color: hsl(var(--thch-accent-h), var(--thch-accent-s), 42%);
}
a:focus-visible {
  outline: 0.125rem solid var(--thch-color-accent);
  outline-offset: 0.125rem;
}

/* === Container (override Etch default) === */
[data-etch-element="container"] {
  max-inline-size: var(--thch-container-width) !important;
  padding-inline: var(--thch-gutter);
}

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

/* === E8 — Tap-Targets >= 44px auf Mobile (nur unterhalb 40rem) === */
@media (max-width: 40rem) {
  .thch-header__topbar { height: 2.75rem; }

  .thch-header__wordmark,
  .thch-header__toolbox {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .thch-header__search,
  .thch-header__hamburger {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Footer-/Breadcrumb-Links: Tap-Fläche auf 44px, ohne den sichtbaren Zeilenrhythmus zu
     strecken — Padding wächst, negatives Margin gleicht es im Layout wieder aus. */
  /* Buttons (.thch-btn) ausgenommen: inline-flex mit Pfeil-Span, als inline-block
     bricht der Pfeil in die naechste Zeile (ClickUp 86cbetv41). */
  /* Das TUEV-Siegel ist als Link schon 100x100 gross und braucht kein Tap-Padding
     (das wuerde die Siegel-Box um 20px strecken). */
  .thch-footer a:not(.thch-btn):not(.thch-footer__badge-link),
  .thch-breadcrumb a {
    display: inline-block;
    padding-block: 0.625rem;
    margin-block: -0.625rem;
  }
  .thch-regionen__chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* === N5 — Inline-Links im Fliesstext (Rechtstexte) unterstreichen === */
.thch-content__body a:not(.thch-btn),
.thch-cta__body a:not(.thch-btn) {
  text-decoration: underline;
}

/* === E1 — Screenreader-only Utility (auch ausserhalb is_singular verfuegbar) === */
.thch-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* thch-blocks.css */
/* Thermochema Block/Section Styles */
/* BEM naming, desktop-first, flex-first */
/* Agent-managed, git-tracked */

/* === Header === */
/* Nested sticky: outer header scrolls logo+navbar away, topbar sticks at top:0 */

header[data-etch-element="section"],
.thch-header {
  position: sticky;
  top: calc(-1 * var(--sticky-scroll-away, 0px));
  width: 100%;
  z-index: 100;
  background: var(--thch-color-white);
  box-shadow: 0 2rem 4rem rgba(23, 23, 23, 0.1), 0 0 0.0625rem rgba(23, 23, 23, 0.05);
  overflow-x: clip; /* prevent horizontal scroll from navbar 100vw breakout */
}

/* WP admin bar offset */
.admin-bar .thch-header { top: calc(-1 * var(--sticky-scroll-away, 0px) + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .thch-header { top: calc(-1 * var(--sticky-scroll-away, 0px) + 46px); }
}

/* -- Topbar (inner sticky — sticks at top when logo+navbar scroll away) -- */
.thch-header__topbar {
  position: sticky;
  top: 0;
  z-index: 101;
  width: 100%;
  height: 2.5rem;
  background: var(--thch-color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(var(--thch-gutter), calc((100% - var(--thch-container-width)) / 2 + var(--thch-gutter)));
}

.admin-bar .thch-header__topbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .thch-header__topbar { top: 46px; }
}

.thch-header__wordmark {
  display: flex;
  align-items: center;
  font-family: var(--thch-font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--thch-color-white);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.25s, color 0.2s;
}
.thch-header__wordmark.is-visible {
  opacity: 1;
}
.thch-header__wordmark:hover {
  color: var(--thch-color-tertiary, #ADA791);
}

.thch-header__toolbox {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--thch-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--thch-color-white);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.thch-header__toolbox svg {
  display: block;
}
.thch-header__toolbox:hover {
  color: var(--thch-color-tertiary, #ADA791);
}

.thch-header__search {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--thch-color-white);
  padding: 0.5rem;
  transition: color 0.2s;
  margin-left: 1rem;
}
.thch-header__search:hover {
  color: var(--thch-color-tertiary, #ADA791);
}
.thch-header__search svg {
  display: block;
}
.thch-header__search-word {
  font-family: var(--thch-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

/* Toolbox nav item exists only in the mobile burger menu.
   .thch-nav__list prefix: single class would tie with the later
   `.thch-nav__item { display:flex }` rule and lose on order. */
.thch-nav__list .thch-nav__item--toolbox {
  display: none;
}

/* -- Search panel (slide-down HUD) -- */
.thch-header__search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--thch-color-white);
  border-top: 1px solid var(--thch-color-neutral);
  box-shadow: 0 12px 32px rgba(23, 27, 55, 0.08);
  transform: translateY(-0.5rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  z-index: 10;
}
.thch-header.is-search-open .thch-header__search-panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.thch-header__search-form {
  max-width: var(--thch-container-width);
  margin: 0 auto;
  padding: 1.25rem var(--thch-gutter);
}
.thch-header__search-label {
  display: block;
  font-family: var(--thch-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thch-color-primary);
  margin-bottom: 0.5rem;
}
.thch-header__search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid var(--thch-color-neutral);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  transition: border-color 0.2s;
}
.thch-header__search-field:focus-within {
  border-color: var(--thch-color-accent);
}
.thch-header__search-field-icon {
  flex-shrink: 0;
  color: var(--thch-color-primary);
}
.thch-header__search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--thch-font-body, "Aptos", sans-serif);
  font-size: var(--thch-text-base);
  color: var(--thch-color-primary);
  padding: 0.5rem 0;
  min-width: 0;
}
.thch-header__search-input::placeholder {
  color: rgba(23, 27, 55, 0.5);
}
.thch-header__search-submit {
  flex-shrink: 0;
}
.thch-header__search-close {
  flex-shrink: 0;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--thch-color-primary);
  border-radius: 999px;
  transition: background-color 0.2s;
}
.thch-header__search-close:hover {
  background: var(--thch-color-neutral);
}

@media (max-width: 48rem) {
  .thch-header__search-word {
    display: none;
  }
  .thch-header__search-form {
    padding-block: 1rem;
  }
  .thch-header__search-submit {
    display: none;
  }
  .thch-header__search-input {
    font-size: 1rem;
  }
}

/* -- Content area (logo + navbar) -- */
.thch-header__content,
header[data-etch-element="section"] > [data-etch-element="container"] {
  width: 100%;
  max-width: var(--thch-container-width);
  margin: 0 auto;
  padding: 3rem var(--thch-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: visible;
}

/* Navbar breaks out of container to span full viewport width.
   Classic CSS breakout: margin-left: calc(50% - 50vw) shifts left by the
   difference between container center and viewport center.
   Must override padding-inline: the base rule uses 100% which resolves to the
   container width (containing block), not the navbar's rendered 100vw. */
header[data-etch-element="section"] > [data-etch-element="container"] > .thch-header__navbar {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: max(var(--thch-gutter), calc((100vw - var(--thch-container-width)) / 2 + var(--thch-gutter)));
}

/* -- Logo -- */
.thch-header__logo {
  display: flex;
}
.thch-header__logo-img {
  width: 16.9375rem;
  height: auto;
  aspect-ratio: 271 / 70;
  display: block;
}

/* -- Navbar (inner sticky — sticks below topbar) -- */
.thch-header__navbar {
  position: sticky;
  top: 2.5rem;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem max(var(--thch-gutter), calc((100% - var(--thch-container-width)) / 2 + var(--thch-gutter)));
  background: var(--thch-color-white);
  border-bottom: 0.0625rem solid var(--thch-color-tertiary);
}

.admin-bar .thch-header__navbar { top: calc(2.5rem + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .thch-header__navbar { top: calc(2.5rem + 46px); }
}

.thch-nav__list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.thch-nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--thch-font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--thch-color-primary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.thch-nav__link:hover,
.is-current > .thch-nav__link,
.is-ancestor > .thch-nav__link {
  color: var(--thch-color-accent);
}

/* -- Nav item (dropdown parent) -- */
.thch-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.thch-nav__chevron {
  display: inline-block;
  width: 0.5625rem;
  height: 0.3125rem;
  margin-left: 0.25rem;
  background: var(--thch-color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' viewBox='0 0 9 5' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.146447 0.146446C0.341709 -0.0488157 0.658291 -0.0488157 0.853553 0.146446L4.5 3.79289L8.14645 0.146446C8.34171 -0.0488157 8.65829 -0.0488157 8.85355 0.146446C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L4.85355 4.85355C4.65829 5.04882 4.34171 5.04882 4.14645 4.85355L0.146447 0.853553C-0.0488155 0.658291 -0.0488155 0.341709 0.146447 0.146446Z' fill='black'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' viewBox='0 0 9 5' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.146447 0.146446C0.341709 -0.0488157 0.658291 -0.0488157 0.853553 0.146446L4.5 3.79289L8.14645 0.146446C8.34171 -0.0488157 8.65829 -0.0488157 8.85355 0.146446C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L4.85355 4.85355C4.65829 5.04882 4.34171 5.04882 4.14645 4.85355L0.146447 0.853553C-0.0488155 0.658291 -0.0488155 0.341709 0.146447 0.146446Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.thch-nav__item:hover > .thch-nav__chevron,
.is-current > .thch-nav__chevron,
.is-ancestor > .thch-nav__chevron {
  background: var(--thch-color-accent);
}
.thch-nav__item:hover > .thch-nav__chevron {
  transform: rotate(180deg);
}

/* -- Submenu (dropdown) -- */
.thch-nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 14rem;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  background: var(--thch-color-white);
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.thch-nav__item:hover > .thch-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.thch-nav__submenu-link {
  display: block;
  padding: 0.5rem 1.25rem;
  font-family: var(--thch-font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--thch-color-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.thch-nav__submenu-link:hover,
.is-current > .thch-nav__submenu-link {
  background: var(--thch-color-neutral-light, #f5f5f5);
  color: var(--thch-color-accent);
}

/* -- Hamburger (mobile, lives in topbar) -- */
.thch-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.thch-header__hamburger-line {
  display: block;
  width: 100%;
  height: 0.125rem;
  background: var(--thch-color-white);
  border-radius: 0.0625rem;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger → X animation */
.is-menu-open .thch-header__hamburger-line:nth-child(1) {
  transform: translateY(0.4375rem) rotate(45deg);
}
.is-menu-open .thch-header__hamburger-line:nth-child(2) {
  opacity: 0;
}
.is-menu-open .thch-header__hamburger-line:nth-child(3) {
  transform: translateY(-0.4375rem) rotate(-45deg);
}

/* === Buttons (Figma: "Button / Light" component set) === */
.thch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--thch-font-heading);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 1.875rem;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
}
.thch-btn--primary {
  background: var(--thch-color-primary);
  color: var(--thch-color-neutral);
}
.thch-btn--primary:hover {
  background: #161B37;
  color: var(--thch-color-neutral);
}
.thch-btn--secondary,
.thch-btn--secondary:hover {
  background: var(--thch-color-neutral);
  color: var(--thch-color-primary);
}
.thch-btn--accent,
.thch-btn--accent:hover {
  background: var(--thch-color-accent);
  color: var(--thch-color-white);
}
.thch-btn--lg {
  padding: 0.625rem 1.5rem;
  font-size: var(--thch-text-base);
  font-weight: 700;
}
@media (max-width: 48rem) {
  .thch-btn { white-space: normal; }
}
.thch-btn--arrow::after {
  content: '';
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}
.thch-btn:focus-visible {
  outline: 0.125rem solid var(--thch-color-accent);
  outline-offset: 0.125rem;
}

/* === Mobile (≤ 62rem / 992px) === */
@media (max-width: 62rem) {
  /* Hide large logo, show wordmark always */
  .thch-header__content,
  header[data-etch-element="section"] > [data-etch-element="container"] {
    display: none;
  }

  .thch-header__wordmark {
    opacity: 1;
  }

  .thch-header__hamburger {
    display: flex;
  }

  /* Toolbox: topbar link hidden, burger menu entry shown instead */
  .thch-header__toolbox {
    display: none;
  }
  .thch-nav__list .thch-nav__item--toolbox {
    display: block;
  }
  .thch-header__search {
    margin-left: auto;
  }

  .thch-header__navbar {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 1.5rem;
    padding-top: 0;
  }

  /* Show the Etch container when menu is open (hidden by default on mobile) */
  header[data-etch-element="section"].is-menu-open > [data-etch-element="container"] {
    display: block;
  }

  /* Mobile menu: fixed overlay below topbar so it's visible even when scrolled */
  .is-menu-open .thch-header__navbar {
    display: flex;
    position: fixed;
    /* Unterkante der Topbar, per JS gemessen (Banner/Admin-Bar), Fallback 2.5rem */
    top: var(--thch-menu-top, 2.5rem);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--thch-color-white);
    padding: 1rem var(--thch-gutter) 1.5rem;
    overflow-y: auto;
  }
  .admin-bar .is-menu-open .thch-header__navbar { top: var(--thch-menu-top, calc(2.5rem + 32px)); }
  @media screen and (max-width: 782px) {
    .admin-bar .is-menu-open .thch-header__navbar { top: var(--thch-menu-top, calc(2.5rem + 46px)); }
  }

  .thch-nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .thch-nav__item {
    position: static;
    width: 100%;
    display: block;
  }

  .thch-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 0.0625rem solid var(--thch-color-neutral);
    width: 100%;
    font-size: 1.0625rem;
  }

  /* Tap target wraps the link + chevron area */
  .thch-nav__item.has-children > .thch-nav__link::after {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.4375rem;
    margin-left: auto;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' viewBox='0 0 9 5' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.146447 0.146446C0.341709 -0.0488157 0.658291 -0.0488157 0.853553 0.146446L4.5 3.79289L8.14645 0.146446C8.34171 -0.0488157 8.65829 -0.0488157 8.85355 0.146446C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L4.85355 4.85355C4.65829 5.04882 4.34171 5.04882 4.14645 4.85355L0.146447 0.853553C-0.0488155 0.658291 -0.0488155 0.341709 0.146447 0.146446Z' fill='black'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' viewBox='0 0 9 5' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.146447 0.146446C0.341709 -0.0488157 0.658291 -0.0488157 0.853553 0.146446L4.5 3.79289L8.14645 0.146446C8.34171 -0.0488157 8.65829 -0.0488157 8.85355 0.146446C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L4.85355 4.85355C4.65829 5.04882 4.34171 5.04882 4.14645 4.85355L0.146447 0.853553C-0.0488155 0.658291 -0.0488155 0.341709 0.146447 0.146446Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    transition: transform 0.25s;
    flex-shrink: 0;
  }
  .thch-nav__item.is-open > .thch-nav__link::after {
    transform: rotate(180deg);
  }

  /* Hide the original standalone chevron span on mobile — use ::after on the link instead */
  .thch-nav__chevron {
    display: none;
  }

  .thch-nav__submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .thch-nav__item.is-open > .thch-nav__submenu {
    max-height: 40rem;
  }

  .thch-nav__submenu-item {
    width: 100%;
  }

  .thch-nav__submenu-link {
    display: block;
    padding: 0.875rem 1.25rem;
    border-bottom: 0.0625rem solid var(--thch-color-neutral);
    font-size: 0.9375rem;
    width: 100%;
  }
  .thch-nav__submenu-item:last-child .thch-nav__submenu-link {
    border-bottom: 0;
  }

  .thch-header__navbar .thch-btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

}

/* Lock body scroll when mobile menu is open */
body.thch-menu-open {
  overflow: hidden;
}

/* === Small mobile (≤ 30rem / 480px) === */
@media (max-width: 30rem) {
  .thch-header__logo-img {
    width: 10rem;
  }
  .thch-header__content,
  header[data-etch-element="section"] > [data-etch-element="container"] {
    padding: 1.5rem var(--thch-gutter) 1rem;
    gap: 1rem;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.thch-footer {
  /* Am selben Token wie die Sections. 3.75rem standen sonst gegen 6rem
     Section-Abstand, der Footer wirkte dadurch angeklebt statt abgesetzt.
     Faellt mobil automatisch auf 4rem mit. */
  padding-top: var(--thch-section-py, 3.75rem);
  background: var(--thch-color-white);
  color: var(--thch-color-primary);
  font-family: var(--thch-font-body);
}

.thch-footer a {
  color: var(--thch-color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.thch-footer a:hover {
  color: var(--thch-color-accent);
}

/* -- Footer CTA Banner -- */
.thch-footer-cta {
  max-width: var(--thch-container-width);
  margin: 0 auto;
  padding-inline: var(--thch-gutter);
}
.thch-footer-cta__inner.thch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem; /* vorher 3.4375rem, Wunsch Philipp 07.09. */
  position: relative;
  z-index: 1;
  background: linear-gradient(95deg, #171B37 0%, #06F 100%);
  border-radius: 1.5rem;
  overflow: hidden;
}
.thch-footer-cta__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.thch-footer-cta__title {
  font-family: var(--thch-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--thch-color-white);
  margin: 0;
  line-height: 1.11;
  white-space: pre-line;
}
.thch-footer-cta__subtitle {
  font-size: 0.9375rem;
  color: var(--thch-color-tertiary-300, #C8C4B5);
  margin: 0;
  font-family: var(--thch-font-body);
}
/* CTA image (toolbox) — centered between text and button */
.thch-footer-cta__image {
  flex-shrink: 0;
}
.thch-footer-cta__img {
  height: 10rem;
  width: auto;
  display: block;
}
.thch-footer-cta .thch-btn--footer-cta {
  background: var(--thch-color-primary);
  color: var(--thch-color-neutral);
  gap: 0.5rem;
  flex-shrink: 0;
}
.thch-footer-cta .thch-btn--footer-cta:hover {
  background: #161B37;
  color: var(--thch-color-neutral);
}
.thch-btn__arrow {
  font-size: 1.25rem;
  line-height: 1;
}

/* CSS-masked arrow icon — inherits button color.
   Greift auf .thch-btn__arrow selbst, nicht nur unter .thch-btn--with-arrow:
   der span wird im Markup ausgegeben (leer, aria-hidden), die Modifier-Klasse
   fehlte aber an mehreren Buttons - etwa "Zum Shop" im Header und der
   Footer-CTA. Ergebnis war ein leerer span ohne sichtbaren Pfeil, obwohl er
   im Design steht. Ein leerer aria-hidden-span hat keinen anderen Zweck als
   dieses Icon, deshalb ist die Basisregel die richtige Ebene. */
.thch-btn__arrow,
.thch-btn--with-arrow .thch-btn__arrow {
  display: inline-block;
  width: 1rem;
  height: 0.625rem;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='black'%3E%3Cpath d='M15.707 5.707a1 1 0 0 0 0-1.414L11.05.636a1 1 0 1 0-1.415 1.414L13.293 5l-3.658 3.657a1 1 0 0 0 1.415 1.414l4.657-4.657zM0 6h15V4H0v2z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='black'%3E%3Cpath d='M15.707 5.707a1 1 0 0 0 0-1.414L11.05.636a1 1 0 1 0-1.415 1.414L13.293 5l-3.658 3.657a1 1 0 0 0 1.415 1.414l4.657-4.657zM0 6h15V4H0v2z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  font-size: 0;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.thch-btn:hover .thch-btn__arrow,
.thch-btn--with-arrow:hover .thch-btn__arrow {
  transform: translateX(0.25rem);
}

/* -- Footer Upper (logo + link columns) -- */
.thch-footer__upper {
  padding: 4rem 0 2.5rem;
}
.thch-footer__upper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.thch-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.thch-footer__logo-img {
  /* Lockup inkl. Claim als eine SVG (logo-claim.svg, Edith 07.09.), Seitenverhältnis 335:131 */
  width: 14rem;
  height: auto;
  aspect-ratio: 335.3 / 131;
}
.thch-footer__tagline {
  /* Claim steckt jetzt im Logo-SVG; der Text bleibt im Etch-Component (Screenreader
     bekommen ihn ueber den SVG-Titel), wird aber nicht mehr gerendert. */
  display: none;
}
.thch-footer__nav-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.thch-footer__col {
  display: flex;
  flex-direction: column;
}
.thch-footer__heading {
  font-family: var(--thch-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--thch-color-accent);
  margin: 0 0 0.75rem;
}
.thch-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.thch-footer__link {
  font-size: 0.9375rem;
}

/* -- Footer Middle (contact + newsletter) -- */
.thch-footer__middle {
  padding: 2rem 0;
}
.thch-footer__middle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.thch-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.thch-footer__address {
  font-size: 0.875rem;
  color: rgba(29, 36, 93, 0.7);
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
}
.thch-footer__contact-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.thch-footer__phone,
.thch-footer__email {
  font-family: var(--thch-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--thch-color-primary);
  line-height: 1.3;
}
.thch-footer__hours {
  font-size: 0.875rem;
  color: rgba(29, 36, 93, 0.7);
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
}

/* Newsletter box */
.thch-footer__newsletter {
  background: #C8C4B5;
  border-radius: var(--thch-space-lg);
  padding: 2rem;
}
.thch-footer__newsletter-heading {
  font-family: var(--thch-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--thch-color-primary);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.thch-footer__newsletter-heading svg {
  display: none;
}
/* Newsletter send icon */
.thch-footer__newsletter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thch-footer__newsletter-icon::before {
  content: '';
  display: block;
  width: 3rem;
  height: 3rem;
  background: url('/wp-content/plugins/thch-project/assets/img/send-diagonal.svg') no-repeat center / contain;
}
.thch-footer__newsletter-form {
  display: flex;
  gap: 0.75rem;
}
.thch-footer__newsletter-input {
  font-family: var(--thch-font-body);
  /* 1rem ist Pflicht, nicht Geschmack: unter 16px zoomt iOS beim Fokus
     automatisch in die Seite hinein und der Nutzer sitzt danach in einer
     verschobenen Ansicht. */
  font-size: 1rem;
  padding: 0;
  padding-inline: 1rem;
  /* 3rem = 48px. Apple empfiehlt 44pt, Material 48dp - fuer ein Feld, das
     man mit dem Daumen trifft und in das getippt wird, ist 48 der bessere
     der beiden Werte.

     min-height statt height: das Feld ist Flex-Item mit `flex: 1`, und das
     setzt flex-basis auf 0%. Klappt die Form auf Mobil in eine Spalte um,
     ist die Hauptachse vertikal - dort schlaegt flex-basis die height, und
     das Feld fiel auf seine Zeilenhoehe von 24px zusammen. min-height
     gewinnt gegen den Flex-Algorithmus. */
  min-height: 3rem;
  border: 2px solid var(--thch-color-neutral);
  border-radius: 0;
  background: var(--thch-color-white);
  color: var(--thch-color-primary);
  flex: 1;
  min-width: 0;
  transition: border-color 0.2s;
}
/* Der Button daneben zieht mit, sonst stehen Feld und Schaltflaeche auf
   verschiedenen Hoehen und die Zeile wirkt schief. */
.thch-footer__newsletter-form .thch-btn,
.thch-footer__newsletter-form button,
.thch-footer__newsletter-form input[type="submit"] {
  min-height: 3rem;
}

.thch-footer__newsletter-input::placeholder {
  color: rgba(23, 27, 55, 0.8);
  font-family: var(--thch-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}
.thch-footer__newsletter-input:focus {
  outline: none;
  border-color: var(--thch-color-tertiary, #ADA791);
  box-shadow: 0 0 0 2px rgba(173, 167, 145, 0.25);
}

/* Right column wrapper (newsletter + YouTube) */
.thch-footer__right-col {
  display: flex;
  flex-direction: column;
}

/* TUEV-Siegel (includes/footer-badge.php): rechts neben dem Newsletter, Icons darunter */
.thch-footer__badge {
  width: 6.25rem;
  justify-self: end;
}
.thch-footer__badge img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}
/* Siegel verlinkt auf das aktuelle TUEV-Zertifikat (Einstellungen > Seite). */
.thch-footer__badge-link {
  display: block;
  border-radius: 0.25rem;
}
.thch-footer__badge-link:focus-visible {
  outline: 2px solid var(--thch-color-accent);
  outline-offset: 3px;
}
@media (max-width: 62rem) {
  .thch-footer__badge { align-self: center; margin-top: 1.5rem; }
}
@media (min-width: 62.0625rem) and (max-width: 74.9375rem) {
  /* Rechte Spalte ist hier Flex-Column (Newsletter, Siegel, Icons): Siegel
     rechtsbuendig ueber den Icons, mit gleichem Abstand wie die Icon-Reihe. */
  .thch-footer__badge { align-self: flex-end; margin-top: 1.5rem; }
  .thch-footer__youtube { padding-top: 1rem; }
}
@media (min-width: 75rem) {
  /* Zweizeilige rechte Spalte: Siegel oben, Social-Icons darunter (footer-social.css
     macht .thch-footer__right-col zu display:contents, daher Grid-Areas hier). */
  .thch-footer__middle-grid { grid-template-rows: auto auto; row-gap: 1rem; }
  .thch-footer__contact, .thch-footer__newsletter { grid-row: 1 / 3; }
  .thch-footer__badge { grid-column: 3; grid-row: 1; }
  .thch-footer__youtube { grid-column: 3; grid-row: 2; align-self: start; }
}

/* YouTube channel link */
.thch-footer__youtube {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--thch-color-primary);
}
.thch-footer a.thch-footer__youtube-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--thch-color-primary);
  color: var(--thch-color-white);
  transition: background 0.2s;
}
.thch-footer a.thch-footer__youtube-icon:hover {
  background: var(--thch-color-accent);
  color: var(--thch-color-white);
}
.thch-footer__youtube-icon::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background: url('/wp-content/plugins/thch-project/assets/img/youtube.svg') no-repeat center / contain;
}

/* Social icons next to the YouTube icon (Facebook, Instagram) — same circle style */
.thch-footer a.thch-footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--thch-color-primary);
  color: var(--thch-color-white);
  transition: background 0.2s;
}
.thch-footer a.thch-footer__social-icon:hover { background: var(--thch-color-accent); }
.thch-footer__social-icon::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background: no-repeat center / contain;
}
.thch-footer__social-icon--facebook::before  { background-image: url('/wp-content/plugins/thch-project/assets/img/facebook.svg'); }
.thch-footer__social-icon--instagram::before { background-image: url('/wp-content/plugins/thch-project/assets/img/instagram.svg'); }
.thch-footer__social-icon--linkedin::before  { background-image: url('/wp-content/plugins/thch-project/assets/img/linkedin.svg'); }
.thch-footer__youtube { flex-wrap: wrap; }

/* -- Footer Bottom (copyright) -- */
.thch-footer__bottom {
  background: var(--thch-color-primary);
  padding: 1rem 0;
}
.thch-footer__bottom-inner {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.thch-footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* -- Made-by credit (schwarze Logos → per Filter weiß auf dunkler Bar) -- */
.thch-footer__made {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}
.thch-footer__made a {
  display: inline-flex;
  align-items: center;
}
.thch-footer__made img {
  height: 1.125rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.thch-footer__made a:hover img {
  opacity: 1;
}

/* -- Footer responsive -- */
@media (max-width: 62rem) {
  .thch-footer__upper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .thch-footer__middle-grid {
    grid-template-columns: 1fr;
  }
  .thch-footer__newsletter-form {
    flex-direction: column;
  }
  .thch-footer-cta__inner.thch-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding-inline: 1.5rem;
  }
}

@media (max-width: 48rem) {
  .thch-footer__upper-grid {
    grid-template-columns: 1fr;
  }
  .thch-footer__nav-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .thch-footer__phone,
  .thch-footer__email {
    font-size: 1.375rem;
  }
  .thch-footer__bottom-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* === Kurs Single Page === */

/* Hero section: padding + two-column grid */
.single-thch_kurs #main > section:first-child {
  padding: 4rem 0 3rem;
}

.single-thch_kurs #main > section:first-child > .thch-container > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Overline label */
.single-thch_kurs #main > section:first-child > .thch-container > div > div:first-child > p:first-child {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(29, 36, 93, 0.6);
  margin: 0 0 0.5rem;
}

/* Title */
.single-thch_kurs #main > section:first-child h1 {
  font-family: var(--thch-font-heading, 'Aptos', system-ui, sans-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--thch-color-primary, #1D245D);
  margin: 0 0 1.5rem;
}

/* Details text */
.single-thch_kurs #main > section:first-child > .thch-container > div > div:first-child > div {
  font-family: var(--thch-font-body, 'Aptos', system-ui, sans-serif);
  font-size: var(--thch-text-base, 1.125rem);
  line-height: 1.55;
  color: rgba(23, 27, 55, 0.8);
  white-space: pre-line;
}

/* Hero image */
.single-thch_kurs #main > section:first-child img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 1.25rem;
  display: block;
}

/* Body content section */
.single-thch_kurs #main > section:nth-child(2) {
  padding: 0 0 4rem;
}

.single-thch_kurs #main > section:nth-child(2) > .thch-container > div {
  max-width: 48rem;
  font-family: var(--thch-font-body, 'Aptos', system-ui, sans-serif);
  font-size: var(--thch-text-base, 1.125rem);
  line-height: 1.55;
  color: rgba(23, 27, 55, 0.8);
}

.single-thch_kurs #main > section:nth-child(2) p {
  margin: 0 0 1rem;
}

.single-thch_kurs #main > section:nth-child(2) p:last-child {
  margin-bottom: 0;
}

/* Form section (rendered via wp_footer hook) */
.thch-kurs-single__form {
  padding: 4rem 0 6rem;
  background: var(--thch-color-bg-light, #F8F9FC);
}

.thch-kurs-single__form-wrapper {
  max-width: 40rem;
}

.thch-kurs-single__form-title {
  font-family: var(--thch-font-heading, 'Aptos', system-ui, sans-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--thch-color-primary, #1D245D);
  margin: 0 0 2rem;
}

@media (max-width: 48rem) {
  .single-thch_kurs #main > section:first-child {
    padding: 2.5rem 0 2rem;
  }

  .single-thch_kurs #main > section:first-child > .thch-container > div {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .single-thch_kurs #main > section:first-child > .thch-container > div > div:last-child {
    order: -1;
  }

  .single-thch_kurs #main > section:first-child h1 {
    font-size: 1.75rem;
  }
}
