/* Studio E-Plan – Website-Stylesheet
   Farbwelt aus dem Original (Schwarz/Rot) übernommen, Typografie und Abstände verfeinert. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #c0181a;
  --red-dk: #9a1214;
  --red-soft: rgba(192, 24, 26, .08);
  --ink: #141414;
  --ink-2: #1d1d1f;
  --text: #2e2e30;
  --muted: #66666b;
  --line: #e6e6e8;
  --bg: #ffffff;
  --bg-muted: #f6f6f7;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05);
  --shadow: 0 10px 30px -12px rgba(17, 17, 17, .18);
  --container: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--red); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.icon { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 -2px 0 var(--red);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: inset 0 -2px 0 var(--red), 0 8px 24px -12px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav ul a {
  position: relative; display: block; padding: .5rem .85rem;
  color: rgba(255, 255, 255, .78); font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; transition: color .2s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: #fff; }
.main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .5);
  transition: border-color .2s, color .2s;
}
.lang-switch .lang-current { color: #fff; }
.lang-switch .lang-sep { opacity: .4; }
.lang-switch:hover { border-color: var(--red); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.875rem; min-width: 15rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dk); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
/* Buttons nebeneinander gleich breit (breitester bestimmt), gleiche Höhe über .btn min-height */
.btn-row { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .75rem; }
.btn-mt { margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--red); font-weight: 600; font-size: .875rem; white-space: nowrap; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(192, 24, 26, .28), transparent 60%),
    linear-gradient(115deg, #0d0d0d 45%, #1a0606 100%);
}
.hero::before, .page-hero::before {
  /* feines technisches Raster als Hinweis auf Planung */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; gap: 4rem; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.hero-tag::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--red); }
.hero-h1-sub { display: block; font-weight: 300; color: rgba(255, 255, 255, .85); }
.hero-lead { max-width: 34rem; font-size: 1.075rem; color: rgba(255, 255, 255, .68); margin-bottom: 2.25rem; }
.hero-stats {
  display: grid; gap: 1px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden;
}
.hero-stat { display: flex; flex-direction: column-reverse; padding: 1.4rem 1.6rem; background: rgba(12, 12, 12, .72); }
.hero-stat dd { font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #fff; }
.hero-stat dd::first-letter { color: inherit; }
.hero-stat dt { margin-top: .45rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hero-stat:first-child { border-left: 3px solid var(--red); }

.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.breadcrumb { display: flex; gap: .5rem; margin-bottom: .85rem; font-size: .8rem; color: rgba(255, 255, 255, .5); }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-muted { background: var(--bg-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink-2); color: rgba(255, 255, 255, .8); }
.section-header { margin-bottom: 2.5rem; max-width: 46rem; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .75rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.kicker-light { color: #ff6b6d; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
.section-dark .section-title { color: #fff; }
.section-sub { margin-top: .6rem; color: var(--muted); font-size: 1.02rem; }
.section-dark .section-sub { color: rgba(255, 255, 255, .55); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose-intro p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 1rem; }
.prose-intro .kicker { font-size: .72rem; line-height: 1.7; margin-bottom: .75rem; }
.prose-intro strong { color: var(--ink); font-weight: 600; }
.team { background: var(--bg-muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.team-title { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.team-list { display: grid; gap: .75rem; }
.team-card { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.team-card strong { color: var(--ink); font-weight: 600; }
.team-card small { color: var(--muted); font-size: .85rem; }
.avatar {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red);
}

/* Cards (Leistungen) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  position: relative; padding: 1.9rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 48px; background: var(--red); border-radius: var(--radius) 0 0 0; transition: width .3s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--red-soft); color: var(--red); margin-bottom: 1.1rem; }
.card h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; letter-spacing: -.005em; }
.card p { font-size: .925rem; color: var(--muted); line-height: 1.65; }

/* Referenzen */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.75rem; }
.ref-head { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
.ref-head .card-icon { width: 40px; height: 40px; margin: 0; border-radius: 8px; }
.ref-head h3 { flex: 1; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.ref-count { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-muted); border: 1px solid var(--line); padding: .15rem .55rem; border-radius: 999px; }
.ref-list li { position: relative; padding: .42rem 0 .42rem 1.1rem; font-size: .9rem; color: var(--text); border-bottom: 1px dashed var(--line); line-height: 1.45; }
.ref-list li:last-child { border-bottom: 0; }
.ref-list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 5px; background: var(--red); border-radius: 1px; }
.ref-note { margin-top: 2rem; color: var(--muted); font-style: italic; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1.5rem; }
.contact-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: rgba(192, 24, 26, .16); color: #ff5a5c; border: 1px solid rgba(192, 24, 26, .35); }
.contact-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .42); margin-bottom: .15rem; }
.contact-val { display: block; color: rgba(255, 255, 255, .9); font-size: 1rem; }
a.contact-val:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.map-card {
  position: relative; text-align: center; padding: 2.5rem 2rem; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    rgba(255, 255, 255, .02);
}
.map-pin { margin: 0 auto 1rem; color: var(--red); }
.map-address { margin-bottom: 1.5rem; color: rgba(255, 255, 255, .7); }
.map-address strong { color: #fff; font-weight: 600; }
.map-note { margin-top: 1rem; font-size: .75rem; color: rgba(255, 255, 255, .38); }

/* Fließtext (Impressum, Datenschutz) */
.prose { max-width: 48rem; }
.prose-lead { margin-bottom: 2.5rem; }
.prose h2, .prose h3 { margin: 2.25rem 0 .75rem; color: var(--ink); font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; padding-left: .85rem; border-left: 3px solid var(--red); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.1rem; margin-bottom: .35rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--red); border-radius: 1px; }
.prose ol { padding-left: 1.25rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0b; color: rgba(255, 255, 255, .5); font-size: .875rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 3rem; padding-bottom: 2rem; }
.footer-brand img { height: 32px; width: auto; margin-bottom: .85rem; }
.footer-contact { line-height: 1.8; }
.footer-contact a { color: rgba(255, 255, 255, .8); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .8rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

/* ---------- Scroll-Animation (nur wenn JS aktiv und Nutzer keine reduzierte Bewegung wünscht) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  /* backdrop-filter macht den Header zum Containing Block für das fixed Menü – mobil daher ohne */
  .site-header { backdrop-filter: none; background: #0a0a0a; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    background: #0b0b0b; transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 1rem 0; font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .main-nav ul a::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .lang-switch { align-self: flex-start; margin-top: 1.5rem; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat { padding: 1.1rem; }
  .hero-stat dd { font-size: 1.8rem; }
  .hero-inner { gap: 2.5rem; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .btn-row { display: grid; grid-auto-flow: row; }
  main .btn { width: 100%; padding-inline: 1rem; letter-spacing: .05em; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat:first-child { border-left: 0; }
  .ref-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .nav-toggle, .map-card .btn, .skip-link { display: none !important; }
  .hero, .page-hero, .section-dark { background: none !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
