/*
 * stroehmi.work – Haupt-Stylesheet
 * Design: Flach, modern, Dunkelblau (gedämpft/pastel)
 * Keine externen Ressourcen, keine Web Fonts
 */

/* ===== VARIABLEN ===== */
:root {
  /* Blau-Palette – gedämpftes Dunkelblau */
  --c-900: #0d1f33;
  --c-800: #1a3050;
  --c-700: #2d4d6e;
  --c-600: #3a637f;
  --c-500: #4f7fa0;
  --c-400: #7aadc5;
  --c-300: #a8c8dc;
  --c-200: #c5dcea;
  --c-100: #ddedf5;
  --c-50:  #f0f7fb;

  /* Neutrals */
  --text:        #1a2b3c;
  --text-muted:  #4e6a7e;
  --text-light:  #8ba5b5;
  --border:      #ccdde8;
  --bg:          #f4f8fb;
  --white:       #ffffff;

  /* Statusfarben */
  --success:        #2d7a55;
  --success-bg:     #e8f5ee;
  --success-border: #6db892;

  /* Typografie */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --nav-h:    68px;
  --max-w:    1100px;
  --radius:   6px;
  --radius-lg: 14px;
  --shadow:   0 2px 12px rgba(13, 31, 51, 0.08);
  --shadow-lg: 0 6px 32px rgba(13, 31, 51, 0.14);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-800); }
ul { list-style: none; }

/* Barrierefreiheit: Fokus-Stile */
:focus-visible {
  outline: 2px solid var(--c-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip to main */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--c-700);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; color: var(--white); }

/* ===== TYPOGRAFIE ===== */
h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-900);
}
h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-800);
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-800);
}
p { color: var(--text-muted); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-std   { padding: 80px 0; }
.section-light { background: var(--white); }
.section-tinted { background: var(--c-50); }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header p {
  max-width: 580px;
  margin: 14px auto 0;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-500);
  margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--c-700);
  color: var(--white);
  border-color: var(--c-700);
}
.btn-primary:hover {
  background: var(--c-800);
  border-color: var(--c-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--c-700);
  border-color: var(--c-700);
}
.btn-outline:hover {
  background: var(--c-700);
  color: var(--white);
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-900);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.nav-logo-text span { color: var(--c-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--c-700);
  border-bottom-color: var(--c-700);
}
.nav-links .btn {
  border-bottom: none;
  padding: 9px 20px;
  font-size: 0.88rem;
  border-radius: 8px;
}
.nav-links .btn:hover { transform: none; }
/* Spezifitäts-Fix: Nav-Link-Farbe überschreibt Button-Farbe */
.nav-links a.btn-primary {
  color: var(--white);
  background: var(--c-500);
  border-color: var(--c-500);
}
.nav-links a.btn-primary:hover {
  color: var(--white);
  background: var(--c-700);
  border-color: var(--c-700);
  box-shadow: 0 2px 10px rgba(79, 127, 160, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--c-900);
  border-radius: var(--radius);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, var(--c-900) 0%, var(--c-700) 100%);
  color: var(--white);
  padding: 90px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content .section-label { color: var(--c-300); }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--c-200);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 520px;
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-actions .btn { text-align: center; }
.hero .btn-primary {
  background: var(--white);
  color: var(--c-700);
  border-color: var(--white);
}
.hero .btn-primary:hover {
  background: var(--c-100);
  border-color: var(--c-100);
  color: var(--c-800);
}
.hero .btn-outline {
  border-color: rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.9);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--c-50);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-200);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  /* Flex-Spalte damit "Mehr erfahren" immer unten bleibt */
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-300);
}
.service-card.featured {
  border-top: 3px solid var(--c-700);
  position: relative;
}
.service-card .card-icon {
  width: 46px;
  height: 46px;
  background: var(--c-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--c-700);
}
.service-card h3 { margin-bottom: 10px; }
/* p wächst und drückt den Link ans Bottom */
.service-card p { font-size: 0.93rem; flex: 1; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-600);
  transition: gap 0.2s, color 0.2s;
}
.service-card .card-link:hover {
  color: var(--c-800);
  gap: 10px;
}
.service-card .card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--c-700);
  color: var(--white);
  padding: 3px 9px;
  border-radius: 20px;
}

/* ===== ABOUT ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  display: flex;
  justify-content: center;
}
.profile-card {
  width: 310px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--c-50);
  overflow: hidden;
}
.profile-card-header {
  background: var(--c-800);
  height: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--c-50);
  transform: translateY(46px);
  flex-shrink: 0;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.profile-card-body {
  padding: 58px 24px 24px;
  text-align: center;
}
.profile-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.profile-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.profile-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}
.profile-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
}
.profile-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-700);
  line-height: 1;
}
.profile-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.profile-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.profile-tag {
  font-size: 0.72rem;
  color: var(--c-700);
  background: rgba(45,77,110,0.1);
  border: 1px solid rgba(45,77,110,0.2);
  border-radius: 20px;
  padding: 3px 10px;
}
.about-content .section-label { display: block; margin-bottom: 10px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.about-content .btn { margin-top: 8px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--c-700);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p {
  color: var(--c-200);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-primary {
  background: var(--white);
  color: var(--c-700);
  border-color: var(--white);
}
.cta-banner .btn-primary:hover {
  background: var(--c-100);
  border-color: var(--c-100);
  color: var(--c-800);
}

/* ===== SEITEN-HERO (Unterseiten) ===== */
.page-hero {
  background: linear-gradient(140deg, var(--c-900) 0%, var(--c-700) 100%);
  padding: 56px 0;
  text-align: center;
}
.page-hero .section-label { color: var(--c-300); }
.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.page-hero p {
  color: var(--c-200);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== LEISTUNGEN-SEITE ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto auto;
  column-gap: 56px;
  row-gap: 28px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-detail:last-child { border-bottom: none; }
.service-detail-left {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px 28px;
  align-items: start;
}
.service-detail-visual {
  grid-column: 2;
  grid-row: 1 / 3;
}
.service-detail-visual svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 4px 16px rgba(13,31,51,0.08));
}
.service-detail-icon {
  width: 72px;
  height: 72px;
  background: var(--c-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-700);
  flex-shrink: 0;
}
.service-detail h2 { margin-bottom: 14px; }
.service-detail p { margin-bottom: 12px; }
.service-detail ul {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}
.service-detail ul li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--c-50);
  border: 1px solid var(--c-200);
  border-radius: var(--radius);
  padding: 7px 13px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
}
.service-detail ul li::before {
  content: '✓';
  color: var(--c-600);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.service-detail.highlight-card {
  background: var(--c-50);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  grid-template-columns: 80px 1fr;
}

/* ===== KONTAKTFORMULAR ===== */
.contact-section { padding: 80px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 18px; }
.contact-info > p { margin-bottom: 32px; }
.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.contact-info-item .icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--c-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-700);
  flex-shrink: 0;
}
.contact-info-note {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--c-50);
  border-left: 3px solid var(--c-400);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Formular */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-500);
  box-shadow: 0 0 0 3px rgba(79, 127, 160, 0.14);
}
.form-group textarea {
  height: 130px;
  resize: vertical;
  line-height: 1.6;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 12px;
}
.form-submit { width: 100%; justify-content: center; }

/* Formular Ladezustand */
.form-loading {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--c-200);
  border-top-color: var(--c-700);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-loading p { color: var(--text-muted); font-size: 0.93rem; }

/* Formular Erfolgsmeldung */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.success-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
}
.form-success h3 {
  color: #1a4a32;
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.form-success p {
  color: #3d6b52;
  font-size: 0.95rem;
}

/* ===== RECHTLICHE SEITEN ===== */
.legal-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-wrap h2 {
  margin: 44px 0 14px;
  font-size: 1.25rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-wrap h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  color: var(--c-700);
}
.legal-wrap p { margin-bottom: 12px; font-size: 0.95rem; }
.legal-wrap a { color: var(--c-600); }
.legal-wrap ul {
  list-style: disc;
  margin: 10px 0 14px 22px;
}
.legal-wrap ul li {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--c-900);
  padding: 52px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo-text { color: var(--white); }
.footer-brand .nav-logo-text span { color: var(--c-400); }
.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--c-300);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--c-300);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--c-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 64px 0 72px; }
  .hero-visual { justify-content: center; }
  .hero-svg { max-width: 360px; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-visual { order: -1; }
  .service-detail-visual svg { max-width: 360px; margin: 0 auto; }
  .service-detail-icon { width: 56px; height: 56px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow-lg);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 13px 24px;
    border-bottom: none;
    border-radius: 0;
  }
  .nav-links .btn {
    display: block;
    margin: 8px 24px 0;
    text-align: center;
  }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section-std { padding: 56px 0; }
  .cta-banner { padding: 60px 0; }
  .page-hero { padding: 44px 0; }
}
