/* Erzeugt aus landing/sections.css (build-theme.mjs). Nicht von Hand ändern. */
/* Inhaltsabschnitte nach dem Hero. Farben, Zeiten, Bewegung nur aus MOTION.md. */
/* Gemeinsamer Raster: ein Container, ein Seitenrand, ein vertikaler Rhythmus (Namen stabil halten).
   --section-y = Abstand ÜBER jedem Abschnitt (padding-top); der Abstand zwischen zwei Abschnitten ist also genau --section-y. */
:root {
  --glass: rgba(16,16,16,.55); --hair: rgba(255,255,255,.12);   /* auch für den Footer (liegt außerhalb von .sx) */
  --gutter: clamp(20px, 4vw, 64px);
  --container: min(1360px, calc(100vw - 2 * var(--gutter)));
  --section-y: clamp(72px, 8vw, 128px);
  --gap: clamp(16px, 1.7vw, 28px);
}
.sx { --glass: rgba(16,16,16,.55); --hair: rgba(255,255,255,.12); --ink-dark: #15151c;
  position: relative; z-index: 2; width: var(--container); margin: 0 auto; padding: var(--section-y) 0 0; scroll-margin-top: 72px; }
.sx *, .sx *::before, .sx *::after { box-sizing: border-box; }
.sx h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 300; line-height: 1.1; margin: 0; }
.sx h2 span { color: var(--muted); }
.sx h3 { font-weight: 300; margin: 0; line-height: 1.2; }
.sx p { margin: 0; }
.sx .sx-label { margin: 0 0 24px; }
section.block, .ft { --muted: #b3b3bd; }   /* Hellgrau wie in .sx (Testwert, siehe content.css) */
.sx-label { display: flex; width: fit-content; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--hair); border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 24px; }
.sx-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.sx-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.sx-head > div { grid-column: 1 / 8; }
.sx-head .sx-lead { grid-column: 8 / 13; color: var(--muted); font-size: 18px; max-width: 44ch; justify-self: end; width: 100%; }
.sx-head + * { margin-top: clamp(40px, 5vw, 72px); }
.gl { background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--hair); border-radius: 28px; }
.sx-pill { display: inline-block; padding: 14px 28px; border-radius: 999px; font-size: 16px; font-weight: 500; line-height: 1; border: 1px solid rgba(255,255,255,.5); color: #fff; transition: border-color .4s ease, color .4s ease, background .4s ease; }
.sx-pill:hover { border-color: var(--orange); color: var(--orange); }

/* Einblenden: kurz, weich, ease in-out */
html.sx-js .sx-r { opacity: 0; transform: translateY(14px); transition: opacity .8s ease-in-out, transform .8s ease-in-out; transition-delay: var(--d, 0s); }
html.sx-js .sx-r.in { opacity: 1; transform: none; }

/* ===== Leistungen ===== */
.sv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.sv-card { padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.sv-card ul { width: 100%; }
.sv-card .sx-pill { margin-top: auto; }
.sv-tag { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sv-card h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 20px 0 16px; }
.sv-card p { color: var(--muted); font-size: 17px; }
.sv-card ul { list-style: none; margin: 28px 0 36px; padding: 0; color: #fff; }
.sv-card li { padding: 12px 0; border-top: 1px solid var(--hair); font-size: 16px; }

/* ===== Orange Fläche (scrollgesteuert) ===== */
#flaeche { position: relative; z-index: 2; height: 190vh; }
#flaeche .fl-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
#flaeche .fl-panel { position: relative; width: 96px; height: 96px; border-radius: 28px; background: var(--orange); overflow: hidden; will-change: width, height; }
#flaeche .fl-text { position: absolute; left: 50%; top: 50%; text-align: center; color: var(--ink-dark, #15151c); opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
#flaeche .fl-text small { font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
#flaeche .fl-text h2 { font-size: clamp(34px, 6.4vw, 104px); font-weight: 300; line-height: 1.08; color: #15151c; }
#flaeche .fl-text h2 span { display: block; color: #15151c; opacity: .6; }
#flaeche .fl-mark { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; transform: translate(-50%, -50%); background: #15151c; -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat; mask: url(logo-mark.png) center / contain no-repeat; opacity: 0; }

/* ===== Warum IT Wesemann ===== */
.wm-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.wm-m { padding: clamp(28px, 2.8vw, 44px); }
.wm-m b { display: block; font-size: clamp(56px, 6vw, 88px); font-weight: 300; line-height: 1; }
.wm-m b i { font-style: normal; font-size: .38em; color: var(--muted); margin-right: .3em; }
.wm-m b u { text-decoration: none; font-size: .4em; color: var(--muted); margin-left: .25em; }
.wm-m .rule { width: 56px; height: 2px; background: var(--orange); margin: 24px 0 18px; }
.wm-m > span { display: block; color: #fff; font-size: 18px; }
.wm-m small { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.5; }
.wm-claims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.wm-c { display: flex; flex-direction: column; justify-content: center; padding: 28px clamp(22px, 2vw, 32px); font-size: 17px; line-height: 1.45; }
.wm-c small { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ===== Kundenstimmen ===== */
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rv-card { padding: clamp(26px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.rv-card:nth-child(4) { order: 5; }
.rv-card:nth-child(5) { order: 4; grid-column: span 2; }
.rv-card blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: #fff; }
.rv-card.wide blockquote { font-size: 19px; max-width: 980px; }
.rv-card footer { all: unset; display: block; margin-top: auto; color: var(--muted); font-size: 14px; }
.rv-card footer b { color: #fff; font-weight: 500; display: block; font-size: 15px; }
.rv-refs { margin-top: var(--gap); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rv-refs > span { color: var(--muted); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-right: 12px; }
.rv-refs a { padding: 10px 18px; border: 1px solid var(--hair); border-radius: 999px; font-size: 15px; color: #fff; background: var(--glass); transition: border-color .4s ease, color .4s ease; }
.rv-refs a:hover { border-color: var(--orange); color: var(--orange); }

/* ===== Kontakt ===== */
.ct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
#kontakt { padding-bottom: var(--section-y); }
.ct-dark { background: var(--card); border: 1px solid var(--hair); border-radius: 32px; padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: 32px; }
.ct-dark > img { height: 40px; width: auto; align-self: flex-start; }
.ct-dark h2 { font-size: clamp(30px, 3.4vw, 48px); }
.ct-dark p { color: var(--muted); font-size: 17px; }
.ct-dark ul { list-style: none; margin: 0; padding: 0; }
.ct-dark li { padding: 14px 0; border-top: 1px solid var(--hair); display: flex; gap: 24px; justify-content: space-between; font-size: 16px; }
.ct-dark li small { color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; flex: none; padding-top: 3px; }
.ct-dark li span { text-align: right; }
.ct-dark li a:hover { color: var(--orange); }
.ct-orange { background: var(--orange); color: #15151c; border-radius: 32px; padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.ct-orange h2 { font-size: clamp(30px, 3.4vw, 48px); color: #15151c; }
.ct-orange h2 span { color: #15151c; opacity: .6; }
.ct-orange > p { font-size: 17px; }
.ct-orange form { display: grid; gap: 14px; background: none; border: 0; padding: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ct-orange input, .ct-orange textarea { background: #15151c; color: #fff; border: 1px solid transparent; border-radius: 16px; padding: 16px 18px; font: 400 16px Roboto, sans-serif; }
.ct-orange input::placeholder, .ct-orange textarea::placeholder { color: var(--muted); }
.ct-orange input:focus, .ct-orange textarea:focus { border-color: #fff; }
.ct-orange textarea { min-height: 120px; }
.ct-orange label.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.ct-orange label.chk input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; padding: 0; accent-color: #15151c; }
.ct-orange label.chk a { text-decoration: underline; }
.ct-orange .go { align-self: flex-start; background: #15151c; color: #fff; border: 0; border-radius: 999px; padding: 18px 34px; font: 500 16px Roboto, sans-serif; line-height: 1; cursor: pointer; transition: background .4s ease; }
.ct-orange .go:hover { background: var(--orange2); }
.ct-orange .alt { font-size: 15px; }
.ct-orange .alt a { font-weight: 500; text-decoration: underline; }

/* ===== Footer ===== */
.ft { position: relative; z-index: 2; border-top: 1px solid var(--hair); background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: left; padding: 72px 0 40px; font-size: 15px; color: var(--muted); }
.ft-in { width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--gap) calc(var(--gap) * 2); }
.ft img { height: 34px; width: auto; display: block; margin-bottom: 20px; }
.ft b { display: block; color: #fff; font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft a { transition: color .3s ease; }
.ft a:hover { color: var(--orange); }
.ft-bot { width: var(--container); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 13px; }

@media (max-width: 900px) {
  .sx-head { grid-template-columns: 1fr; row-gap: 24px; }
  .sx-head > div, .sx-head .sx-lead { grid-column: 1; justify-self: start; }
  .sv-grid, .wm-metrics, .rv-grid, .ct { grid-template-columns: 1fr; }
  .rv-card:nth-child(n) { order: 0; grid-column: auto; }
  .wm-claims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-dark, .ct-orange { border-radius: 28px; }
  .ft { padding: 56px 0 32px; }
  .ft-in { grid-template-columns: 1fr 1fr; gap: 36px var(--gap); }
  .ft-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wm-claims { grid-template-columns: 1fr; }
  .ct .ct-dark li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ct-dark li span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {   /* bewusst außer Kraft: MOTION.md Abschnitt 13 */
  html.sx-js .sx-r { opacity: 1; transform: none; transition: none; }
  #flaeche { height: auto; padding: 80px 16px; }
  #flaeche .fl-stick { position: static; height: auto; }
}
.ct h2 span { display: block; }

/* Prüfung: zweiteilige Überschriften immer zweizeilig, sichtbarer Fokus, Tipp-Flächen >= 44 px */
.sx h2 span { display: block; }
.sx-r a:focus-visible, .sx a:focus-visible, .ft a:focus-visible, .ct button:focus-visible, .ct input:focus-visible, .ct textarea:focus-visible, #ki-showreel a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ct-orange a:focus-visible, .ct-orange button:focus-visible, .ct-orange input:focus-visible, .ct-orange textarea:focus-visible { outline-color: #15151c; }
.ct-orange .go:focus-visible { outline-color: #15151c; outline-offset: 4px; }
.ft ul { gap: 0; }
.ft li a, .ct-dark li a, .ct-orange .alt a { display: inline-block; padding: 11px 0; }
.ct-orange .alt { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: center; }
.ct-orange label.chk { min-height: 44px; align-items: center; }
.ct-orange label.chk input { margin: 0; }
.ct-orange label.chk a { display: inline; padding: 0; }
#ki-showreel h2 span { display: block; }
.ct-dark li { align-items: center; }
.ct-dark li small { padding-top: 0; }
.ct-orange .alt { gap: 0 24px; }

/* Showreel-Block im selben Raster: Überschrift Spalte 1-7, Lead 8-12, Video volle Breite */
section.block#ki-showreel { width: var(--container); max-width: none; margin: 0 auto; padding: var(--section-y) 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
#ki-showreel > * { grid-column: 1 / -1; }
#ki-showreel .eyebrow { margin-bottom: 20px; }
#ki-showreel h2 { grid-column: 1 / 8; grid-row: 2; max-width: none; }
#ki-showreel > p.lead:not(:last-child) { grid-column: 8 / 13; grid-row: 2; margin: 0; max-width: 44ch; justify-self: end; width: 100%; font-size: 18px; }
#ki-showreel iframe { margin-top: clamp(40px, 5vw, 72px); border-radius: 28px; grid-row: 3; }
#ki-showreel > p.lead:last-child { grid-row: 4; margin-top: 12px; }
@media (max-width: 900px) {
  #ki-showreel h2, #ki-showreel > p.lead:not(:last-child) { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  #ki-showreel > p.lead:not(:last-child) { margin-top: 24px; }
  #ki-showreel iframe, #ki-showreel > p.lead:last-child { grid-row: auto; }
}
