/* =============================================================================
   DESIGN SYSTEM
   Tokens, fonts, and shared components.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. FONTS
   ----------------------------------------------------------------------------- */

@font-face {
  font-family: "Zalando Sans";
  src:
    url("../fonts/zalando-sans/ZalandoSans-VF.woff2") format("woff2-variations"),
    url("../fonts/zalando-sans/ZalandoSans-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: oblique -10deg 0deg;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans/DMSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans/DMSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans/DMSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -----------------------------------------------------------------------------
   2. DESIGN TOKENS
   ----------------------------------------------------------------------------- */

:root {
  /* Brand primary */
  --brand-primary: #e3450f;
  --brand-dark: #212121;
  --brand-white: #ffffff;

  /* Orange scale */
  --orange-dark: #b3370d;
  --orange-500: #e3450f;
  --orange-400: #e5501e;
  --orange-300: #e8663a;
  --orange-200: #eb7c56;
  --orange-100: #f2a78f;

  /* Gray scale */
  --gray-950: #17242b;
  --gray-900: #212121;
  --gray-700: #3b3b3b;
  --gray-600: #555555;
  --gray-500: #626262;
  --gray-400: #7c7c7c;
  --gray-300: #a4a4a4;
  --gray-200: #d6d6d6;
  --gray-100: #ececec;
  --gray-050: #f6f5f3;

  /* Semantic surfaces */
  --surface-deep: var(--gray-950);
  --surface-dark: var(--gray-900);
  --surface-mid: var(--gray-700);
  --surface-light: var(--gray-050);
  --surface-white: var(--brand-white);

  /* Text */
  --text-on-dark: #f1ece6;
  --text-on-dark-mut: #a4a4a4;
  --text-on-light: var(--gray-900);
  --text-on-light-mut: var(--gray-500);
  --text-accent: var(--orange-500);

  /* Lines */
  --line-on-dark: rgba(255, 255, 255, 0.08);
  --line-on-dark-str: rgba(255, 255, 255, 0.18);
  --line-on-light: rgba(33, 33, 33, 0.1);
  --line-on-light-str: rgba(33, 33, 33, 0.22);

  /* Typography */
  --font-display: "Zalando Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Type scale (fluid) */
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.81rem + 0.16vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.36vw, 1.4rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.62vw, 1.78rem);
  --step-3: clamp(1.73rem, 1.53rem + 1.02vw, 2.3rem);
  --step-4: clamp(2.07rem, 1.74rem + 1.66vw, 3rem);
  --step-5: clamp(2.49rem, 1.96rem + 2.66vw, 4rem);
  --step-6: clamp(3rem, 2.18rem + 4.1vw, 5.4rem);
  --step-7: clamp(3.6rem, 2.36rem + 6.2vw, 7.2rem);

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --space-3xl: 7.5rem;
  --space-4xl: 10rem;
  --space-5xl: 13rem;

  /* Section padding (vertical) */
  --section-pad-y: clamp(4rem, 3rem + 5vw, 8rem);
  --section-pad-y-lg: clamp(6rem, 4rem + 8vw, 12rem);
  --section-pad-x: clamp(1.25rem, 0.6rem + 3vw, 3rem);

  /* Container */
  --container-max: 90rem; /* 1440px */
  --container-narrow: 64rem; /* 1024px */
  --container-text: 46rem; /*  736px */

  /* Radii */
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.04), 0 24px 60px -28px rgba(23, 36, 43, 0.55);
  --shadow-card-h: 0 1px 0 rgba(0, 0, 0, 0.06), 0 36px 80px -32px rgba(23, 36, 43, 0.7);
  --shadow-cta: 0 18px 48px -16px rgba(227, 69, 15, 0.55);
  --shadow-glow: 0 0 0 1px rgba(227, 69, 15, 0.4), 0 0 60px -10px rgba(227, 69, 15, 0.55);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0.06, 0.68, 0.19);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;
  --dur-slower: 1100ms;

  /* Layout grid */
  --grid-gap: clamp(1rem, 0.5rem + 1vw, 2rem);

  /* Z-index */
  --z-header: 1000;
  --z-overlay: 1100;
  --z-modal: 300;
  --z-toast: 400;

  /* CTA label (overridable via inline style) */
  --theme-notruf: "24/7 NOTRUF";
}

/* Tablet: cap headlines at 34px. */
@media (max-width: 767px) {
  :root {
    --step-3: clamp(1.73rem, 1.53rem + 1.02vw, 2.125rem);
    --step-4: clamp(2.07rem, 1.74rem + 1.66vw, 2.125rem);
    --step-5: 2.125rem;
    --step-6: 2.125rem;
    --step-7: 2.125rem;
  }
}

/* Mobile: cap headlines at 30px. */
@media (max-width: 424px) {
  :root {
    --step-3: clamp(1.73rem, 1.53rem + 1.02vw, 1.875rem);
    --step-4: 1.875rem;
    --step-5: 1.875rem;
    --step-6: 1.875rem;
    --step-7: 1.875rem;
  }
}

/* -----------------------------------------------------------------------------
   3. RESET
   ----------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--orange-500);
  color: var(--brand-white);
}

:focus-visible {
  outline: 2px solid var(--orange-300);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   4. TYPOGRAPHY
   ----------------------------------------------------------------------------- */

.theme-display,
.theme-h1,
.theme-h2,
.theme-h3,
.theme-h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-variation-settings:
    "wdth" 92,
    "wght" 800,
    "slnt" -10;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  text-wrap: balance;
  margin: 0;
}

.theme-display {
  font-size: var(--step-7);
  line-height: 0.86;
  letter-spacing: -0.035em;
}

.theme-h1 {
  font-size: var(--step-6);
}

.theme-h2 {
  font-size: var(--step-5);
}

.theme-h3 {
  font-size: var(--step-3);
  letter-spacing: -0.015em;
}

.theme-h4 {
  font-size: var(--step-2);
  letter-spacing: -0.01em;
  line-height: 1;
}

.theme-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark-mut);
}

.theme-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.theme-eyebrow--accent {
  color: var(--orange-300);
}
.theme-eyebrow--accent::before {
  background: var(--orange-500);
  opacity: 1;
}

.theme-lead {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-on-dark);
  max-width: var(--container-text);
  text-wrap: pretty;
}

.theme-prose {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text-on-dark-mut);
  max-width: var(--container-text);
}

.theme-prose p + p {
  margin-top: 1em;
}

.theme-marker {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-300);
}

/* Inline accent on display headings */
.theme-display em,
.theme-h1 em,
.theme-h2 em,
.theme-h3 em {
  font-style: italic;
  color: var(--orange-500);
  background-image: linear-gradient(180deg, transparent 78%, rgba(227, 69, 15, 0.18) 78%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.05em;
}

/* -----------------------------------------------------------------------------
   5. LIGHT vs DARK SECTIONS
   ----------------------------------------------------------------------------- */

.theme-section {
  position: relative;
  padding: var(--section-pad-y) var(--section-pad-x);
  isolation: isolate;
}

.theme-section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.theme-section--deep {
  background: var(--surface-deep);
  color: var(--text-on-dark);
}

.theme-section--light {
  background: var(--surface-light);
  color: var(--text-on-light);
}

.theme-section--white {
  background: var(--surface-white);
  color: var(--text-on-light);
}

.theme-section--accent {
  background: var(--orange-500);
  color: var(--brand-white);
}

.theme-section--lg {
  padding-block: var(--section-pad-y-lg);
}

/* Light section overrides */
.theme-section--light .theme-display,
.theme-section--light .theme-h1,
.theme-section--light .theme-h2,
.theme-section--light .theme-h3,
.theme-section--light .theme-h4,
.theme-section--white .theme-display,
.theme-section--white .theme-h1,
.theme-section--white .theme-h2,
.theme-section--white .theme-h3,
.theme-section--white .theme-h4 {
  color: var(--text-on-light);
}

.theme-section--light .theme-lead,
.theme-section--white .theme-lead {
  color: var(--text-on-light);
}

.theme-section--light .theme-prose,
.theme-section--white .theme-prose {
  color: var(--text-on-light-mut);
}

.theme-section--light .theme-eyebrow,
.theme-section--white .theme-eyebrow {
  color: var(--text-on-light-mut);
}

/* -----------------------------------------------------------------------------
   6. CONTAINER + GRID
   ----------------------------------------------------------------------------- */

.theme-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.theme-container--narrow {
  max-width: var(--container-narrow);
}
.theme-container--text {
  max-width: var(--container-text);
}

.theme-grid {
  display: grid;
  gap: var(--grid-gap);
}

.theme-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.theme-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.theme-grid--12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .theme-grid--3,
  .theme-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .theme-grid--2,
  .theme-grid--3,
  .theme-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Section header slot */
.theme-section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  max-width: var(--container-max);
}

@media (min-width: 900px) {
  .theme-section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: var(--space-xl);
  }
}

/* -----------------------------------------------------------------------------
   7. BUTTONS
   ----------------------------------------------------------------------------- */

.theme-btn {
  --btn-bg: var(--orange-500);
  --btn-fg: var(--brand-white);
  --btn-bd: var(--orange-500);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.6rem;
  min-height: 3.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  position: relative;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
  will-change: transform;
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
}

.theme-btn:active {
  transform: translateY(0);
}

.theme-btn .theme-btn__arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease-out);
}
.theme-btn:hover .theme-btn__arrow {
  transform: translateX(4px);
}

.theme-btn--primary {
  --btn-bg: var(--orange-500);
  --btn-fg: var(--brand-white);
  --btn-bd: var(--orange-500);
}
.theme-btn--primary:hover {
  --btn-bg: var(--orange-dark);
  --btn-bd: var(--orange-dark);
}

.theme-btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text-on-dark);
  --btn-bd: var(--line-on-dark-str);
}
.theme-btn--outline:hover {
  --btn-bg: var(--text-on-dark);
  --btn-fg: var(--brand-dark);
  --btn-bd: var(--text-on-dark);
}

.theme-section--light .theme-btn--outline,
.theme-section--white .theme-btn--outline {
  --btn-fg: var(--brand-dark);
  --btn-bd: var(--line-on-light-str);
}
.theme-section--light .theme-btn--outline:hover,
.theme-section--white .theme-btn--outline:hover {
  --btn-bg: var(--brand-dark);
  --btn-fg: var(--brand-white);
  --btn-bd: var(--brand-dark);
}

.theme-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-on-dark);
  --btn-bd: transparent;
  padding-inline: 0.5rem;
}
.theme-btn--ghost:hover {
  --btn-fg: var(--orange-300);
  transform: translateX(2px);
  box-shadow: none;
}

.theme-btn--xl {
  padding: 1.35rem 2.1rem;
  min-height: 3.85rem;
  font-size: var(--step-1);
}

.theme-btn--block {
  display: flex;
  width: 100%;
}

/* Phone numbers never break inside. The spelling "0 66 91 / 966 39 – 33" has
   spaces and a dash the browser would otherwise wrap at. Elementor button and
   text widgets wrap the number in .theme-nowrap, so only the label before it
   ("Notruf:") may move to its own line. */
.theme-nowrap,
.theme-phone__label strong {
  white-space: nowrap;
}

/* Phone CTA pill */
.theme-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.35rem 0.95rem 1.05rem;
  background: var(--orange-500);
  color: var(--brand-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-cta);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.theme-phone:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 60px -18px rgba(227, 69, 15, 0.7);
}

.theme-phone__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-grid;
  place-items: center;
  position: relative;
}

.theme-phone__icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  animation: theme-pulse 2.4s var(--ease-out) infinite;
}

.theme-phone__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
}

.theme-phone__label small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.theme-phone__label strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* -----------------------------------------------------------------------------
   8. CARDS
   ----------------------------------------------------------------------------- */

.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--surface-deep);
  color: var(--text-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
  will-change: transform;
}

.theme-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(227, 69, 15, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  z-index: -1;
}

.theme-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-on-dark-str);
  box-shadow: var(--shadow-card-h);
}

.theme-card:hover::before {
  opacity: 1;
}

.theme-card__index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-variation-settings:
    "wdth" 88,
    "wght" 800,
    "slnt" -10;
  font-size: var(--step-2);
  color: var(--orange-300);
  line-height: 1;
  letter-spacing: -0.02em;
}

.theme-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-variation-settings:
    "wdth" 90,
    "wght" 800,
    "slnt" -10;
  font-size: var(--step-3);
  line-height: 0.95;
  letter-spacing: -0.018em;
  color: var(--text-on-dark);
  margin: 0;
  text-wrap: balance;
}

.theme-card__body {
  color: var(--text-on-dark-mut);
  font-size: var(--step-0);
  line-height: 1.6;
  margin: 0;
}

.theme-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-on-dark);
}

.theme-card--accent {
  background: var(--orange-500);
  border-color: transparent;
  color: var(--brand-white);
}
.theme-card--accent .theme-card__title,
.theme-card--accent .theme-card__index {
  color: var(--brand-white);
}
.theme-card--accent .theme-card__body {
  color: rgba(255, 255, 255, 0.86);
}
.theme-card--accent .theme-card__foot {
  border-top-color: rgba(255, 255, 255, 0.2);
}
.theme-card--accent::before {
  background: radial-gradient(120% 80% at 0% 100%, rgba(0, 0, 0, 0.18), transparent 55%);
}

.theme-card--light {
  background: var(--surface-white);
  border-color: var(--line-on-light);
  color: var(--text-on-light);
}
.theme-card--light .theme-card__title {
  color: var(--text-on-light);
}
.theme-card--light .theme-card__body {
  color: var(--text-on-light-mut);
}
.theme-card--light .theme-card__foot {
  border-top-color: var(--line-on-light);
}
.theme-card--light .theme-card__index {
  color: var(--orange-500);
}

/* Card image-top variant */
.theme-card--media {
  padding: 0;
}
.theme-card--media .theme-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-700);
}
.theme-card--media .theme-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slower) var(--ease-out);
}
.theme-card--media:hover .theme-card__media img {
  transform: scale(1.05);
}
.theme-card--media .theme-card__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  flex: 1;
}

/* -----------------------------------------------------------------------------
   9. STAT BLOCKS
   ----------------------------------------------------------------------------- */

.theme-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line-on-dark);
}

.theme-stat__value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-variation-settings:
    "wdth" 88,
    "wght" 800,
    "slnt" -10;
  font-size: var(--step-6);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
}

.theme-stat__value em {
  color: var(--orange-500);
  font-style: italic;
}

.theme-stat__label {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-mut);
}

.theme-section--light .theme-stat,
.theme-section--white .theme-stat {
  border-top-color: var(--line-on-light);
}
.theme-section--light .theme-stat__value,
.theme-section--white .theme-stat__value {
  color: var(--text-on-light);
}
.theme-section--light .theme-stat__label,
.theme-section--white .theme-stat__label {
  color: var(--text-on-light-mut);
}

/* -----------------------------------------------------------------------------
   10. UTILITY HELPERS
   ----------------------------------------------------------------------------- */

.theme-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.theme-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.theme-stack--lg {
  gap: var(--space-xl);
}
.theme-stack--sm {
  gap: var(--space-sm);
}

.theme-rule {
  display: block;
  height: 1px;
  background: var(--line-on-dark);
  border: 0;
  margin: 0;
}

.theme-rule--strong {
  background: var(--line-on-dark-str);
}
.theme-rule--accent {
  background: var(--orange-500);
  height: 2px;
}

.theme-mark-line {
  display: inline-block;
  width: 3.5rem;
  height: 2px;
  background: var(--orange-500);
  vertical-align: middle;
}

.theme-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -1;
}

.theme-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.5;
  z-index: -1;
}

.theme-section--light .theme-grid-lines,
.theme-section--white .theme-grid-lines {
  background-image: linear-gradient(90deg, var(--line-on-light) 1px, transparent 1px);
}

/* -----------------------------------------------------------------------------
   11. ELEMENTOR OVERRIDES
   ----------------------------------------------------------------------------- */

body .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--container-max);
}

body .elementor-widget:not(:last-child) {
  margin-block-end: 30px;
}

body .e-con,
body .e-con-inner {
  --container-max-width: var(--container-max);
}

body .e-con > .e-con-inner {
  padding-inline: var(--section-pad-x);
}

body .e-con > .e-con-inner .elementor-element.e-con {
  --container-default-padding-right: 0px;
  --container-default-padding-left: 0px;
}

@media (max-width: 767px) {
  body .e-con > .e-con-inner {
    padding-inline: 1rem;
  }
}

/* Override Elementor form field padding */
.elementor-field-group .elementor-field {
  padding: 0.75rem 1rem !important;
}

/* Override Elementor text editor list styling */
.elementor-widget-text-editor ul {
  list-style: none;
  padding-left: 0;
}

.elementor-widget-text-editor ul li {
  position: relative;
  padding-left: 1.25em;
  margin-bottom: 0.5em;
}

.elementor-widget-text-editor ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--orange-500);
}

/* Icon lists: the tick keeps its size and sits on the first line.

   Elementor leaves the icon wrapper and the svg inside it at `flex: 0 1 auto`,
   so an entry whose text wraps squeezes the icon to make room — on
   /leistungen/ one tick was down to 7.7px of its 14, visibly smaller than its
   neighbours. `align-items: center` then parks it between the two lines
   instead of beside the first. Both show up only once a line wraps, which is
   why they survive on a wide screen and appear on a phone. */
.elementor-icon-list-item,
.elementor-widget .elementor-icon-list-item a {
  /* Elementor reads the alignment from this variable and falls back to
     `center`; setting the property directly loses to its own selector. */
  --icon-vertical-align: flex-start;
}

.elementor-icon-list-item .elementor-icon-list-icon,
.elementor-icon-list-item .elementor-icon-list-icon > svg {
  flex: none;
}

/* Descendant, not child: in a linked entry (phone, email) the icon sits inside
   the <a>, and a child selector would leave it riding above the text. */
.elementor-icon-list-item .elementor-icon-list-icon {
  display: flex;
  align-items: center;
  height: 1lh;
}

/* Override Elementor button defaults */
.elementor-widget-button .elementor-button,
.elementor-field-group .elementor-button {
  background-color: var(--e-global-color-accent);
  border: 1px solid var(--e-global-color-accent);
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.elementor-widget-button .elementor-button:hover {
  transform: translateY(-2px);
}

.elementor-element.elementor-button-info .elementor-button {
  background-color: transparent;
  border: 1px solid #ffffff;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.elementor-element.elementor-button-info .elementor-button:hover {
  transform: translateY(-2px);
}

@keyframes theme-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes theme-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.theme-marquee {
  display: flex;
  overflow: hidden;
  gap: var(--space-2xl);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.theme-marquee__track {
  display: flex;
  gap: var(--space-2xl);
  flex-shrink: 0;
  animation: theme-marquee 36s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .theme-marquee__track {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* -----------------------------------------------------------------------------
   12. FORM ELEMENTS
   ----------------------------------------------------------------------------- */

.theme-input,
.theme-textarea,
.theme-select {
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-on-dark);
  border: 1px solid var(--line-on-dark-str);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.4;
  transition:
    border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}

.theme-input::placeholder,
.theme-textarea::placeholder {
  color: var(--text-on-dark-mut);
}

.theme-input:focus,
.theme-textarea:focus,
.theme-select:focus {
  outline: none;
  border-color: var(--orange-500);
  background: rgba(255, 255, 255, 0.06);
}

.theme-textarea {
  min-height: 8rem;
  resize: vertical;
}

.theme-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-mut);
  margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------------------------
   13. PRINT
   ----------------------------------------------------------------------------- */

@media print {
  .theme-header,
  .theme-footer,
  .theme-grain,
  .theme-grid-lines {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
