/* ============================================================
   P31 Management GmbH
   Corporate Stylesheet
   Palette: Nachtblau · Warmweiss · Gold-Akzent
   Layout: Horizontal-Split, grosse Weissräume, Sans-Serif-First
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nacht:       #0b0f1a;
  --tief:        #111827;
  --marine:      #1c2840;
  --blau:        #243352;
  --grau-blau:   #4a5568;
  --hell-grau:   #8896a8;
  --linie:       #e2e8f0;
  --bg:          #f8f9fb;
  --weiss:       #ffffff;
  --gold:        #b8922a;
  --gold-hell:   #d4a83a;
  --gold-bg:     #fdf8ee;
  --text:        #1a202c;
  --text-weich:  #4a5568;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--nacht); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--nacht);
}
h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--text-weich); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; color: var(--text); }

.wrap         { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; }
.wrap--narrow { max-width: 780px;  margin: 0 auto; padding: 0 2.5rem; }

.gold-bar { width: 40px; height: 2px; background: var(--gold); margin: 1.25rem 0; }
.gold-bar--center { margin: 1.25rem auto; }

.label {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 1rem;
}

/* ============================================================
   NAVIGATION — Seitenleiste links (Desktop) / Top-Bar (Mobile)
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 220px; z-index: 200;
  background: var(--nacht);
  display: flex; flex-direction: column;
  padding: 2.5rem 0;
  border-right: 1px solid rgba(184,146,42,0.15);
}

.nav-logo {
  padding: 0 2rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-mark {
  font-family: var(--serif); font-size: 2rem; font-weight: 400;
  color: var(--gold); letter-spacing: -0.02em; line-height: 1; display: block;
}
.nav-logo-name {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); display: block; margin-top: 0.35rem;
}

.nav-links {
  list-style: none; padding: 2rem 0; flex: 1;
}
.nav-links li a {
  display: block; padding: 0.65rem 2rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.38);
  transition: all 0.2s; text-decoration: none; position: relative;
}
.nav-links li a::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 1px; background: var(--gold); transition: width 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--weiss); padding-left: 2.75rem; text-decoration: none;
}
.nav-links li a:hover::before,
.nav-links li a.active::before { width: 0.6rem; }

.nav-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}

/* Mobile Top-Bar */
.mobile-bar {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: var(--nacht); height: 60px;
  align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(184,146,42,0.2);
}
.mobile-logo-mark { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.mobile-toggle { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.6); transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--nacht); z-index: 250; padding: 2rem 1.5rem; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li a {
  display: block; padding: 1rem 0; font-size: 1rem; color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06); text-decoration: none;
}
.mobile-menu ul li a:hover { color: var(--gold); }

/* ============================================================
   HAUPT-CONTENT — verschoben um Sidebar-Breite
   ============================================================ */
.page-body { margin-left: 220px; }

/* ============================================================
   HERO — volle Höhe, Nachtblau, grosse Zahl als Hintergrund
   ============================================================ */
.hero {
  min-height: 100vh; background: var(--nacht);
  display: flex; align-items: flex-end;
  padding: 6rem 2.5rem 5rem;
  position: relative; overflow: hidden;
}

.hero-bg-number {
  position: absolute; right: -0.05em; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 28vw; font-weight: 400;
  color: rgba(255,255,255,0.025); line-height: 1; pointer-events: none;
  user-select: none; white-space: nowrap;
}

.hero-inner { max-width: 1120px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--serif); font-size: 4.5rem; font-weight: 400;
  color: var(--weiss); line-height: 1.05; max-width: 700px;
}
.hero h1 span { display: block; font-style: italic; color: rgba(255,255,255,0.38); }

.hero-bar { width: 40px; height: 2px; background: var(--gold); margin: 2.5rem 0; }

.hero-sub {
  font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.38);
  max-width: 480px; line-height: 1.9; margin-bottom: 3rem;
}

.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.85rem 2rem; border: 1px solid transparent;
  transition: all 0.22s; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--weiss); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--weiss); }
.btn-ghost-light { background: transparent; color: rgba(255,255,255,0.45); border-color: rgba(255,255,255,0.18); }
.btn-ghost-light:hover { color: var(--weiss); border-color: rgba(255,255,255,0.45); }
.btn-ghost-dark { background: transparent; color: var(--nacht); border-color: var(--nacht); }
.btn-ghost-dark:hover { background: var(--nacht); color: var(--weiss); }

/* ============================================================
   SEITENKOPF (innere Seiten)
   ============================================================ */
.page-top {
  background: var(--nacht); padding: 5rem 2.5rem 3.5rem;
  position: relative; overflow: hidden;
}
.page-top::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent); opacity: 0.35;
}
.page-top-inner { max-width: 1120px; margin: 0 auto; }
.page-top h1 { color: var(--weiss); font-size: 2.6rem; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.crumb { background: var(--bg); border-bottom: 1px solid var(--linie); padding: 0.65rem 2.5rem; }
.crumb-inner {
  max-width: 1120px; margin: 0 auto; display: flex; gap: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.04em; color: var(--hell-grau); align-items: center;
}
.crumb-inner a { color: var(--grau-blau); }
.crumb-inner a:hover { color: var(--nacht); }
.crumb-sep { color: var(--linie); }

/* ============================================================
   ABSCHNITTE
   ============================================================ */
section { padding: 5.5rem 2.5rem; }
.bg-light { background: var(--bg); }
.bg-dark  { background: var(--nacht); }

/* ============================================================
   LEISTUNGS-LAYOUT — Nummerierte Zeilen statt Karten
   ============================================================ */
.leistung-row {
  display: grid; grid-template-columns: 100px 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--linie); padding: 3rem 0;
  align-items: start;
}
.leistung-row:first-child { border-top: 1px solid var(--linie); }
.leistung-num {
  font-family: var(--serif); font-size: 3.5rem; font-weight: 400;
  color: var(--linie); line-height: 1; padding-right: 2rem;
}
.leistung-head h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--nacht); margin-bottom: 0.5rem; }
.leistung-head .label { margin-bottom: 0; }
.leistung-body { padding-left: 3rem; border-left: 1px solid var(--linie); }
.leistung-body p { font-size: 0.9rem; color: var(--text-weich); line-height: 1.85; margin-bottom: 0.75rem; }
.leistung-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tag {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border: 1px solid var(--linie);
  color: var(--grau-blau); font-weight: 400;
}

/* ============================================================
   KENNZAHLEN-BAND
   ============================================================ */
.stats-band { background: var(--marine); padding: 4rem 2.5rem; }
.stats-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 0 2.5rem; border-right: 1px solid rgba(255,255,255,0.08); text-align: center; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif); font-size: 3rem; font-weight: 400;
  color: var(--gold); line-height: 1; display: block; margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.28); }

/* ============================================================
   TEAM-KARTE
   ============================================================ */
.person-card {
  display: grid; grid-template-columns: 1fr 2fr; gap: 0;
  border: 1px solid var(--linie); margin-top: 3rem;
}
.person-sidebar {
  background: var(--nacht); padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.person-monogram {
  width: 64px; height: 64px; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold);
  margin-bottom: 2rem;
}
.person-sidebar h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--weiss); margin-bottom: 0.25rem; }
.person-sidebar .role { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: block; }
.person-body { padding: 3rem; }
.person-body p { font-size: 0.92rem; color: var(--text-weich); line-height: 1.9; }
.person-meta {
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--linie);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.meta-item .meta-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hell-grau); display: block; margin-bottom: 0.25rem; }
.meta-item .meta-value { font-size: 0.9rem; color: var(--text); }

/* ============================================================
   REGISTER-TABELLE
   ============================================================ */
.reg-table { width: 100%; border-collapse: collapse; margin-top: 2.5rem; }
.reg-table tr { border-bottom: 1px solid var(--linie); }
.reg-table tr:last-child { border-bottom: none; }
.reg-table td { padding: 1rem 1.5rem; font-size: 0.9rem; vertical-align: top; }
.reg-table td:first-child {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--hell-grau);
  width: 30%; white-space: nowrap; padding-top: 1.1rem;
}
.reg-table td:last-child { color: var(--text); }
.reg-table tr:nth-child(even) td { background: var(--bg); }

/* ============================================================
   KONTAKT-LAYOUT — Zweispaltig mit dunklem Infobereich
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; }
.contact-info {
  background: var(--nacht); padding: 4rem 3rem;
  display: flex; flex-direction: column; gap: 2.5rem;
}
.contact-info-block .ci-label {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.22); display: block; margin-bottom: 0.5rem;
}
.contact-info-block .ci-value {
  font-family: var(--serif); font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.6;
}
.contact-form-area { padding: 4rem 3.5rem; background: var(--weiss); }

.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grau-blau); margin-bottom: 0.5rem; font-weight: 400;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 0.75rem 0; border: none;
  border-bottom: 1px solid var(--linie); border-radius: 0;
  font-family: var(--sans); font-size: 0.92rem; color: var(--text);
  background: transparent; outline: none; transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--gold); }
.form-field textarea { resize: none; min-height: 110px; line-height: 1.7; }
.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238896a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.5rem center; padding-right: 2rem;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-check { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 2rem; }
.form-check input[type="checkbox"] { width: 14px; height: 14px; min-width: 14px; margin-top: 0.2rem; accent-color: var(--gold); }
.form-check label { font-size: 0.8rem; color: var(--text-weich); line-height: 1.6; font-weight: 400; letter-spacing: 0; text-transform: none; }

.form-ok { display: none; padding: 2rem; border: 1px solid var(--gold); background: var(--gold-bg); margin-top: 1.5rem; }
.form-ok p { font-family: var(--serif); font-size: 1.1rem; color: var(--nacht); margin: 0; }

/* ============================================================
   IMPRESSUM / LEGAL
   ============================================================ */
.legal-section { padding: 2.5rem 0; border-bottom: 1px solid var(--linie); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--nacht); margin-bottom: 0.85rem; }
.legal-section h3 { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--nacht); margin-top: 1.25rem; margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.legal-section p { font-size: 0.9rem; color: var(--text-weich); line-height: 1.85; }

/* ============================================================
   CTA-BAND
   ============================================================ */
.cta { background: var(--gold-bg); padding: 5rem 2.5rem; border-top: 1px solid #e8d9b0; border-bottom: 1px solid #e8d9b0; }
.cta-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 3rem; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--nacht); max-width: 480px; margin-bottom: 0; }
.cta p { font-size: 0.9rem; color: var(--text-weich); max-width: 380px; margin-top: 0.75rem; margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--tief); padding: 3.5rem 2.5rem 2rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2.5fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-brand .f-mark { font-family: var(--serif); font-size: 2rem; color: var(--gold); display: block; line-height: 1; }
.footer-brand .f-name { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.2); display: block; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.22); line-height: 1.8; margin: 0; }
.footer-col h5 { font-family: var(--sans); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.84rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom { padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p { font-size: 0.74rem; color: rgba(255,255,255,0.14); margin: 0; }
.footer-bottom a { font-size: 0.74rem; color: rgba(255,255,255,0.14); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .mobile-bar { display: flex; }
  .page-body { margin-left: 0; padding-top: 60px; }
  .leistung-row { grid-template-columns: 60px 1fr; }
  .leistung-body { grid-column: 2; padding-left: 0; border-left: none; border-top: 1px solid var(--linie); padding-top: 1.5rem; margin-top: 1.5rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat-item { border-right: none; padding: 0; text-align: left; }
  .person-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 1.5rem; }
  .hero { padding: 5rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero-bg-number { font-size: 50vw; }
  .page-top { padding: 4rem 1.5rem 2.5rem; }
  .page-top h1 { font-size: 2rem; }
  .wrap, .wrap--narrow { padding: 0 1.5rem; }
  .leistung-row { grid-template-columns: 1fr; padding: 2rem 0; }
  .leistung-num { font-size: 2.5rem; padding-right: 0; margin-bottom: 0.75rem; }
  .leistung-body { padding-left: 0; border-left: none; border-top: 1px solid var(--linie); padding-top: 1.25rem; margin-top: 1.25rem; }
  .stats-inner { grid-template-columns: 1fr; }
  .person-meta { grid-template-columns: 1fr; }
  .contact-info { padding: 2.5rem 1.5rem; }
  .contact-form-area { padding: 2.5rem 1.5rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .crumb { padding: 0.65rem 1.5rem; }
}
