/* Nunito */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nunito-v32-latin-700.woff2') format('woff2');
}

/* Playfair Display */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
}

:root {
  /* Theme Palette */
  --carbon-black: #222222;
  --slate-grey: #627486;
  --powder-blue: #a1c6ea;
  --dusk-blue: #1f497d;
  --royal-gold: #f5df56;
  --green: #256d1b;
  --oxidized-iron: #9b2915;
  --bg-warm-white: #faf8f5;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

/* 1. Resets & Globale Einstellungen */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  /* Berücksichtigt den Header beim Scrollen zu Ankern (#ids) */
  scroll-padding-top: 6rem;
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  /* clip verhindert horizontales Scrollen ohne sticky zu brechen */
  overflow-x: clip; 
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--carbon-black);
  background-color: var(--bg-warm-white);
  line-height: 1.6;
}

/* Layout Container & Sektionen */
.container {
  max-width: 1050px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { 
  padding: 4.5rem 0; 
  /* Verhindert, dass der sticky Header Sprungmarken-Überschriften verdeckt */
  /* Reduziert den Scroll-Offset, da section bereits padding-top hat */
  scroll-margin-top: 1rem; 
}

/* Typografie & Links */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--dusk-blue);
  line-height: 1.25;
  margin-bottom: 1rem;
}

a {
  color: var(--slate-grey);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover { 
  color: var(--dusk-blue); 
}

/* 2. Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--bg-warm-white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 0; /* Padding wandert in den inneren Container */
}

/* Flexbox-Layout für die Elemente im Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Stellt sicher, dass das picture-Tag sich nicht unschön nach oben verzieht */
.brand picture {
  display: flex;
  align-items: center;
}

.brand img {
    max-width: 400px;
  display: block;
  height: auto;
}
/*.brand svg, 
.brand img {
  width: 100%;

  height: auto;
  display: block;
}*/

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--royal-gold);
  color: var(--carbon-black);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  color: var(--carbon-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 3. Hero Section & Profil-Grid */
.hero {
  padding: 3.5rem 0;
  max-width: 880px;
}

.hero-claim {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-grey);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--carbon-black);
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: block;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 4. Content Grids, Cards & Timeline */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.timeline {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 6px;
  border-left: 4px solid var(--dusk-blue);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-right: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-grey);
  margin-bottom: 0.25rem;
}

.contact-box {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 3rem;
  margin-top: 1.5rem;
}

/* Prozess-Grid & Kacheln */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.process-card {
  background: #ffffff;
  padding: 2.25rem 2rem 2rem 2rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Subtile Pfeil-Andeutung an der rechten Seite (Desktop) */
@media (min-width: 900px) {
  .process-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 2;
  }
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-grey);
  margin-bottom: 0.5rem;
}

/* Dach / Klammer für Interim Management */
.interim-umbrella {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7f9 100%);
  border: 1px solid rgba(31, 73, 125, 0.2);
  border-left: 5px solid var(--dusk-blue);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
}

.umbrella-badge {
  display: inline-block;
  background-color: var(--dusk-blue);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.umbrella-content h3 {
  margin-bottom: 0.5rem;
}

/* Vertikale Liste für Fokus, Handlungsfelder, Erfolge */
.exp-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.exp-block {
  font-size: 0.95rem;
  line-height: 1.5;
}

.exp-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dusk-blue);
  margin-bottom: 0.15rem;
}

/* Formular Layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--carbon-black);
}

.form-group .optional {
  font-weight: 400;
  color: var(--slate-grey);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dusk-blue);
}

/* Checkbox & DSGVO */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--slate-grey);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--dusk-blue);
}

/* Status-Meldungen */
.form-status {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.form-status.success {
  background-color: #e8f5e9;
  color: var(--green);
  border: 1px solid #c8e6c9;
}

.form-status.error {
  background-color: #ffebee;
  color: var(--oxidized-iron);
  border: 1px solid #ffcdd2;
}

/* Responsive Formular */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Footer */
footer {
  width: 100%;
  background-color: var(--bg-warm-white);
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9rem;
  color: var(--slate-grey);
  padding: 0; /* Padding liegt im inneren Container */
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

footer nav { 
  display: flex; 
  gap: 1.5rem; 
}

/* ==========================================
   5. MEDIA QUERIES
   ========================================== */

/* Tablets & kleine Laptops */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-image {
    max-width: 220px;
    margin: 0 auto;
  }
  
  /* Prozess-Grid stapeln */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Smartphones */
@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  /* Gibt dem Header oben und unten gezielt 0.75rem Luft zur Trennlinie */
  .header-container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  /* Logo auf Smartphone auf max 70px beschränken */
  .brand img {
    max-width: 70px;
  }

  header .btn-primary {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 2rem;
  }
}