/* ==========================================================================
   identsearch – Contao-Theme
   Schrift: Montserrat (lokal eingebunden, SIL Open Font License)
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   Tokens – Farben hier zentral anpassen
   -------------------------------------------------------------------------- */
:root {
  --accent: #d1263a;            /* Kirschrot – Hauptfarbe (auch im Logo) */
  --accent-dark: #ad1a2d;
  --dark: #1e2129;              /* Nachtblau-Anthrazit: Panels, dunkle Buttons */
  --dark-2: #2a2e38;
  --head: #1e2129;              /* Überschriften */
  --text: #3a3f4b;
  --muted: #6b7080;
  --line: #e5e7ec;
  --soft: #f5f6f8;
  --white: #fff;
  --bg: #fff;                   /* Seitenhintergrund */
  --surface: #fff;              /* Karten, Menü, Leiste */
  --glass: rgba(255, 255, 255, 0.9);
  --chip-bg: rgba(255, 255, 255, 0.92);
  --dot: #dadde4;
  --marquee: #858a97;
  --callout: linear-gradient(135deg, #252935, #1b1e26);

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --edge: clamp(10px, 2vw, 30px);       /* Abstand der großen Panels zum Fensterrand */
  --section: clamp(70px, 9vw, 120px);
  --r-panel: clamp(20px, 2.4vw, 32px);
  --r-card: 22px;
  --shadow: 0 18px 50px -20px rgba(20, 24, 36, 0.22);
  color-scheme: light;
}

/* Dunkles Farbschema (Schalter in der Kopfzeile) */
[data-theme="dark"] {
  --bg: #14161b;
  --surface: #1f232b;
  --glass: rgba(31, 35, 43, 0.88);
  --chip-bg: rgba(20, 22, 27, 0.85);
  --head: #f2f3f6;
  --text: #c5c9d2;
  --muted: #979cab;
  --line: #323743;
  --soft: #1a1d24;
  --dot: #3b404c;
  --marquee: #7e8494;
  --dark: #1f232b;
  --callout: linear-gradient(135deg, #272c37, #1f232b);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}
[data-theme="dark"] .ids-btn--dark { background-color: #343a46; }
[data-theme="dark"] .ids-btn--dark:hover { background-color: #414857; }
[data-theme="dark"] .ids-contact { box-shadow: inset 0 0 0 1px #2c313c; }
/* Fließtext-Links: Rot auf Dunkel ist zu kontrastarm, daher hell mit roter Unterstreichung */
[data-theme="dark"] #main :is(p, li, td, blockquote) > a:not([class]),
[data-theme="dark"] :is(.ids-text, .mod_newsreader .layout_full, .ids-textblock__body) :is(p, li, td) a { color: var(--head); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
[data-theme="dark"] #main :is(p, li, td, blockquote) > a:not([class]):hover,
[data-theme="dark"] :is(.ids-text, .mod_newsreader .layout_full, .ids-textblock__body) :is(p, li, td) a:hover { color: #fff; text-decoration-thickness: 2px; }
html.ids-theme-anim, html.ids-theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15.5px; line-height: 1.8; font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.1em; }
strong, b { font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em; color: var(--head);
  font-weight: 900; text-transform: uppercase; line-height: 1.08; letter-spacing: 0;
}
h1 { font-size: clamp(1.85rem, 1.2rem + 1.7vw, 2.45rem); }
h2 { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 800; }
h4 { font-size: 1rem; font-weight: 800; }
.ids-accent { color: var(--accent); display: block; }
.ids-accent--inline { display: inline; }
.ids-nowrap { white-space: nowrap; }

.invisible {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.invisible:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 999; padding: 10px 16px; background: var(--dark); color: #fff; border-radius: 8px; }

#wrapper { overflow-x: clip; } /* dekorative Kreise dürfen nicht seitlich scrollen lassen */
.ids-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ids-section { padding: var(--section) 0 0; }
#main .ids-section:last-child { padding-bottom: var(--section); }

/* --------------------------------------------------------------------------
   Buttons: Pille mit runder Pfeil-Kappe
   -------------------------------------------------------------------------- */
.ids-btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 40px; padding-left: 22px; border-radius: 999px;
  background: var(--accent); color: var(--white);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1;
  white-space: nowrap; transition: background-color .2s ease;
}
.ids-btn::after {
  content: ""; flex: none; width: 46px; height: 46px; margin: -3px 0 -3px; border-radius: 50%;
  background: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
  transition: transform .25s ease;
}
.ids-btn:hover { color: var(--white); background-color: var(--accent-dark); }
.ids-btn:hover::after { transform: rotate(45deg); }
.ids-btn--dark { background-color: var(--dark); }
.ids-btn--dark:hover { background-color: #0f1115; }
.ids-btn--clock::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
}
.ids-btn--clock:hover::after { transform: none; }
@media (prefers-reduced-motion: reduce) { .ids-btn::after { transition: none; } .ids-btn:hover::after { transform: none; } }

.ids-link-more { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--head); }
.ids-link-more::after { content: "›"; margin-left: 8px; font-size: 1.1em; }
.ids-link-more:hover { color: var(--accent); }

.ids-chip {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--chip-bg); color: var(--head);
  font-size: 0.72rem; font-weight: 600; line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Header: Burger, Termin-Pille, Logo – wird beim Scrollen zur schwebenden Leiste
   -------------------------------------------------------------------------- */
#header { position: sticky; top: 0; z-index: 100; height: 0; }
#header > .inside { position: relative; }
.ids-bar {
  position: absolute; left: 0; right: 0; top: 0;
  margin: 0 auto; max-width: 100%;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 40px);
  padding: 22px clamp(20px, 4vw, 60px);
  background: var(--bg); border-radius: 0;
  transition: max-width .4s ease, top .4s ease, padding .4s ease, border-radius .4s ease, box-shadow .4s ease, background-color .4s ease;
}
.ids-scrolled .ids-bar {
  top: 18px; max-width: min(960px, calc(100% - 2 * var(--edge)));
  padding: 10px 30px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -14px rgba(20, 24, 36, 0.28);
}
@media (prefers-reduced-motion: reduce) { .ids-bar { transition: none; } }

.ids-burger {
  position: relative; z-index: 120; flex: none;
  width: 46px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--head);
}
.ids-burger span, .ids-burger::before, .ids-burger::after {
  content: ""; position: absolute; left: 2px; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .3s ease, opacity .2s ease, width .3s ease;
}
.ids-burger::before { top: 10px; width: 42px; }
.ids-burger span { top: 19px; width: 30px; }
.ids-burger::after { top: 28px; width: 42px; }
.ids-nav-open .ids-burger span { opacity: 0; }
.ids-nav-open .ids-burger::before { transform: translateY(9px) rotate(45deg); width: 30px; }
.ids-nav-open .ids-burger::after { transform: translateY(-9px) rotate(-45deg); width: 30px; }

.ids-logo { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--head); }
.ids-logo img { width: 66px; height: auto; }
.ids-logo:hover { color: var(--head); }
.ids-scrolled .ids-logo img { width: 52px; }

@media (max-width: 640px) {
  .ids-bar .ids-btn { display: none; }
}

/* Off-Canvas-Navigation (Contao-Modul „Navigationsmenü“) */
#header .mod_navigation {
  position: fixed; inset: 0 auto 0 0; z-index: 110;
  width: min(420px, 88vw); padding: 110px 30px 40px;
  background: var(--surface); border-radius: 0 var(--r-panel) var(--r-panel) 0;
  overflow-y: auto; text-align: center;
  transform: translateX(-102%); visibility: hidden;
  transition: transform .45s cubic-bezier(.7,0,.2,1), visibility 0s linear .45s;
}
.ids-nav-open #header .mod_navigation { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.7,0,.2,1); }
#header .mod_navigation ul { list-style: none; margin: 0; padding: 0; }
#header .mod_navigation .level_1 > li > a,
#header .mod_navigation .level_1 > li > strong {
  display: block; padding: 4px 0; color: var(--head);
  font-size: 1.55rem; font-weight: 500; text-transform: uppercase; line-height: 1.5;
}
#header .mod_navigation .level_1 > li > a:hover,
#header .mod_navigation .level_1 > li > .active,
#header .mod_navigation .level_1 > li > .trail { color: var(--accent); }
#header .mod_navigation .level_2 { padding: 10px 0 14px; }
#header .mod_navigation .level_2 a,
#header .mod_navigation .level_2 strong { display: block; padding: 3px 0; color: var(--text); font-size: 0.92rem; font-weight: 400; }
#header .mod_navigation .level_2 a:hover,
#header .mod_navigation .level_2 .active { color: var(--accent); }
.ids-nav-backdrop {
  position: fixed; inset: 0; z-index: 105; background: rgba(20, 24, 36, 0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.ids-nav-open .ids-nav-backdrop { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.ids-nav-open { overflow: hidden; }
/* Bei offenem Menü bleibt nur der Burger (als X) über dem Panel sichtbar */
.ids-nav-open .ids-bar { z-index: 115; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ids-nav-open .ids-bar > :not(.ids-burger) { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { #header .mod_navigation, .ids-nav-backdrop { transition: none !important; } }

/* Platz für den Header oberhalb des Inhalts */
#container { padding-top: 96px; }

/* --------------------------------------------------------------------------
   Hero: großes dunkles Panel mit schwebenden Kreisen aus dem Logo
   -------------------------------------------------------------------------- */
.ids-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 var(--edge); border-radius: var(--r-panel);
  min-height: clamp(420px, 72vh, 760px);
  display: grid; place-items: center; text-align: center;
  background: var(--dark) var(--hero-img, none) center / cover no-repeat;
  color: var(--white);
}
.ids-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,33,41,.82), rgba(30,33,41,.9)); }
.ids-hero__claim {
  margin: 0; padding: 0 var(--gutter); color: var(--white);
  font-size: clamp(2.2rem, 1rem + 5.4vw, 5.6rem); font-weight: 900; text-transform: uppercase; line-height: 1;
}
.ids-hero__claim > span { display: block; }
.ids-hero__claim .l2 { color: var(--accent); }
/* Einblendung beim Laden: Zeilen fahren aus einer Maske nach oben */
.ids-hero__claim > span { overflow: hidden; padding-bottom: 0.06em; }
.ids-hero__claim > span > span { display: inline-block; animation: ids-rise 1s cubic-bezier(.2,.7,.1,1) both; }
.ids-hero__claim .l2 > span { animation-delay: .15s; }
.ids-hero__sub { animation: ids-fade .8s ease .55s both; }
@keyframes ids-rise { from { transform: translateY(105%); } }
@keyframes ids-fade { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .ids-hero__claim > span > span, .ids-hero__sub { animation: none; } }
/* Optionales Hintergrundvideo (z. B. Showreel) */
.ids-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ids-hero__sub { margin: 1.4rem 0 0; padding: 0 var(--gutter); font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.15rem); font-weight: 400; color: rgba(255,255,255,.8); }
.ids-hero__shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ids-hero__shapes i {
  position: absolute; border-radius: 50%; border: 3px solid var(--accent);
  animation: ids-float 16s ease-in-out infinite alternate;
}
.ids-hero__shapes i:nth-child(1) { width: 34vw; max-width: 460px; aspect-ratio: 1; left: -6%; bottom: -22%; background: radial-gradient(circle at 35% 35%, rgba(209,38,58,.6), rgba(209,38,58,.12) 72%); border-color: transparent; }
.ids-hero__shapes i:nth-child(2) { width: 120px; aspect-ratio: 1; left: 14%; top: 14%; animation-duration: 12s; }
.ids-hero__shapes i:nth-child(3) { width: 26vw; max-width: 360px; aspect-ratio: 1; right: -5%; top: -14%; background: radial-gradient(circle at 40% 60%, rgba(209,38,58,.38), rgba(209,38,58,.05) 72%); border-color: transparent; animation-duration: 19s; }
.ids-hero__shapes i:nth-child(4) { width: 70px; aspect-ratio: 1; right: 18%; bottom: 16%; border-color: rgba(255,255,255,.55); animation-duration: 10s; }
.ids-hero__shapes i:nth-child(5) { width: 18px; aspect-ratio: 1; right: 30%; top: 22%; background: var(--accent); border: 0; animation-duration: 8s; }
@keyframes ids-float { from { transform: translate(0, 0); } to { transform: translate(24px, -30px); } }
@media (prefers-reduced-motion: reduce) { .ids-hero__shapes i { animation: none; } }

/* --------------------------------------------------------------------------
   Intro: H1 links, Leistungs-Slider rechts (läuft bis zum Fensterrand)
   -------------------------------------------------------------------------- */
.ids-intro { padding-top: var(--section); overflow: hidden; }
.ids-intro__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 50px; align-items: center; }
.ids-intro__text p { font-size: 0.95rem; }
.ids-intro__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 6px 22px -8px rgba(20,24,36,.28); color: var(--head); font-weight: 700; font-size: 0.9rem; }
.ids-intro__phone:hover { color: var(--accent); }
.ids-intro__phone svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 960px) { .ids-intro__grid { grid-template-columns: 1fr; } }

.ids-slider { min-width: 0; margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--wrap)) / 2)); }
.ids-slider__track {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 30px 60px 40px 30px; margin-left: -26px; scroll-padding-left: 30px; scrollbar-width: none;
}
.ids-slider__track::-webkit-scrollbar { display: none; }
.ids-card {
  flex: 0 0 clamp(270px, 30vw, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 34px 32px 32px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow);
}
.ids-card__head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.ids-card__head svg { flex: none; width: 58px; height: 58px; color: var(--head); }
.ids-card__head svg .a, .ids-feature svg .a, .ids-brand svg .a { stroke: var(--accent); }
.ids-card__head :is(h2, h3) { margin: 0; font-size: 1.02rem; font-weight: 800; line-height: 1.08; }
.ids-card p { font-size: 0.88rem; line-height: 1.85; flex: 1; }
.ids-card .ids-btn { align-self: flex-start; margin-top: 8px; }
.ids-slider__dots { display: flex; gap: 8px; }
.ids-slider__dots button {
  width: 34px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--dot); cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.ids-slider__dots button[aria-current="true"] { width: 56px; background: var(--accent); }

/* --------------------------------------------------------------------------
   Dunkler Hinweiskasten (Festpreis)
   -------------------------------------------------------------------------- */
.ids-callout {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px 60px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--r-card);
  background: var(--callout); color: rgba(255,255,255,.82);
}
.ids-callout h2 { color: var(--white); text-transform: none; font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.2; margin-bottom: 0.5em; }
.ids-callout h2 > span:not(.ids-nowrap) { color: var(--accent); }
.ids-callout p { margin: 0; font-weight: 400; }
.ids-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 3px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  color: var(--white); font-size: 0.75rem; font-weight: 600;
}
.ids-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ids-callout__side .ids-btn { margin-bottom: 26px; }
.ids-callout__contact { display: flex; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.ids-callout__contact svg { flex: none; width: 52px; height: 52px; padding: 13px; border-radius: 50%; border: 2px solid var(--accent); color: var(--white); }
.ids-callout__contact small { display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ids-callout__contact a { color: var(--white); font-weight: 700; }
.ids-callout__contact a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 860px) { .ids-callout { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Kunden-Laufband
   -------------------------------------------------------------------------- */
.ids-marquee { overflow: hidden; padding: 10px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ids-marquee ul { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: ids-marquee 45s linear infinite; }
.ids-marquee li { flex: none; padding: 0 clamp(26px, 4vw, 56px); display: flex; align-items: center; height: 70px; }
.ids-marquee li span { font-size: 1.25rem; font-weight: 800; color: var(--marquee); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.ids-marquee li img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; }
.ids-marquee:hover ul { animation-play-state: paused; }
@keyframes ids-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ids-marquee ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* --------------------------------------------------------------------------
   Agentur-Abschnitt: Illustration + zweifarbige Überschrift
   -------------------------------------------------------------------------- */
.ids-brand { display: grid; grid-template-columns: 0.75fr 2fr; gap: 50px; align-items: center; max-width: 1000px; margin: 0 auto; }
.ids-brand svg { width: 100%; max-width: 260px; justify-self: center; color: var(--head); }
.ids-brand svg .f { fill: var(--accent); opacity: .14; }
.ids-brand h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.ids-brand p { font-size: 0.92rem; }
@media (max-width: 760px) { .ids-brand { grid-template-columns: 1fr; } .ids-brand svg { max-width: 180px; } }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.ids-center { text-align: center; }
.ids-center > p { max-width: 70ch; margin-left: auto; margin-right: auto; font-size: 0.92rem; }
.ids-blog__more { margin-top: 40px; }

/* Contao-Nachrichtenliste im gleichen Kartenstil (Modul mit CSS-Klasse „ids-newslist“) */
.ids-newslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; margin-top: 40px; text-align: left; }
.ids-head-center + .ids-newslist { margin-top: 0; }
.ids-newslist .layout_latest, .ids-newslist .layout_short, .ids-newslist .layout_simple {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); padding-bottom: 26px;
}
.ids-newslist figure { order: -1; margin: 0 0 20px; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.ids-newslist figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ids-newslist .layout_latest:hover figure img { transform: scale(1.04); }
.ids-newslist .info, .ids-newslist h2, .ids-newslist .teaser, .ids-newslist .content-text, .ids-newslist .more { padding: 0 26px; }
.ids-newslist .info { margin: 0 0 6px; font-size: 0.75rem; color: var(--muted); }
.ids-newslist h2 { margin: 0 0 0.6em; text-transform: none; font-weight: 700; font-size: 1.12rem; line-height: 1.35; }
.ids-newslist h2 a { color: var(--head); }
.ids-newslist h2 a:hover { color: var(--accent); }
.ids-newslist .teaser, .ids-newslist .content-text { flex: 1; }
/* Anrisstext in der Liste auf vier Zeilen kürzen */
.ids-newslist .content-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; margin-bottom: 16px; flex: 1 0 auto; align-self: stretch; }
.ids-newslist .content-text p { margin: 0; display: inline; }
.ids-newslist .content-text p + p::before { content: ' '; }

.ids-newslist .teaser p, .ids-newslist .content-text p { font-size: 0.86rem; line-height: 1.7; }
.ids-newslist .more { margin: 0; }
.ids-newslist .more a { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--head); }
.ids-newslist .more a::after { content: "›"; margin-left: 8px; }
.ids-newslist .more a:hover { color: var(--accent); }
.ids-newslist .pagination { grid-column: 1 / -1; }
.pagination ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination strong { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--head); font-weight: 600; font-size: 0.85rem; }
.pagination strong, .pagination a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .ids-newslist figure img { transition: none; } }

/* --------------------------------------------------------------------------
   Footer: dunkles Kontakt-Panel mit Aussparung für die Footer-Links
   -------------------------------------------------------------------------- */
#footer { padding-top: var(--section); }
.ids-contact {
  position: relative; margin: 0 var(--edge);
  border-radius: var(--r-panel) var(--r-panel) 0 var(--r-panel);
  background: var(--dark); color: rgba(255,255,255,.85);
  padding: clamp(50px, 7vw, 100px) 0 clamp(90px, 9vw, 120px);
}
.ids-contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px clamp(40px, 6vw, 90px); }
.ids-contact h2 { color: var(--white); }
.ids-contact h2 .ids-accent { color: var(--accent); }
.ids-contact p { font-size: 0.9rem; }
.ids-contact__company { color: var(--white); font-weight: 700; }
.ids-contact__big { display: block; margin-top: 14px; color: var(--white); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); font-weight: 300; }
.ids-contact__big:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
@media (max-width: 860px) { .ids-contact__grid { grid-template-columns: 1fr; } }

/* Formular (Formulargenerator, eingebunden mit {{insert_form::ID}}) */
.ids-contact form .formbody { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ids-contact .widget { margin: 0; grid-column: 1 / -1; }
.ids-contact .widget.half, .ids-contact .widget-text.half { grid-column: auto; }
/* Feldbeschriftungen nur für Screenreader – sichtbar sind die Platzhalter */
.ids-contact .widget-text > label, .ids-contact .widget-textarea > label, .ids-contact .widget-captcha > label {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.ids-contact .formbody > p.error { grid-column: 1 / -1; }
.ids-contact .widget-altcha { grid-column: 1 / -1; }
.ids-contact input[type="text"], .ids-contact input[type="email"], .ids-contact input[type="tel"], .ids-contact textarea {
  width: 100%; padding: 16px 14px; border: 0; border-radius: 4px; background: #fff; color: #1e2129;
  font: inherit; font-size: 0.85rem; font-weight: 400;
}
.ids-contact textarea { min-height: 120px; resize: vertical; }
.ids-contact input::placeholder, .ids-contact textarea::placeholder { color: #3b3e45; }
.ids-contact .widget-checkbox fieldset { border: 0; margin: 0; padding: 0; }
.ids-contact .widget-checkbox legend { display: none; }
.ids-contact .widget-checkbox span { display: flex; gap: 12px; align-items: flex-start; }
.ids-contact .widget-checkbox input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.ids-contact .widget-checkbox label { color: var(--white); font-size: 0.8rem; line-height: 1.5; font-weight: 400; }
.ids-contact .widget-checkbox a { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); }
.ids-contact .widget-submit button, .ids-contact button.submit {
  display: inline-flex; align-items: center; gap: 14px; height: 40px; padding: 0 0 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--white); font: inherit; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
}
.ids-contact .widget-submit button::after, .ids-contact button.submit::after {
  content: ""; width: 46px; height: 46px; margin: -3px 0; border-radius: 50%; background: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
}
.ids-contact .widget-submit button:hover { background-color: var(--accent-dark); }
.ids-contact p.error { color: var(--white); background: var(--accent); padding: 2px 8px; border-radius: 4px; display: inline-block; font-weight: 600; margin: 0 0 6px; }
@media (max-width: 560px) { .ids-contact form .formbody { grid-template-columns: 1fr; } .ids-contact .widget.half { grid-column: 1 / -1; } }

/* Einzugsgebiet mit Links zu den Standortseiten */
.ids-regions { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.ids-regions p { margin: 0 0 10px; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,.6); }
.ids-regions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ids-regions a { color: rgba(255,255,255,.88); font-size: 0.85rem; }
.ids-regions a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Aussparung unten rechts */
.ids-contact__notch {
  position: absolute; right: calc(-1 * var(--edge)); bottom: 0;
  display: flex; align-items: center;
  padding: 26px calc(var(--edge) + 30px) 0 40px; min-height: 72px;
  background: var(--bg); border-top-left-radius: var(--r-panel);
}
.ids-contact__notch::before, .ids-contact__notch::after {
  content: ""; position: absolute; width: var(--r-panel); height: var(--r-panel);
  background: radial-gradient(circle at 0 0, transparent calc(var(--r-panel) - 0.5px), var(--bg) var(--r-panel));
}
.ids-contact__notch::before { top: calc(-1 * var(--r-panel)); right: var(--edge); }
.ids-contact__notch::after { bottom: 0; left: calc(-1 * var(--r-panel)); }
.ids-contact__notch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.ids-contact__notch a { color: var(--head); font-size: 0.85rem; font-weight: 400; }
.ids-contact__notch a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .ids-contact { border-radius: var(--r-panel); padding-bottom: clamp(50px, 7vw, 100px); }
  .ids-contact__notch { position: static; background: transparent; padding: 40px var(--gutter) 0; min-height: 0; }
  .ids-contact__notch::before, .ids-contact__notch::after { display: none; }
  .ids-contact__notch a { color: rgba(255,255,255,.85); }
}
.ids-copy { max-width: var(--wrap); margin: 0 auto; padding: 34px var(--gutter) 40px; font-size: 0.75rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Standard-Inhaltselemente auf Unterseiten (Contao 5: .content-*, Contao 4: .ce_*)
   -------------------------------------------------------------------------- */
#main .mod_article:not(.ids-full) { max-width: var(--wrap); margin: 0 auto; padding: var(--section) var(--gutter) 0; }
.content-text, .ce_text, .content-headline, .ce_headline, .content-list, .ce_list { max-width: 80ch; margin-bottom: 2rem; }
.content-image img, .ce_image img { border-radius: var(--r-card); }
.content-hyperlink a, .ce_hyperlink a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--white); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
}
.content-hyperlink a:hover, .ce_hyperlink a:hover { background: var(--accent-dark); color: var(--white); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; color: var(--head); }
#main input[type="text"], #main input[type="email"], #main input[type="tel"], #main textarea, #main select {
  width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-weight: 400; color: var(--head); background: var(--surface);
}
#main label { display: block; font-weight: 600; color: var(--head); margin-bottom: 6px; }
#main .widget { margin-bottom: 18px; }
#main .widget-submit button { height: 42px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; cursor: pointer; }

/* ==========================================================================
   UNTERSEITEN
   ========================================================================== */

/* ---------- Seiteneinstieg: zweifarbige H1, Text, Telefon + Termin ---------- */
.ids-page-intro { padding-top: clamp(40px, 6vw, 80px); }
.ids-page-intro .ids-wrap { max-width: 880px; }
.ids-page-intro h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.7rem); margin-bottom: 0.7em; }
.ids-page-intro p { font-size: 0.95rem; }
.ids-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.ids-actions .ids-intro__phone { margin: 0; }

/* ---------- Vier Leistungskarten mit Icon ---------- */
.ids-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.ids-feature {
  padding: 34px 26px 30px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); text-align: center;
}
.ids-feature svg { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--accent); }
.ids-feature :is(h2, h3) { text-transform: none; font-weight: 700; font-size: 1.02rem; line-height: 1.35; margin-bottom: 0.6em; }
.ids-feature p { margin: 0; font-size: 0.86rem; line-height: 1.75; }
@media (max-width: 1020px) { .ids-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ids-features { grid-template-columns: 1fr; } }

/* Zentrierte Abschnittsüberschrift */
.ids-head-center { text-align: center; max-width: 820px; margin: 0 auto 46px; }
.ids-head-center h2 { margin-bottom: 0.5em; }
.ids-head-center p { margin: 0 auto; font-size: 0.92rem; max-width: 70ch; }

/* ---------- Bild + Text ---------- */
.ids-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.ids-split--reverse > :first-child { order: 2; }
.ids-split__media { position: relative; }
.ids-split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.ids-split__media--wide img { aspect-ratio: 4 / 3; }
.ids-split__media::after { /* Kreis-Motiv aus dem Logo */
  content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; right: -8%; bottom: -8%;
  border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(209,38,58,.22), rgba(209,38,58,0) 70%);
}
.ids-split__text h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.ids-split__text p { font-size: 0.92rem; }
.ids-split__text .ids-btn { margin-top: 26px; }
@media (max-width: 860px) {
  .ids-split { grid-template-columns: 1fr; }
  .ids-split--reverse > :first-child { order: 0; }
  .ids-split__media img { aspect-ratio: 16 / 10; }
}

/* Häkchen-Liste */
.ids-check { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 16px; }
.ids-check li { position: relative; padding-left: 36px; font-size: 0.9rem; line-height: 1.6; }
.ids-check li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1263a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ids-check strong { display: block; color: var(--head); font-weight: 700; }

/* ---------- Ablauf als Zeitstrahl (nur für echte Reihenfolgen) ---------- */
.ids-steps { position: relative; isolation: isolate; list-style: none; margin: 0 auto; padding: 0; max-width: 900px; counter-reset: step; }
.ids-steps::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; background: var(--line); }
.ids-step { position: relative; width: 50%; padding: 0 56px 56px 0; counter-increment: step; }
.ids-step:nth-child(even) { margin-left: 50%; padding: 0 0 56px 56px; }
.ids-step:last-child { padding-bottom: 0; }
.ids-step::before { /* Punkt auf der Linie */
  content: ""; position: absolute; top: 14px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px var(--bg);
}
.ids-step:nth-child(even)::before { right: auto; left: -9px; }
.ids-step::after { /* große, blasse Ziffer */
  content: counter(step, decimal-leading-zero); position: absolute; top: -10px; left: calc(100% + 56px); z-index: -1;
  font-size: 5.4rem; font-weight: 900; line-height: 1; color: var(--accent); opacity: .12;
}
.ids-step:nth-child(even)::after { left: auto; right: calc(100% + 56px); }
.ids-step:nth-child(odd) { text-align: right; }
.ids-step h3 { text-transform: none; font-weight: 700; font-size: 1.05rem; margin: 10px 0 0.5em; }
.ids-step p { margin: 0; font-size: 0.88rem; line-height: 1.75; }
.ids-step:nth-child(odd) p { margin-left: auto; }
.ids-steps__cta { margin-top: 50px; text-align: center; }
@media (max-width: 720px) {
  .ids-steps::before { left: 9px; }
  .ids-step, .ids-step:nth-child(even), .ids-step:nth-child(odd) { width: auto; margin-left: 0; padding: 0 0 40px 46px; text-align: left; }
  .ids-step:nth-child(odd) p { margin-left: 0; }
  .ids-step h3 { padding-right: 70px; }
  .ids-step::before, .ids-step:nth-child(even)::before { left: 0; right: auto; }
  .ids-step::after, .ids-step:nth-child(even)::after { left: auto; right: 0; top: -6px; font-size: 3.4rem; }
}

/* ---------- Vorteile-Raster ---------- */
.ids-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; }
.ids-benefit { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.ids-benefit h3 { display: flex; align-items: center; gap: 12px; text-transform: none; font-weight: 700; font-size: 1rem; margin-bottom: 0.5em; }
.ids-benefit h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ids-benefit p { margin: 0; font-size: 0.86rem; line-height: 1.75; }
@media (max-width: 960px) { .ids-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ids-benefits { grid-template-columns: 1fr; } }

/* ---------- Kontaktkarten ---------- */
.ids-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ids-contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 32px 30px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); color: var(--text);
}
.ids-contact-card svg { width: 48px; height: 48px; padding: 12px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--white); }
.ids-contact-card small { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .02em; }
.ids-contact-card strong { color: var(--head); font-size: 1.12rem; font-weight: 700; line-height: 1.4; }
.ids-contact-card span { font-size: 0.86rem; }
a.ids-contact-card:hover strong { color: var(--accent); }
@media (max-width: 860px) { .ids-contact-cards { grid-template-columns: 1fr; } }

/* ---------- Textseiten (Impressum, Datenschutz): normale Contao-Elemente ---------- */
#main .mod_article.ids-text { max-width: 880px; }
.ids-text h1, .ids-text .content-headline h1, .ids-text .ce_headline h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.7rem); }
.ids-text h2 { font-size: 1.25rem; margin-top: 2.2em; }
.ids-text h3 { font-size: 1.05rem; margin-top: 1.8em; }
.ids-text p, .ids-text li { font-size: 0.95rem; }
.ids-text ul, .ids-text ol { padding-left: 1.3em; }
.ids-text li { margin-bottom: 0.4em; }
.ids-text li::marker { color: var(--accent); }
.ids-text a { text-decoration: underline; text-decoration-color: rgba(209,38,58,.4); text-underline-offset: 3px; }

/* ---------- Blogartikel (Nachrichtenleser) ---------- */
.mod_newsreader { max-width: 880px; margin: 0 auto; }
.mod_newsreader .layout_full > h1 { font-size: clamp(1.8rem, 1.1rem + 2vw, 2.6rem); margin-bottom: 0.4em; }
.mod_newsreader .info { margin: 0 0 30px; font-size: 0.8rem; color: var(--muted); }
.mod_newsreader figure { margin: 0 0 40px; }
.mod_newsreader .info time + * { margin-left: 6px; }
.mod_newsreader figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
.mod_newsreader h2 { font-size: 1.3rem; margin-top: 2em; }
.mod_newsreader h3 { font-size: 1.08rem; text-transform: none; margin-top: 1.8em; }
.mod_newsreader p, .mod_newsreader li { font-size: 1rem; line-height: 1.85; }
.mod_newsreader blockquote { margin: 2em 0; padding: 22px 28px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; font-weight: 500; color: var(--head); }
.mod_newsreader ul li::marker { color: var(--accent); }
.mod_newsreader .back { margin-top: 50px; }
.mod_newsreader .back a { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--head); }
.mod_newsreader .back a::before { content: "‹"; font-size: 1.2em; }
.mod_newsreader .back a:hover { color: var(--accent); }
.ids-chip--accent { background: var(--accent); color: var(--white); }

/* ---------- Textabschnitt ---------- */
.ids-textblock { max-width: 880px; }
.ids-textblock--columns { max-width: var(--wrap); }
.ids-textblock > h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: 0.9em; }
.ids-textblock__body p, .ids-textblock__body li { font-size: 0.95rem; }
.ids-textblock__body h2, .ids-textblock__body h3, .ids-textblock__body h4 { font-size: 1.05rem; text-transform: none; font-weight: 700; margin: 1.6em 0 0.5em; break-after: avoid; }
.ids-textblock__body > :first-child { margin-top: 0; }
.ids-textblock__body ul, .ids-textblock__body ol { padding-left: 1.3em; }
.ids-textblock__body li { margin-bottom: 0.4em; }
.ids-textblock__body li::marker { color: var(--accent); }
.ids-textblock__body strong { color: var(--head); }
@media (min-width: 900px) {
  .ids-textblock--columns .ids-textblock__body { column-count: 2; column-gap: 64px; }
  .ids-textblock--columns .ids-textblock__body p, .ids-textblock--columns .ids-textblock__body li { break-inside: avoid; }
}
.ids-textblock > .ids-btn { margin-top: 20px; }

/* ---------- Fehlerseite ---------- */
.ids-error { padding: clamp(40px, 7vw, 100px) 0 0; text-align: center; }
.ids-error .ids-wrap { max-width: 760px; }
.ids-error .ids-error__code {
  margin: 0 0 10px; font-size: clamp(6rem, 3rem + 14vw, 13rem); font-weight: 900; line-height: .9; letter-spacing: -0.04em;
  background: linear-gradient(160deg, var(--accent) 20%, var(--accent-dark) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ids-error h1 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.4rem); }
.ids-error p { margin-left: auto; margin-right: auto; max-width: 56ch; font-size: 0.95rem; }
.ids-actions--center { justify-content: center; }

/* ---------- Sitemap (Contao-Modul „Sitemap“) ---------- */
.mod_sitemap ul { list-style: none; margin: 0; padding: 0; }
.mod_sitemap .level_1 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 40px; }
.mod_sitemap .level_1 > li { padding: 16px 0; border-top: 1px solid var(--line); }
.mod_sitemap .level_1 > li > a, .mod_sitemap .level_1 > li > strong { font-weight: 700; color: var(--head); }
.mod_sitemap .level_2 { margin-top: 8px; }
.mod_sitemap .level_2 a { display: block; padding: 3px 0; font-size: 0.9rem; color: var(--text); }
.mod_sitemap a:hover { color: var(--accent); }

/* Cookie-Banner (Contao Cookiebar): nur Grundfarben */
.contao-cookiebar .cc-btn.success { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   Hell/Dunkel-Schalter
   -------------------------------------------------------------------------- */
.ids-mode {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--head); cursor: pointer;
  transition: background-color .2s ease;
}
.ids-mode:hover { background: var(--soft); }
.ids-mode svg { width: 22px; height: 22px; }
.ids-mode .ids-sun { display: none; }
[data-theme="dark"] .ids-mode .ids-sun { display: block; }
[data-theme="dark"] .ids-mode .ids-moon { display: none; }

/* --------------------------------------------------------------------------
   Cursor-Kreis (nur Maus, nicht bei reduzierter Bewegung)
   -------------------------------------------------------------------------- */
.ids-cursor {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: rgba(209, 38, 58, 0.14); border: 1.5px solid rgba(209, 38, 58, 0.35);
  opacity: 0; transition: opacity .3s ease, width .25s ease, height .25s ease, margin .25s ease, background-color .25s ease;
}
.ids-cursor.is-visible { opacity: 1; }
.ids-cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(209, 38, 58, 0.08); }
.ids-cursor.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

/* --------------------------------------------------------------------------
   Slider: Pfeile und Ziehen mit der Maus
   -------------------------------------------------------------------------- */
.ids-slider__nav { display: flex; align-items: center; gap: 18px; padding-left: 4px; }
.ids-slider__arrow {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--head); cursor: pointer;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.ids-slider__arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.ids-slider__arrow:disabled { opacity: .35; cursor: default; }
.ids-slider__arrow svg { width: 16px; height: 16px; }
.ids-slider__track.is-draggable { cursor: grab; }
.ids-slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.ids-slider__track.is-dragging a { pointer-events: none; }

/* Spamschutz im Kontaktformular (Contao-Captcha / Altcha) */
.ids-contact .widget-captcha input { max-width: 140px; }
.ids-contact .widget-captcha .captcha_text { display: block; margin-top: 6px; color: rgba(255,255,255,.75); font-size: 0.8rem; }
.ids-contact altcha-widget { --altcha-color-base: #2a2e38; --altcha-color-text: #fff; --altcha-color-border: #424857; --altcha-max-width: 100%; }

@media (max-width: 640px) {
  .ids-hero { min-height: 62vh; }
}

@media print { #header, .ids-hero__shapes, .ids-nav-backdrop { display: none !important; } }
