/* =========================================================
   Schäfer Zertifizierung – Stylesheet
   Dunkles Farbkonzept (Navy / Gold), passend zur bestehenden
   "Im Aufbau"-Seite.
   ========================================================= */

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

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-700.woff2") format("woff2");
}

:root {
  --color-bg-top: #123655;
  --color-bg-bottom: #071522;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-strong: rgba(255, 255, 255, 0.08);
  --color-primary: #0f2c46;
  --color-primary-dark: #071522;
  --color-primary-light: #1f4e79;
  --color-accent: #c9a15a;
  --color-accent-light: #ddbc7f;
  --color-accent-dark: #a9822f;
  --color-text: #e7ecf1;
  --color-text-muted: #93a4b6;
  --color-heading: #f5f8fa;
  --color-border: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --max-width: 1160px;
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background:
    radial-gradient(1300px 750px at 12% -12%, rgba(31, 78, 121, 0.55), transparent 60%),
    radial-gradient(1000px 700px at 92% 8%, rgba(195, 161, 90, 0.14), transparent 55%),
    linear-gradient(165deg, var(--color-bg-top) 0%, var(--color-bg-bottom) 75%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(1400px 900px at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(1400px 900px at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
}

h3, h4 {
  font-family: var(--font-base);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--color-text); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(201, 161, 90, 0.4);
  border-radius: 999px;
  background: rgba(201, 161, 90, 0.08);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section--muted {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section--dark {
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(201, 161, 90, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head h2::after,
.hero h1::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  margin-top: 18px;
}

.section-head.center h2::after {
  margin-left: auto;
  margin-right: auto;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Decorative emblem ---------- */

.hero__emblem,
.page-hero__emblem {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  opacity: .55;
  pointer-events: none;
}
.page-hero__emblem { width: 320px; height: 320px; right: -40px; opacity: .4; }

@media (max-width: 1100px) {
  .hero__emblem { right: -140px; opacity: .35; }
}
@media (max-width: 700px) {
  .hero__emblem, .page-hero__emblem { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #1a1204;
}
.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 161, 90, 0.3);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(201, 161, 90, .55);
  color: var(--color-accent-light);
}
.btn--outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #1a1204;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 34, .72);
  backdrop-filter: blur(12px);
  z-index: -1;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--color-heading);
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand__text small {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__list a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--color-text-muted);
  transition: background .15s ease, color .15s ease;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  background: rgba(201, 161, 90, 0.12);
  color: var(--color-accent-light);
}

.nav__cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-heading);
  margin: 6px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 480px) {
  .brand__text small { display: none; }
  .brand { font-size: 1rem; }
  .site-header .container { height: 68px; }
  .nav { inset: 68px 0 0 0 !important; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: #0a1c2d;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    overflow-y: auto;
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: 4px;
  }
  .nav__list a {
    padding: 14px 16px;
  }
  .nav__cta {
    margin: 16px 0 0;
  }
  .nav__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 116px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { color: var(--color-heading); }
.hero h1 .accent { color: var(--color-accent); }

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero__badge {
  font-size: .85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__badge svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-accent); }

.hero__visual {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}

.hero__visual-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 12px;
  padding: 24px;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}

.hero__visual-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--color-heading);
}

.hero__stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.hero__stat:last-child { border-bottom: none; }
.hero__stat strong {
  color: var(--color-accent-light);
  font-size: 1.3rem;
}
.hero__stat span {
  font-size: .82rem;
  color: var(--color-text-muted);
}

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding: 68px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--color-heading); margin-bottom: .3em; }
.page-hero p { color: var(--color-text-muted); max-width: 60ch; margin: 0; }
.breadcrumb {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--color-accent-light); }

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.24);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(201, 161, 90, 0.14);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }

.card h3 { color: var(--color-heading); }
.card p:last-child { margin-bottom: 0; }

/* ---------- Process steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding-top: 8px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; color: var(--color-heading); }
.step p { color: var(--color-text-muted); font-size: .95rem; }

/* ---------- Stats band ---------- */

.stats {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0;
}
.stats .grid {
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-accent);
  font-weight: 700;
}
.stats span {
  font-size: .9rem;
  color: var(--color-text-muted);
}

/* ---------- About / split ---------- */

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.portrait svg { width: 38%; height: 38%; opacity: .85; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.checklist li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}
.checklist svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}
.checklist span { color: var(--color-text); }

/* ---------- Quote ---------- */

.quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 24px;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-heading);
  margin: 24px 0;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-base);
  font-style: normal;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(201, 161, 90, 0.14), transparent 65%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--color-heading); margin-bottom: .3em; }
.cta-band p { color: var(--color-text-muted); margin: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info strong {
  display: block;
  color: var(--color-heading);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}

.form-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-card h3 { color: var(--color-heading); }

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--color-text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(147, 164, 182, .7); }
.field select option { background: #0f2c46; color: var(--color-text); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.form-note {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}
.form-note a { color: var(--color-accent-light); }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: .9rem;
  margin-top: 16px;
}
.form-status.is-visible { display: block; }
.form-status.success {
  background: rgba(94, 189, 130, 0.12);
  color: #8fd6ac;
  border: 1px solid rgba(94, 189, 130, 0.35);
}

/* ---------- Map placeholder ---------- */

.map-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 32px;
  height: 260px;
  background:
    linear-gradient(rgba(7, 21, 34, .8), rgba(7, 21, 34, .8)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 2px, transparent 2px, transparent 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-align: center;
  padding: 20px;
}
.map-block strong { display:block; margin-bottom: 6px; color: var(--color-heading); }
.map-block span { font-size: .85rem; color: var(--color-text-muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid__title {
  color: var(--color-heading);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}

.footer-grid a,
.footer-grid p {
  color: var(--color-text-muted);
  font-size: .92rem;
}

.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--color-accent-light); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-heading);
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-brand .brand__mark { width: 36px; height: 36px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--color-accent-light); }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 800px;
}
.legal h2 {
  margin-top: 1.6em;
  font-size: 1.3rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.legal li { margin-bottom: .4em; }
.legal a { color: var(--color-accent-light); }

.notice-card {
  border: 1px solid rgba(201, 161, 90, 0.4);
  background: rgba(201, 161, 90, 0.08);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.notice-card strong { color: var(--color-accent-light); }

/* ---------- Utilities ---------- */

.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
