/* =====================================================
   DS26 Softwarelösungen – Stylesheet
   Farbwelt abgeleitet vom Logo: Rot, Schwarz/Grau, Navy
   ===================================================== */

:root {
  --red: #d40f21;
  --red-dark: #a80b19;
  --navy: #0b0a2a;
  --navy-800: #14133a;
  --navy-700: #1e1d4a;
  --ink: #1a1a2e;
  --muted: #5b5f73;
  --line: #e4e6ee;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --cyan: #38bdf8;          /* passt zur Bildwelt der Hintergründe */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 10, 42, 0.08);
  --shadow-lg: 0 25px 60px rgba(11, 10, 42, 0.18);
  --header-h: 84px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Grid-Kinder dürfen schmaler als ihr Inhalt werden (verhindert horizontales Scrollen) */
.stat, .card, .split-text, .split-media, .contact-info, .contact-form, .value, .feature { min-width: 0; }
h1, h2, h3, h4, p, li { overflow-wrap: anywhere; }
.site-nav li, .site-nav a { overflow-wrap: normal; white-space: nowrap; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .9rem;
}

.accent { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 25px rgba(212, 15, 33, .3);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-small { padding: .55rem 1.2rem; font-size: .9rem; background: var(--red); color: #fff; }
.btn-small:hover { background: var(--red-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 15, 39, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: height .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled {
  height: 70px;
  background: rgba(14, 15, 39, .97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-nav { margin-left: auto; }

/* Sprachumschalter DE | EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  flex-shrink: 0;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .6);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .4rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 42px;
  width: auto;
  transition: height .3s ease;
}
.site-header.scrolled .brand-logo { height: 36px; }

.site-nav ul { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.site-nav a:not(.btn) {
  font-weight: 500;
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
  position: relative;
  padding: .3rem 0;
  transition: color .2s ease;
}
.site-nav a:not(.btn):hover,
.site-nav a.active { color: #fff; }
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-top: var(--header-h);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 10, 42, .92) 0%, rgba(11, 10, 42, .75) 45%, rgba(11, 10, 42, .35) 100%),
    linear-gradient(180deg, rgba(11, 10, 42, .2), rgba(11, 10, 42, .6));
}
.hero-content {
  position: relative;
  max-width: 760px;
  padding-block: 6rem;
  animation: fadeUp .9s ease both;
}
.hero .eyebrow { color: var(--cyan); }
.hero h1 { color: #fff; }
.hero .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .82);
  max-width: 600px;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 2rem;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  transform: translateX(-50%);
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  animation: scroll 1.8s ease-in-out infinite;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--navy);
  color: #fff;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 2.2rem;
}
.stat {
  text-align: center;
  padding: .5rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.stat:first-child { border-left: 0; }
.stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-head h2 { color: var(--navy); }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--navy));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { transform: scaleY(1); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 15, 33, .1), rgba(11, 10, 42, .08));
  margin-bottom: 1.4rem;
}
.card-icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Split sections ---------- */
.split { background: var(--bg-soft); }
.split-reverse { background: #fff; }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.split-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 10, 42, .35));
  pointer-events: none;
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s ease;
}
.split-media:hover img { transform: scale(1.04); }
.split-text h2 { color: var(--navy); }
.split-text > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

.check-list { margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .3rem;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23d40f21'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Steps */
.steps { display: grid; gap: 1.4rem; margin-top: 2rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; }
.step-no {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--navy);
  font-size: .95rem;
}
.step h4 { margin-bottom: .2rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Banner (Parallax) ---------- */
.banner {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11, 10, 42, .9), rgba(11, 10, 42, .7));
}
.banner-content {
  position: relative;
  max-width: 860px;
  text-align: center;
  margin-inline: auto;
}
.banner .eyebrow { color: var(--cyan); }
.banner h2 { color: #fff; }
.banner p { color: rgba(255, 255, 255, .8); font-size: 1.08rem; }
.banner-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.8rem;
}
.feature {
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  transition: background .3s ease, transform .3s ease;
}
.feature:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.feature strong { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.feature span { font-size: .9rem; color: rgba(255, 255, 255, .75); }

/* ---------- Über uns ---------- */
.about { background: var(--bg-soft); }
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.value {
  padding: 1.8rem;
  background: #fff;
  border-radius: var(--radius);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
}
.value h3 { color: var(--navy); font-size: 1.1rem; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-info h2 { color: var(--navy); }
.contact-info > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.address { font-style: normal; margin: 2rem 0 1.2rem; display: grid; gap: 1.2rem; }
.address-row { display: flex; gap: 1rem; align-items: flex-start; }
.address-row svg {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: .15rem;
}
.address-row a:hover { color: var(--red); }
.map-link { font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--red); }
.map-link:hover { color: var(--red); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.2rem;
}
.form-row { display: grid; gap: .4rem; min-width: 0; }
.form-row label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(212, 15, 33, .12);
}
.form-row textarea { resize: vertical; }
.form-row.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .7rem;
}
.form-row.consent input { margin-top: .25rem; accent-color: var(--red); }
.form-row.consent label { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-row.consent a { color: var(--red); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand-footer { margin-bottom: 1.2rem; }
.brand-footer-logo { height: 120px; width: auto; }
.footer-tagline { font-size: .95rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .55rem; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: .85rem;
}
.to-top { font-weight: 600; color: #fff; }
.to-top:hover { color: var(--red); }

/* ---------- Modals (Impressum / AGB) ---------- */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(640px, 100vw - 2rem);
  width: 100%;
  max-height: calc(100vh - 2rem);
  margin: auto;
  color: var(--ink);
}
.modal-wide { max-width: min(860px, 100vw - 2rem); }
.modal::backdrop {
  background: rgba(11, 10, 42, .7);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: fadeUp .3s ease both; }
.modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: #fff;
}
.modal-head h2 { margin: 0; font-size: 1.3rem; color: #fff; }
.modal-close {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--red); transform: rotate(90deg); }
.modal-body {
  padding: 1.8rem;
  overflow-y: auto;
  line-height: 1.7;
}
.modal-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.6rem 0 .5rem;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { color: var(--ink); }
.modal-body a { color: var(--red); }
.modal-body a:hover { text-decoration: underline; }
.legal-subtitle { color: var(--muted); font-style: italic; margin-bottom: .5rem; }
.legal-heading-lg { font-size: 1.2rem !important; margin-top: 0 !important; }
.legal-part {
  margin-top: 2.2rem !important;
  padding: .6rem 1rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem !important;
}
.modal-body h4 { font-size: 1rem; color: var(--navy); margin: 1.3rem 0 .4rem; }
.legal p { font-size: .95rem; }
.legal ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 0;
  display: grid;
  gap: .6rem;
}
.legal li { font-size: .95rem; color: var(--ink); padding-left: .3rem; }
.legal-date { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
body.modal-open { overflow: hidden; }

/* ---------- Cookie / Consent Banner ---------- */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: 1rem;
  pointer-events: none;
}
.consent[hidden],
.consent [hidden] { display: none !important; }
.consent-card {
  pointer-events: auto;
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.8rem;
  align-items: center;
  padding: 1.8rem 2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #121a2b, #0e1420);
  border: 1px solid rgba(255, 255, 255, .1);
  border-top: 3px solid var(--red);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .55);
  color: rgba(255, 255, 255, .78);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  animation: consentIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
.consent-icon {
  width: 68px; height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(212, 15, 33, .14);
  border: 1px solid rgba(212, 15, 33, .45);
  box-shadow: 0 0 30px rgba(212, 15, 33, .25);
}
.consent-icon svg {
  width: 34px; height: 34px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.consent-body { min-width: 0; }
.consent-body h2 { font-size: 1.25rem; color: #fff; margin-bottom: .5rem; }
.consent-body p { margin: 0; font-size: .97rem; line-height: 1.7; }
.consent-links { margin-top: .9rem; display: flex; gap: .7rem; font-size: .92rem; }
.consent-links a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
.consent-links a:hover { color: #fff; }
.consent-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .7rem;
  min-width: 220px;
}
.consent-actions .btn { padding: .95rem 1.6rem; }
.consent-actions .btn-ghost { border-color: rgba(255, 255, 255, .25); }
.consent-settings-toggle {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .85);
  font: inherit;
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: .2rem;
}
.consent-settings-toggle:hover { color: #fff; }
.consent-settings {
  display: grid;
  gap: .6rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.consent-settings[hidden] { display: none; }
.consent-option {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  cursor: pointer;
}
.consent-option input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--red); flex: 0 0 auto; }
.consent-option input:disabled { opacity: .6; cursor: not-allowed; }
.consent-option strong { display: block; color: #fff; font-size: .95rem; }
.consent-option small { font-size: .85rem; color: rgba(255, 255, 255, .6); }
@keyframes consentIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes scroll {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { background-attachment: scroll; }
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .brand-logo { height: 32px; }
  .site-nav a:not(.btn) { font-size: .82rem; }
  .site-nav ul { gap: .8rem; }
  .btn-small { padding: .45rem .9rem; font-size: .82rem; }
  .lang-switch button { padding: .35rem .65rem; font-size: .78rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand-logo {
    height: 36px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }
  .lang-switch { padding: 3px; }
  .lang-switch button { padding: .3rem .55rem; font-size: .75rem; }
  .site-header.scrolled .brand-logo { height: 32px; }

  .nav-toggle { display: flex; order: 3; }
  .lang-switch { order: 2; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    margin-left: 0;
    background: rgba(14, 15, 39, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    pointer-events: none;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; }
  .site-nav li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav li:last-child { padding-top: 1rem; }
  .site-nav .btn { width: 100%; }

  .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat:nth-child(3) { border-left: 0; }
  .banner-features { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cards, .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .hero-content { padding-block: 4rem; }
  .contact-form { padding: 1.5rem; }
  .scroll-hint { display: none; }
  .site-nav a:not(.btn)::after { display: none; }
  .modal-head { padding: 1rem 1.2rem; }
  .modal-head h2 { font-size: 1.1rem; }
  .modal-body { padding: 1.2rem; }
}

@media (max-width: 900px) {
  .consent-card { grid-template-columns: auto 1fr; }
  .consent-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .consent-actions .btn { flex: 1 1 160px; }
  .consent-settings-toggle { flex: 1 1 100%; text-align: center; }
  .consent-icon { width: 52px; height: 52px; border-radius: 12px; align-self: start; }
  .consent-icon svg { width: 26px; height: 26px; }
}

@media (max-width: 600px) {
  .consent { padding: .6rem; }
  .consent-card { grid-template-columns: 1fr; padding: 1.3rem; gap: 1rem; }
  .consent-icon { width: 44px; height: 44px; }
  .consent-icon svg { width: 22px; height: 22px; }
  .consent-body h2 { font-size: 1.1rem; }
  .consent-body p { font-size: .9rem; }
  .consent-actions { min-width: 0; }
  .consent-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
}
