/* Trendgutachten – schwarz/weiß, ohne externe Schriften (schnell + DSGVO-freundlich) */
:root {
  --black: #0a0a0a;
  --ink: #111;
  --grey-1: #f4f4f4;
  --grey-2: #e6e6e6;
  --grey-3: #b5b5b5;
  --grey-4: #6b6b6b;
  --white: #fff;
  --royal: #1f45d1;        /* Königsblau */
  --royal-dark: #1636a8;
  --red: #c4271d;
  --radius: 6px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.5 var(--font); color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--grey-2); background: var(--white);
}
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.wordmark { font-size: 15px; letter-spacing: .22em; font-weight: 400; white-space: nowrap; }
.wordmark b { font-weight: 700; }
.logo-img { height: 36px; width: auto; }
.brand-sub { font-size: 12px; color: var(--grey-4); letter-spacing: .04em; }

.page-home .topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  background: transparent; border: 0; color: var(--white);
}
.page-home .brand-sub { color: rgba(255,255,255,.6); }
.page-home .logo-img { filter: invert(1); } /* schwarzes Logo -> weiß auf dem Bild; bei weißem Logo diese Zeile löschen */

/* ---------- Startseite ---------- */
.hero {
  flex: 1; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  background: #050505 center / cover no-repeat;
  color: var(--white); position: relative; padding: 110px 20px 80px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero-inner { position: relative; max-width: 760px; }
.hero-kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hero-title { margin: 0 0 44px; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; }

.btn-hero {
  display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 22px;
  padding: 22px 30px 22px 36px; text-align: left; text-decoration: none;
  background: var(--white); color: var(--black); border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(0,0,0,.45); }
.btn-hero:active { transform: translateY(0); }
.btn-hero-small { grid-column: 1; font-size: 14px; color: var(--grey-4); }
.btn-hero-big { grid-column: 1; font-size: clamp(20px, 3vw, 26px); font-weight: 700; line-height: 1.15; }
.btn-hero-arrow {
  grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; padding: 12px;
  border-radius: 50%; background: var(--black); color: var(--white); transition: transform .18s ease;
}
.btn-hero:hover .btn-hero-arrow { transform: translateX(3px); }

.hero-steps { list-style: none; display: flex; justify-content: center; gap: 28px; margin: 48px 0 0; padding: 0; font-size: 14px; color: rgba(255,255,255,.75); flex-wrap: wrap; }
.hero-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 11px; }

.page-home { position: relative; }
.page-home > main { flex: 1; }

/* ---------- Leistungen (Startseite) ---------- */
.services { background: var(--white); padding: clamp(64px, 10vw, 120px) clamp(20px, 4vw, 48px); }
.services-inner { max-width: 1120px; margin: 0 auto; }
.services-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-kicker { margin: 0 0 16px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--grey-4); }
.services-head h2 { margin: 0 0 14px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.services-sub { margin: 0 0 20px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; line-height: 1.35; color: var(--ink); }
.services-intro { margin: 0; font-size: 17px; line-height: 1.6; color: #444; }

.services-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service { grid-column: span 2; padding: 28px 26px 30px; border: 1px solid var(--grey-2); border-radius: 10px; background: var(--white); transition: border-color .18s ease, transform .18s ease; }
.service:nth-child(4) { grid-column: 2 / span 2; }
.service:hover { border-color: var(--black); transform: translateY(-2px); }
.service-icon { width: 44px; height: 44px; padding: 10px; margin-bottom: 20px; border-radius: 50%; background: var(--black); color: var(--white); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.005em; }
.service p { margin: 0; font-size: 16px; line-height: 1.55; color: #444; }
.note-ref { font-size: .7em; color: var(--grey-4); margin-left: 2px; }
.services-note { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--grey-4); }

.services-cta { margin-top: 44px; text-align: center; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px;
  padding: 16px 32px; border-radius: 999px; background: var(--black); color: var(--white);
  font-size: 17px; font-weight: 700; text-decoration: none; transition: background .15s ease, transform .15s ease;
}
.btn-cta svg { width: 20px; height: 20px; transition: transform .15s ease; }
.btn-cta:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-cta:hover svg { transform: translateX(3px); }

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service, .service:nth-child(4) { grid-column: auto; }
  .service:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services-head { margin-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service:last-child { grid-column: auto; }
  .service { padding: 22px 20px 24px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .service-icon { grid-row: 1 / span 2; margin: 0; }
  .services-intro { font-size: 16px; }
  .btn-cta { display: flex; width: 100%; }
}

/* ---------- Formular ---------- */
.form-wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 40px 20px 80px; flex: 1; }
.form-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 12px 0 8px; letter-spacing: -.02em; line-height: 1.05; }
.form-head p { margin: 0 0 36px; color: var(--grey-4); }
.back { font-size: 14px; color: var(--grey-4); text-decoration: none; }
.back:hover { color: var(--black); }

.case-form fieldset { border: 0; border-top: 1px solid var(--black); padding: 22px 0 30px; margin: 0; }
.case-form legend { font-weight: 700; font-size: 18px; padding: 0 12px 0 0; }
.case-form legend span { font-weight: 400; color: var(--grey-3); margin-right: 8px; font-variant-numeric: tabular-nums; }

.grid-2, .grid-3 { display: grid; gap: 4px 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.field { display: block; font-size: 13px; font-weight: 600; letter-spacing: .01em; margin-top: 14px; }
.field input, .field textarea, .field select {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px;
  font-size: 16px; font-weight: 400; background: var(--white);
  border: 1px solid var(--grey-3); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--grey-4); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.field-date { max-width: 260px; }
.upper { text-transform: uppercase; }
.field-error { display: block; min-height: 0; color: var(--red); font-size: 13px; font-weight: 400; margin-top: 4px; }
.field-error:empty { display: none; }
.has-error input, .has-error textarea { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dropzone {
  position: relative; margin-top: 14px; border: 1.5px dashed var(--grey-3); border-radius: var(--radius);
  background: var(--grey-1); transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--black); background: #ededed; }
.dropzone.has-error { border-color: var(--red); }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-text { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 16px; pointer-events: none; text-align: center; }
.dz-text svg { width: 34px; height: 34px; margin-bottom: 4px; }
.dz-text span { font-size: 13px; color: var(--grey-4); }
.dropzone.has-files .dz-text { padding: 18px 16px; }
.dropzone.has-files .dz-text svg { display: none; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--grey-2); animation: pop .2s ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-noprev img { display: none; }
.thumb-noprev::after { content: attr(data-name); position: absolute; inset: 8px; font-size: 11px; word-break: break-all; color: var(--grey-4); }
.thumb-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.thumb-x:hover { background: #000; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

.hint { font-size: 13px; color: var(--grey-4); margin: 14px 0 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; padding: 20px 0 0; border-top: 1px solid var(--grey-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); flex: none; }
.consent.has-error span { color: var(--red); }

.submit-row { margin-top: 30px; }
.btn-submit {
  display: block; width: 100%; padding: 19px 24px; border: 0; border-radius: var(--radius);
  background: var(--royal); color: var(--white); font-size: 18px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.btn-submit:hover { background: var(--royal-dark); }
.btn-submit:active { transform: scale(.995); }
.btn-submit:disabled { opacity: .75; cursor: progress; }
.progress { height: 4px; background: var(--grey-2); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: var(--royal); transition: width .2s ease; }
.submit-status { font-size: 14px; color: var(--grey-4); margin: 10px 0 0; min-height: 1.5em; text-align: center; }

.alert { padding: 14px 16px; border-left: 3px solid var(--red); background: #fbeceb; margin: 0 0 20px; font-size: 14px; }

/* ---------- Danke ---------- */
.thanks { flex: 1; max-width: 560px; margin: 0 auto; padding: 100px 20px; text-align: center; }
.thanks-check { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; background: var(--black); color: var(--white); padding: 18px; }
.thanks h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.02em; line-height: 1.1; }
.thanks p { color: var(--grey-4); }
.thanks-ref { margin: 24px 0 36px; color: var(--ink) !important; }
.btn-outline { display: inline-block; padding: 13px 26px; border: 1.5px solid var(--black); border-radius: 999px; text-decoration: none; font-weight: 600; transition: background .15s, color .15s; }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ---------- Textseiten ---------- */
.text-page { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 56px 20px 80px; }
.text-page h1 { font-size: 40px; letter-spacing: -.02em; margin: 0 0 28px; }
.text-page h2 { font-size: 16px; margin: 32px 0 8px; }
.text-page p { margin: 0 0 12px; color: #333; }

/* ---------- Fußzeile ---------- */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px clamp(20px, 4vw, 48px); font-size: 13px; color: var(--grey-4);
  border-top: 1px solid var(--grey-2);
}
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .btn-hero { padding: 18px 20px 18px 26px; column-gap: 16px; }
  .btn-hero-arrow { width: 42px; height: 42px; padding: 10px; }
  .hero-steps { gap: 14px; font-size: 13px; }
  .page-home .footer { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
