/* ==========================================================
   P-M-B – Stylesheet
   Farben & Schriften lassen sich zentral in :root ändern.
   ========================================================== */
:root {
  --ink: #0b1f33;
  --navy: #0f2a44;
  --navy-2: #163a5c;
  --accent: #c98a2b;
  --accent-2: #e2a14a;
  --sand: #f6f1e8;
  --paper: #fbfaf7;
  --line: #e4ddd0;
  --text: #24374a;
  --muted: #5d6e7e;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(11, 31, 51, .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 26px -10px rgba(201, 138, 43, .8); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.2rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(11,31,51,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo img { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 3px 5px rgba(15, 111, 134, .35)); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; letter-spacing: .03em; color: var(--navy); text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 2px 3px rgba(11,42,73,.25); }
.logo-text small { font-family: var(--sans); font-size: .55rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: .3rem 0; color: var(--text); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.btn { color: var(--white); padding: .6rem 1.2rem; }
.nav-links a.btn:hover { color: var(--white); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #d6e2ee; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 20%, rgba(226,161,74,.16), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(22,58,92,.9), transparent 60%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; padding: clamp(3rem, 7vw, 6rem) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5.2vw, 4rem); margin: 1.2rem 0 1.4rem; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero p.lead { font-size: 1.2rem; max-width: 34em; color: #b9cbdc; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.12); aspect-ratio: 8 / 9; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: var(--white); color: var(--ink); border-radius: 14px; padding: .85rem 1.1rem; box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; display: flex; gap: .7rem; align-items: center; animation: floaty 6s ease-in-out infinite; }
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.float-card .dot { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(150deg, #2a6ba6, #0a2745); display: grid; place-items: center; color: #7ff0e6; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 12px -6px rgba(11,42,73,.7); }
.float-card .dot svg { width: 20px; height: 20px; }
.fc-1 { left: -28px; bottom: 16%; }
.fc-2 { right: -14px; top: 9%; animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Strip ---------- */
.strip { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); }
.strip ul { list-style: none; margin: 0; padding: 1.2rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.4rem; color: #a9bfd3; font-size: .92rem; font-weight: 500; letter-spacing: .04em; }
.strip li { display: flex; align-items: center; gap: .6rem; }
.strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.sec-head { max-width: 46rem; margin-bottom: 3rem; }
.sec-head .eyebrow { color: var(--accent); }
.sec-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin: .9rem 0 1rem; }
.sec-head p { color: var(--muted); font-size: 1.12rem; }

/* Leistungen */
.cards { align-items: start; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem; }
.cards .card { grid-column: span 2; }
.cards .card:nth-child(n+4) { grid-column: span 3; }
.card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .num { position: absolute; top: 1rem; right: 1rem; z-index: 1; font-family: var(--serif); font-size: 1rem; color: var(--navy); font-style: italic; background: rgba(255,255,255,.8); padding: .05rem .7rem; border-radius: 999px; }
.card-art { margin: -2rem -1.8rem 0; }
.card-art img { width: 100%; height: auto; aspect-ratio: 640 / 280; object-fit: cover; }
.card .icon { margin-top: -2.4rem; position: relative; border: 4px solid var(--white); }
.icon { width: 56px; height: 56px; border-radius: 15px; background: linear-gradient(150deg, #2a6ba6 0%, #0e3560 55%, #0a2745 100%); color: #7ff0e6; display: grid; place-items: center; margin-bottom: 1.4rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -4px 8px rgba(0,0,0,.28), 0 12px 22px -10px rgba(11,42,73,.8); transition: transform .3s, background .3s, color .3s; }
.icon svg { width: 27px; height: 27px; filter: drop-shadow(0 0 5px rgba(127,240,230,.55)); }
.card:hover .icon { transform: translateY(-3px); background: linear-gradient(150deg, #ffd48a 0%, #e2a14a 55%, #b9761f 100%); color: var(--ink); }
.card:hover .icon svg { filter: none; }
.card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.card .tag { font-size: .9rem; font-weight: 600; color: var(--accent); margin-bottom: .9rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card ul { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-size: .95rem; }
.card li { display: flex; gap: .6rem; }
.card li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: .42em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* Ansatz */
.approach { background: var(--sand); }
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split .media { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.3rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; counter-increment: s; }
.steps li::before { content: counter(s); width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--accent-2); font-family: var(--serif); font-size: 1.3rem; display: grid; place-items: center; }
.steps h3 { font-size: 1.2rem; margin-bottom: .2rem; font-family: var(--sans); font-weight: 700; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Kompetenzen */
.comp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comp > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.4rem; display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 1rem; transition: transform .25s, border-color .25s, box-shadow .25s; }
.comp > div:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px -18px rgba(11,31,51,.4); }
.comp svg { width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: linear-gradient(150deg, #2a6ba6 0%, #0e3560 55%, #0a2745 100%); color: #7ff0e6; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 6px rgba(0,0,0,.28), 0 10px 18px -10px rgba(11,42,73,.8); transition: background .25s, color .25s; }
.comp > div:hover svg { background: linear-gradient(150deg, #ffd48a, #e2a14a 55%, #b9761f); color: var(--ink); }
.comp h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin-bottom: .25rem; }
.comp p { color: var(--muted); font-size: .96rem; line-height: 1.55; }

/* CTA band */
.band { background: var(--navy); color: #c5d5e4; padding: clamp(3rem, 6vw, 4.6rem) 0; position: relative; overflow: hidden; }

.band .band-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band h2 { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.band p { margin-top: .6rem; max-width: 36rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-card { background: var(--navy); color: #c5d5e4; border-radius: var(--radius); padding: 2.2rem; }
.info-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 1.2rem; }
.info-row { display: flex; gap: 1rem; margin-top: 1.2rem; }
.info-row svg { width: 24px; height: 24px; color: var(--accent-2); flex: none; margin-top: 3px; }
.info-row strong { color: var(--white); display: block; }
.info-row img { margin: .25rem 0 0 -3px; max-width: 100%; height: auto; }
.spam-note { margin-top: 1.6rem; font-size: .82rem; color: #8fa6bb; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); display: grid; gap: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,138,43,.18); }
.check { display: flex; gap: .7rem; font-size: .88rem; color: var(--muted); align-items: flex-start; }
.check input { margin-top: .3rem; accent-color: var(--accent); }
.check a { color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.form-msg { display: none; padding: 1rem 1.2rem; border-radius: 12px; font-weight: 500; }
.form-msg.ok { display: block; background: #e8f4ec; color: #1d5a35; }
.form-msg.err { display: block; background: #fbe9e7; color: #8a2a1c; }

/* Footer */
.site-footer { background: var(--ink); color: #94aac0; padding: 3.5rem 0 2rem; font-size: .96rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .logo { margin-bottom: 1rem; }
.site-footer .logo-text b { color: var(--white); text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.site-footer .logo-text small { color: #94aac0; }
.site-footer h4 { color: var(--white); margin: 0 0 1rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent-2); }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .88rem; }

/* Rechtstexte */
.legal { padding: 3.5rem 0 5rem; max-width: 50rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--text); margin-bottom: .8rem; }
.legal .todo { background: #fff6e0; border-left: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 8px; }

/* Scroll-Animationen (nur mit JS aktiv) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* Aufklappbare Details in Leistungskarten */
.more { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.more summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: .5rem; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); color: var(--accent); font-weight: 700; transition: transform .2s; }
.more[open] summary::after { content: "–"; }
.more p { margin-top: .8rem; font-size: .96rem; }
.more .sub { font-weight: 600; color: var(--accent); }

/* Referenzen */
.refs { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ref-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.ref-grid li { position: relative; overflow: hidden; height: 118px; padding: 10px 12px; display: grid; place-items: center; border-radius: 16px; border: 1px solid #cfd8e2; background: linear-gradient(180deg, #ffffff 0%, #f1f4f8 60%, #e3e9f0 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -5px 0 rgba(11,42,73,.07), 0 2px 0 rgba(11,42,73,.10), 0 12px 20px -10px rgba(11,42,73,.45); transition: transform .2s ease, box-shadow .2s ease; }
.ref-grid li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.2)); border-radius: 16px 16px 60% 60% / 16px 16px 14px 14px; pointer-events: none; }
.ref-grid li:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 #fff, inset 0 -5px 0 rgba(11,42,73,.07), 0 2px 0 rgba(11,42,73,.10), 0 20px 28px -12px rgba(11,42,73,.5); }
.ref-grid li:active { transform: translateY(2px); box-shadow: inset 0 3px 6px rgba(11,42,73,.18), 0 1px 0 rgba(11,42,73,.10); }
.ref-grid img { position: relative; z-index: 1; mix-blend-mode: multiply; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ref-note { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }

/* CTA-Illustration */
.band .band-in { position: relative; }
.cta-art { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 230px; height: auto; opacity: .95; }
.band .band-in > .btn { margin-right: 250px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card, .cards .card:nth-child(n+4) { grid-column: auto; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .fc-1 { left: -8px; }
  .fc-2 { right: -8px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.4rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(11,31,51,.4); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 1rem; }
  .nav-links a { display: block; padding: 1rem 0; }
  .nav-links a.btn { display: flex; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-grid li { height: 104px; }
  .cta-art { display: none; }
  .band .band-in > .btn { margin-right: 0; }
  .comp { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .band .btn { width: 100%; }
  .float-card { padding: .6rem .8rem; font-size: .8rem; }
  .fc-1 { bottom: 8%; }
  .foot { grid-template-columns: 1fr; }
}

/* Kontakt-Bilder in Rechtstexten */
.legal img.ct { display: inline-block; vertical-align: middle; height: auto; max-width: 100%; margin: .15rem 0; }

