/* EQSE – gemeinsames Stylesheet (DE/FR/EN) */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }

:root {
  --blue: #16457B;
  --blue-deep: #0C284A;
  --blue-mid: #2B63A3;
  --blue-tint: #EAF0F7;
  --ink: #444444;
  --title: #222222;
  --ink-soft: #5A626C;
  --line: #D6DDE6;
  --paper: #FFFFFF;
  --paper-alt: #F3F4F6;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.15rem, 1.7vw, 1.4rem);
  --fs-h3: 1.05rem;
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h1: clamp(2.1rem, 4.8vw, 3.6rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300; font-size: var(--fs-body); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--title); font-weight: 500; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
p, ul, dl { margin: 0; }
strong { font-weight: 500; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); }

/* Akzentlinie unter Überschriften (wie bisherige Website) */
.mark { padding-bottom: 1.1rem; position: relative; }
.mark::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: var(--blue); }

.k {
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-mid);
}

.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 500; font-size: .95rem; padding: .85rem 2rem; border-radius: 6px; border: 2px solid var(--blue);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: transparent; color: var(--blue); }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .85rem; }
.brand img { width: 106px; height: 36px; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-small); font-weight: 400; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta { color: var(--blue); font-weight: 500; border: 1px solid var(--blue); border-radius: 6px; padding: .35rem .95rem; }
.nav .nav-cta:hover { background: var(--blue); color: #fff; }
.lang { display: flex; gap: .2rem; font-size: .78rem; letter-spacing: .06em; }
.lang a, .lang span { padding: .2rem .45rem; border-radius: 3px; font-weight: 500; text-decoration: none; }
.lang span { background: var(--blue); color: #fff; }
.lang a { color: var(--ink-soft); }
.lang a:hover { color: var(--blue); background: var(--blue-tint); }
@media (max-width: 68rem) {
  /* Tablet/Smartphone: Logo + Sprache oben, Abschnitte als wischbare Leiste darunter */
  html { scroll-padding-top: 7.5rem; }
  .site-header .wrap { flex-wrap: wrap; row-gap: .55rem; padding-block: .7rem .6rem; }
  .nav { display: contents; }
  .lang { order: 2; }
  .nav ul {
    order: 3; flex: 1 0 100%; gap: .35rem; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: .15rem var(--gutter) .2rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent 100%);
  }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav li { flex: 0 0 auto; }
  .nav ul a { display: block; white-space: nowrap; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
  .nav ul .nav-cta { padding: .4rem .9rem; border-radius: 999px; background: var(--blue); color: #fff; }
}

/* ---------- Einstieg ---------- */
.hero { position: relative; isolation: isolate; background: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(255,255,255,.97) 0%, rgba(255,255,255,.95) 55%, rgba(255,255,255,.45) 75%, rgba(255,255,255,0) 92%);
}
.hero-inner { padding-block: clamp(4.5rem, 11vw, 8rem); }
.hero .eyebrow { font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem; }
.hero h1 { font-weight: 500; font-size: var(--fs-h1); color: var(--title); max-width: 15em; letter-spacing: -.01em; }
.hero .intro { font-size: var(--fs-lead); margin-top: 1.6rem; max-width: 29em; color: var(--title); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2.2rem; }
.hero .tel { color: var(--title); text-decoration: none; font-weight: 400; }
.hero .tel:hover { color: var(--blue); }
.credentials {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; padding: 1.3rem 0 0; margin-top: 2.8rem;
  border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink); max-width: 34rem;
}
@media (max-width: 48rem) {
  /* Smartphone: Foto als eigener Streifen oben, Text darunter auf Weiß */
  .hero-bg { position: static; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 78% 72%; }
  .hero::after { display: none; }
  .hero-inner { padding-block: 2.25rem 3.5rem; }
}

/* Leistungen im Überblick (wie bisherige Leistungskarten) */
.pillars { background: var(--paper-alt); padding-block: clamp(3.5rem, 7vw, 5rem); }
.pillars-title { text-align: center; font-size: var(--fs-h2); margin-bottom: clamp(2rem, 4vw, 3rem); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pillars a {
  display: grid; gap: .5rem; align-content: start; background: #fff; color: var(--ink); text-decoration: none;
  padding: 2.2rem 2rem 2rem; border-radius: 8px; transition: transform .25s, box-shadow .25s;
}
.pillars a:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(34,34,34,.08); color: var(--ink); }
.pillars strong { font-size: clamp(1.1rem, 1.6vw, 1.3rem); hyphens: manual; overflow-wrap: break-word; font-weight: 500; color: var(--blue); position: relative; padding-bottom: 1rem; margin-bottom: .6rem; }
.pillars strong::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: var(--blue); }
.pillars span:last-child { color: var(--ink); }
.pillars .k { font-size: .7rem; order: -1; }
@media (max-width: 60rem) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section.tint { background: var(--paper-alt); }
.section h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); font-weight: 400; color: var(--ink); line-height: 1.5; }
.section-text { margin-top: 1.1rem; }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.portrait figcaption { margin-top: 1rem; font-size: var(--fs-small); color: var(--ink-soft); }
.portrait figcaption strong { display: block; color: var(--ink); }
.about-text { display: grid; gap: 1.1rem; max-width: 38em; }
.about-text h2 { margin-bottom: .6rem; }
.big { font-size: var(--fs-lead); font-weight: 400; line-height: 1.5; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.facts div { border-top: 2px solid var(--blue); padding-top: .8rem; }
.facts dt { font-size: 2rem; font-weight: 600; color: var(--blue); line-height: 1.1; }
.facts dd { margin: .35rem 0 0; font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 52rem) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 20rem; }
}
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } }

/* Leistungen: Bild + Text im Wechsel */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.25rem, 2.5vw, 2rem) clamp(2rem, 4.5vw, 4rem); align-items: center; }
.feature.flip .feature-img { order: 2; }
.feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.feature-text { display: grid; gap: 1.15rem; max-width: 38em; }
.feature-text .k { margin-bottom: -.3rem; }
.feature-more {
  grid-column: 1 / -1; order: 3; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem clamp(2rem, 4.5vw, 4rem);
  background: var(--paper-alt); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
}
.tint .feature-more { background: #fff; }
.feature-more .two { display: contents; }
.feature-more > ul, .feature-more .two > div { align-self: start; }
.feature-more .goal, .tint .feature-more .goal { grid-column: 1 / -1; justify-self: start; margin-top: 0; background: var(--blue-tint); }
@media (max-width: 52rem) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-img { order: 0; }
  .feature-img img { aspect-ratio: 16 / 9; }
  .feature-more { grid-template-columns: 1fr; row-gap: .1rem; }
  .feature-more .two > div + div { margin-top: 1.25rem; }
  .feature-more .goal, .tint .feature-more .goal { margin-top: 1rem; }
}

.list { list-style: none; padding: 0; display: grid; gap: .1rem; align-content: start; }
.list li { position: relative; padding: .4rem 0 .4rem 1.5rem; }
.list li::before {
  content: ""; position: absolute; left: .2rem; top: 1.1rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--blue);
}
.two { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: .4rem; }
.two h3 { font-size: var(--fs-h3); font-weight: 600; color: var(--ink); margin-bottom: .6rem; line-height: 1.35; }
.goal {
  font-weight: 500; color: var(--blue); background: var(--blue-tint); border-radius: 6px; padding: 1rem 1.25rem; margin-top: .4rem;
}
.tint .goal { background: #fff; }

/* Arbeitsweise */
.aw-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.statement { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 400; color: var(--blue); line-height: 1.25; margin-top: 1rem; }
.principles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.principles li { background: var(--paper-alt); border-radius: 8px; padding: 1.6rem; }
.principles strong { display: block; color: var(--blue); font-weight: 500; margin-bottom: .35rem; }
.principles .clients { grid-column: 1 / -1; background: var(--blue-tint); }
@media (max-width: 60rem) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .principles { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { background: var(--paper-alt); padding-block: var(--section); }
.contact h2 { font-size: var(--fs-h2); position: relative; padding-bottom: 1.1rem; }
.contact h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: var(--blue); }
.contact .lead { margin: 1.2rem 0 2rem; max-width: 30em; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact dl { display: grid; border-top: 1px solid var(--line); }
.contact dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact dt { font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: .2rem; }
.contact dd { margin: 0; font-weight: 400; color: var(--title); }
.contact dd a { color: var(--title); text-decoration: none; }
.contact dd a:hover { color: var(--blue); text-decoration: underline; }
.network { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.network h3 { font-size: var(--fs-h3); font-weight: 500; color: var(--title); }
.labels { display: flex; align-items: center; gap: 2rem; background: #fff; padding: 1rem 1.5rem; border-radius: 8px; }
.labels img:first-child { width: 151px; height: 56px; }
.labels img:last-child { width: 70px; height: 56px; }
@media (max-width: 52rem) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .contact dl div { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- Fußzeile (blau wie bisher) ---------- */
.site-footer { background: var(--blue); color: #fff; padding-block: 1.4rem; font-size: var(--fs-small); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer nav { display: flex; align-items: center; gap: 1.5rem; }
.site-footer .social { display: inline-flex; opacity: .9; }
.site-footer .social:hover { opacity: 1; }

/* ---------- Rechtliches ---------- */
.legal { padding-block: clamp(3rem, 6vw, 4.5rem) var(--section); }
.legal .wrap { max-width: 50rem; }
.legal h1 { font-size: var(--fs-h1); }
.toc { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.toc a { border: 1px solid var(--blue); border-radius: 6px; padding: .45rem 1rem; text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.toc a:hover { background: var(--blue); color: #fff; }
.legal section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.legal h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; }
.legal h3 { font-size: 1.15rem; font-weight: 500; color: var(--blue); margin: 2.25rem 0 .75rem; }
.legal p, .legal ul { margin-bottom: .9rem; }
.legal ul { padding-left: 1.2rem; }
.imprint, .facts-legal { display: grid; border-top: 1px solid var(--line); margin-bottom: 1rem; }
.imprint div, .facts-legal div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.imprint dt, .facts-legal dt { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: .25rem; }
.imprint dd, .facts-legal dd { margin: 0; }
.notice { background: var(--paper-alt); border-left: 3px solid var(--blue); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; }
@media (max-width: 36rem) { .imprint div, .facts-legal div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Fehlerseite ---------- */
.notfound { padding-block: var(--section); }
.notfound .wrap { max-width: 50rem; display: grid; gap: 1.2rem; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.nowrap { white-space: nowrap; }
.contact .vcard { margin-top: 1.1rem; font-size: var(--fs-small); }
.contact .vcard a { font-weight: 500; }
