/* Lokal gehostete Schriften (DM Sans / DM Serif Display, SIL Open Font License 1.1) */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/dm-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/dm-serif-display-latin-400-italic.woff2') format('woff2'); }

    :root {
  --ink:        #1a1f2e;
  --ink-light:  #4a5168;
  --ink-faint:  #8892a4;
  --bg:         #f6f5f1;
  --bg-card:    #ffffff;
  --bg-dark:    #1a1f2e;
  --accent:     #1d5c8a;
  --accent-h:   #174d78;
  --accent-2:   #2e8b6e;
  --rule:       #dedad2;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --radius:     2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ═══ NAV ═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(246,245,241,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo {
  width: 40px; height: 40px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo svg { display: block; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.nav-brand-sub { font-size: .65rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none; font-size: .8rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-light); transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ HERO ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 4.5rem; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 7vw 5vw 7vw 10vw; position: relative;
}
.hero-left::after {
  content: ''; position: absolute; right: 0; top: 12%; bottom: 12%;
  width: 1px; background: var(--rule);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.6rem;
}
.hero-tag::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--accent); }
h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.15; margin-bottom: 1.6rem; color: var(--ink);
}
h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.05rem; color: var(--ink-light);
  max-width: 44ch; margin-bottom: .8rem; line-height: 1.85;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-claim {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--accent-2);
  margin-bottom: 2.4rem; padding-left: 1rem;
  border-left: 2px solid var(--accent-2);
}
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .85rem 2rem;
  background: var(--accent); color: #fff;
  text-decoration: none; font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; border-radius: var(--radius);
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.hero-right { position: relative; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: .4rem; padding: .4rem;
}
.hero-img { overflow: hidden; position: relative; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.hero-img:hover img { transform: scale(1.05); }
.hero-img:first-child { grid-row: 1 / 3; }
.img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .5rem .8rem;
  background: linear-gradient(transparent, rgba(26,31,46,.72));
  font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

/* ═══ SECTION BASE ═══════════════════════════════════ */
.section-eyebrow {
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-eyebrow::before { content: ''; display: block; width: 1.6rem; height: 1px; background: var(--accent); }
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.2; margin-bottom: 1rem;
}
.section-h2 em { font-style: italic; color: var(--accent); }
.section-lead { color: var(--ink-light); font-size: .97rem; max-width: 56ch; line-height: 1.8; }

/* ═══ FÜR WEN ════════════════════════════════════════ */
#fuerwen {
  padding: 7rem 10vw;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
}
#fuerwen .section-h2 { margin-bottom: 1.2rem; }
.fuerwen-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.fuerwen-item { display: flex; gap: 1rem; align-items: flex-start; }
.fuerwen-icon {
  width: 2.4rem; height: 2.4rem; flex-shrink: 0;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.fuerwen-item h4 { font-weight: 500; font-size: .97rem; margin-bottom: .15rem; }
.fuerwen-item p { font-size: .88rem; color: var(--ink-light); }

.fuerwen-right {
  background: var(--accent);
  color: #fff; padding: 3rem 2.5rem;
  position: relative;
}
.fuerwen-right::before {
  content: '»';
  font-family: var(--serif); font-size: 6rem;
  color: rgba(255,255,255,.1);
  position: absolute; top: -1rem; left: 1.5rem;
  line-height: 1;
}
.fuerwen-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.4; margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.fuerwen-quote-sub { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.fuerwen-divider { width: 2rem; height: 1px; background: rgba(255,255,255,.3); margin: 1.2rem 0; }

/* ═══ LEISTUNGEN ══════════════════════════════════════ */
#leistungen { padding: 7rem 10vw; background: var(--bg-card); }
.leistungen-header { margin-bottom: 3.5rem; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.card {
  background: var(--bg-card); padding: 2rem 1.8rem;
  border-top: 3px solid transparent;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.card:hover { border-color: var(--accent); }
.card-icon { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .5rem; }
.card p { font-size: .88rem; color: var(--ink-light); line-height: 1.7; }

/* ═══ PROZESS ════════════════════════════════════════ */
#prozess { padding: 7rem 10vw; }
.prozess-header { margin-bottom: 4rem; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 2rem; left: 2rem; right: 2rem; height: 1px;
  background: var(--rule); z-index: 0;
}
.step { padding: 0 1.5rem 0 0; position: relative; }
.step-num {
  width: 4rem; height: 4rem;
  background: var(--bg-card); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.4rem; font-style: italic;
  color: var(--accent); margin-bottom: 1.5rem;
  position: relative; z-index: 1;
  transition: background .2s, color .2s;
}
.step:hover .step-num { background: var(--accent); color: #fff; }
.step h4 { font-weight: 500; font-size: 1rem; margin-bottom: .4rem; }
.step p { font-size: .86rem; color: var(--ink-light); line-height: 1.7; }

/* ═══ REFERENZ ═══════════════════════════════════════ */
#referenz {
  background: var(--bg-dark); color: var(--bg);
  padding: 7rem 10vw;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
}
#referenz .section-eyebrow { color: var(--accent-2); }
#referenz .section-eyebrow::before { background: var(--accent-2); }
#referenz .section-h2 { color: var(--bg); }
#referenz .section-h2 em { color: var(--accent-2); }
#referenz p { color: rgba(246,245,241,.7); font-size: .96rem; margin-bottom: .9rem; line-height: 1.8; }
.referenz-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.referenz-tag {
  padding: .3rem .9rem;
  border: 1px solid rgba(255,255,255,.15);
  font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(246,245,241,.6);
  border-radius: var(--radius);
}
.referenz-right { display: flex; flex-direction: column; gap: 1.2rem; }
.result-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 1.8rem;
  border-left: 3px solid var(--accent-2);
}
.result-card .result-label {
  font-size: .7rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .4rem;
}
.result-card p { color: rgba(246,245,241,.75); font-size: .9rem; margin: 0; }

/* ═══ ÜBER ═══════════════════════════════════════════ */
#ueber {
  padding: 7rem 10vw;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
}
#ueber .section-h2 { margin-bottom: 1.2rem; }
#ueber p { color: var(--ink-light); font-size: .96rem; margin-bottom: .9rem; line-height: 1.8; }
.timeline { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding-bottom: 1.4rem; position: relative;
}
.tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: .7rem; top: 1.6rem; bottom: 0;
  width: 1px; background: var(--rule);
}
.tl-dot {
  width: 1.4rem; height: 1.4rem; flex-shrink: 0;
  border-radius: 50%; background: var(--bg-card);
  border: 2px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  margin-top: .2rem; position: relative; z-index: 1;
  transition: border-color .2s;
}
.tl-item:hover .tl-dot { border-color: var(--accent); }
.tl-dot-inner { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .2s; }
.tl-item:hover .tl-dot-inner { opacity: 1; }
.tl-content h5 { font-weight: 500; font-size: .92rem; color: var(--ink); }
.tl-content p { font-size: .83rem; color: var(--ink-light); margin: 0; line-height: 1.6; }

.ueber-img-wrap { position: relative; }
.ueber-img-wrap img { width: 100%; display: block; object-fit: cover; height: 460px; }
.ueber-badge {
  position: absolute; bottom: -1.2rem; right: -1.2rem;
  background: var(--accent-2); color: #fff;
  padding: 1.4rem 1.6rem;
  font-family: var(--serif); font-size: 1rem; font-style: italic;
  max-width: 15rem; line-height: 1.45; z-index: 1;
}

/* ═══ KONTAKT ════════════════════════════════════════ */
#kontakt {
  padding: 7rem 10vw; background: var(--bg-card);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start;
}
#kontakt .section-h2 { margin-bottom: .8rem; }
#kontakt .intro { color: var(--ink-light); margin-bottom: 2rem; font-size: .96rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-icon {
  width: 2.4rem; height: 2.4rem; border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.contact-item strong {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .1rem;
}
.contact-item a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.contact-item a:hover { color: var(--accent); }
.contact-item span { font-size: .95rem; }

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .35rem;
}
.form-row input, .form-row textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--rule); background: var(--bg);
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  outline: none; transition: border-color .2s;
  -webkit-appearance: none; border-radius: 0;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); background: #fff; }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-notice { font-size: .75rem; color: var(--ink-faint); margin-top: .9rem; line-height: 1.5; }
.form-notice a { color: var(--accent); }
#form-success {
  display: none; background: #eaf4f0; border-left: 3px solid var(--accent-2);
  padding: 1.1rem 1.3rem; font-size: .92rem; color: var(--ink); margin-top: 1rem;
}
#form-error {
  display: none; background: #fdf0ef; border-left: 3px solid #c0392b;
  padding: 1.1rem 1.3rem; font-size: .92rem; color: var(--ink); margin-top: 1rem;
}

/* ═══ FOOTER ═══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--rule); padding: 2rem 10vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .8rem;
  font-size: .78rem; color: var(--ink-faint);
}
footer a { color: var(--ink-faint); text-decoration: none; margin-left: 1.4rem; }
footer a:hover { color: var(--accent); }

/* ═══ SUBPAGES ════════════════════════════════════════ */
.subpage { display: none; padding: 8rem 10vw 5rem; max-width: 820px; }
.subpage.active { display: block; }
.subpage h1 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 2rem; }
.subpage h2 { font-family: var(--serif); font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.subpage p, .subpage address { font-size: .95rem; color: var(--ink-light); margin-bottom: .7rem; font-style: normal; }
.subpage a { color: var(--accent); }
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; margin-bottom: 1.8rem;
}


/* ═══ ANIMATIONS ═════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-left > * { animation: fadeUp .7s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .1s; }
.hero-left > *:nth-child(2) { animation-delay: .22s; }
.hero-left > *:nth-child(3) { animation-delay: .36s; }
.hero-left > *:nth-child(4) { animation-delay: .48s; }
.hero-left > *:nth-child(5) { animation-delay: .6s; }

/* ═══ RESPONSIVE ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left::after { display: none; }
  .hero-left { padding: 7rem 6vw 3rem; }
  .hero-right { height: 55vw; position: relative; }
  .hero-grid { position: absolute; inset: 0; height: 100%; }
  #fuerwen, #ueber, #kontakt, #referenz { grid-template-columns: 1fr; padding: 5rem 6vw; }
  .fuerwen-right { margin-top: 1rem; }
  #leistungen, #prozess { padding: 5rem 6vw; }
  .ueber-img-wrap img { height: 320px; }
  .ueber-badge { right: 0; bottom: -.8rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex; position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(246,245,241,.98); border-bottom: 1px solid var(--rule);
    padding: 1rem 0; z-index: 99;
  }
  .nav-links.open li a { display: block; padding: .75rem 6vw; font-size: .95rem; }
  .nav-toggle { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  footer a { margin-left: 0; margin-right: 1rem; }
}
    /* ═══ HILFSKLASSEN (ersetzen Inline-Styles wegen CSP) ═══ */
    .hidden { display: none !important; }
    .order-1 { order: 1; }
    .order-2 { order: 2; }
    .hp-field { display: none; }
    #form-success.show, #form-error.show { display: block; }
