/* ==========================================================================
   Andromedica Consulting — Website Stylesheet
   Corporate Design 2.0 (Steel Blue & Amber), Juli 2026
   Referenz: Andromedica_Corporate_Design_Guide_v2.md
   ========================================================================== */

:root {
  /* Stahlblau-Skala */
  --steel-900: #16232E;   /* Ink */
  --steel-800: #1E3546;
  --steel-700: #274A63;   /* Primaer */
  --steel-600: #35617D;
  --steel-500: #4C7A96;
  --steel-400: #7098AE;
  --steel-200: #C2D2DC;
  --steel-100: #DEE8ED;
  --bg-50:     #F2F6F8;

  /* Akzent */
  --amber:      #C77B49;
  --amber-deep: #A65E30;
  --amber-tint: #EFD9C6;

  /* Neutral */
  --text:  #33414C;
  --muted: #6C7A85;
  --line:  #DCE4E9;
  --white: #FFFFFF;

  /* Typografie */
  --font-serif: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--steel-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber-deep); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* -- Typografie-Bausteine ---------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; color: var(--steel-900); line-height: 1.22; }

.kicker {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 14px;
  display: block;
}
.kicker-light { color: var(--amber); }

/* Kurzer Amber-Akzent (nie flaechig, nie ueber volle Breite) */
.accent-rule {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--amber);
  margin: 20px 0 26px;
  border: 0;
}

/* Praezisionslinie mit Ziel-Tick */
.precision-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}
.precision-line::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--steel-700);
}
.precision-line svg { flex: 0 0 auto; }

/* -- Navigation --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { width: 40px; height: 40px; display: block; }
.nav-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.nav-wordmark b {
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--steel-900);
}
.nav-wordmark span {
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .3em;
  color: var(--steel-600);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--steel-900);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--steel-700); border-bottom-color: var(--steel-200); }
.nav-links a.active { color: var(--steel-700); border-bottom-color: var(--amber); }

.nav-lang {
  font-size: .74rem !important;
  letter-spacing: .12em !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  padding: 5px 11px !important;
}
.nav-lang:hover { color: var(--steel-700) !important; border-color: var(--steel-400) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--steel-900); margin: 5px 0; transition: .3s; }

/* -- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--steel-900);
  color: var(--white);
  padding: 108px 0 112px;
}
.hero::before {  /* diagonaler Steel-800-Keil */
  content: "";
  position: absolute;
  inset: 0 0 0 34%;
  background: var(--steel-800);
  transform: skewX(-11deg);
  transform-origin: top left;
  opacity: .75;
}
.hero-watermark {
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 560px;
  opacity: .055;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-text { max-width: 660px; }
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.3rem);
  color: var(--white);
  letter-spacing: -.005em;
}
.hero .claim {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--steel-200);
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.06rem;
  color: #B8C7D1;
  max-width: 58ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Kompakter Seitenkopf (Unterseiten) */
.pagehead {
  position: relative;
  overflow: hidden;
  background: var(--steel-900);
  color: var(--white);
  padding: 76px 0 78px;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  background: var(--steel-800);
  transform: skewX(-11deg);
  transform-origin: top left;
  opacity: .7;
}
.pagehead .container { position: relative; z-index: 1; }
.pagehead h1 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.7rem); }
.pagehead p { color: #B8C7D1; max-width: 62ch; font-size: 1.02rem; }
.pagehead .hero-watermark { right: -80px; bottom: -160px; width: 420px; }

/* -- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--steel-700); color: var(--white); border-color: var(--steel-700); }
.btn-primary:hover { background: var(--steel-800); color: var(--white); border-color: var(--steel-800); }

.btn-outline { color: var(--steel-700); border-color: var(--steel-400); background: transparent; }
.btn-outline:hover { color: var(--white); background: var(--steel-700); border-color: var(--steel-700); }

.btn-light { background: var(--white); color: var(--steel-900); border-color: var(--white); }
.btn-light:hover { background: var(--steel-200); color: var(--steel-900); border-color: var(--steel-200); }

.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); background: transparent; }
.btn-ghost:hover { color: var(--steel-900); background: var(--white); border-color: var(--white); }

/* -- Sections ----------------------------------------------------------- */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-50); }
.section-dark { background: var(--steel-900); color: #B8C7D1; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-title { font-size: clamp(1.7rem, 2.7vw, 2.15rem); }
.section-subtitle { color: var(--muted); font-size: 1.03rem; margin-top: 14px; }
.section-dark .section-subtitle { color: #96A8B5; }

/* -- Leistungs- und Inhaltskarten --------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 42px 34px 44px;
  transition: background .25s;
}
.service-card:hover { background: var(--bg-50); }
.section-alt .service-card:hover { background: var(--steel-100); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--steel-100);
  color: var(--steel-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.service-card p { font-size: .96rem; color: var(--muted); }

/* -- Kennzahlen --------------------------------------------------------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.fact-card { padding: 8px 28px; border-left: 1px solid var(--steel-200); }
.fact-card:first-child { border-left: 0; padding-left: 0; }
.fact-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--steel-700);
}
.section-dark .fact-number { color: var(--white); }
.fact-number sup { color: var(--amber); font-size: .5em; vertical-align: super; }
.fact-label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}
.section-dark .fact-label { color: #8FA2AF; }
.section-dark .fact-card { border-left-color: rgba(194,210,220,.22); }

/* -- Arbeitsweise (nummerierte Liste mit Amber-Ziffer) ------------------ */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-no {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--amber);
  text-align: right;
  padding-right: 26px;
  border-right: 1px solid var(--steel-200);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }

/* -- Profil ------------------------------------------------------------- */
.profile-row { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; }
.profile-photo img {
  width: 280px;
  height: 350px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  filter: saturate(.92);
}
.profile-photo figcaption {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}
.profile-info h2 { font-size: 1.9rem; }
.profile-info .role {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 10px 0 22px;
}
.profile-info p + p { margin-top: 16px; }

/* Qualifikations-Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag {
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--steel-700);
  background: var(--bg-50);
  border: 1px solid var(--steel-100);
  border-radius: 40px;
  padding: 7px 16px;
}

/* -- Timeline ----------------------------------------------------------- */
.timeline { margin-top: 8px; }
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-year {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-600);
  padding-top: 5px;
}
.timeline-content h4 { font-size: 1.14rem; margin-bottom: 4px; }
.timeline-content .company {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 10px;
}
.timeline-content p { color: var(--muted); font-size: .97rem; }

/* -- Kontakt ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.contact-info-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-info-item:first-of-type { border-top: 0; padding-top: 0; }
.contact-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--steel-100);
  color: var(--steel-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-info-item h4 {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-info-item p { font-size: 1rem; color: var(--steel-900); }

.contact-form { background: var(--bg-50); border: 1px solid var(--line); padding: 38px 34px 34px; }
.contact-form label.field { display: block; margin-bottom: 18px; }
.contact-form .field-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: .97rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--steel-500); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 16px; }

/* -- CTA-Band ----------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--steel-700);
  color: var(--white);
  padding: 74px 0;
}
.cta .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: 1.85rem; max-width: 22ch; }
.cta p { color: #CBD9E2; margin-top: 10px; max-width: 46ch; }
.cta .hero-watermark { right: -70px; bottom: -150px; width: 320px; opacity: .07; }

/* -- Footer ------------------------------------------------------------- */
.footer {
  background: var(--steel-900);
  color: #8EA1AE;
  font-size: .9rem;
  padding: 68px 0 28px;
}
.footer a { color: #8EA1AE; }
.footer a:hover { color: var(--white); }
.footer h4 {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-top { display: flex; align-items: center; gap: 16px; margin-bottom: 46px; }
.footer-top img { width: 44px; height: 44px; }
.footer-top .wm b { display: block; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: .13em; color: var(--white); }
.footer-top .wm span { display: block; font-size: .64rem; letter-spacing: .3em; color: var(--steel-400); margin-top: 3px; }
.footer-top .rule { flex: 1; height: 1px; background: rgba(194,210,220,.2); }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(194,210,220,.15);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #7B8E9B;
}

/* -- Rechtsseiten ------------------------------------------------------- */
.legal-content { max-width: 78ch; }
.legal-content h2 { font-size: 1.32rem; margin-top: 42px; margin-bottom: 12px; color: var(--steel-700); }
.legal-content > h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.08rem; margin-top: 26px; margin-bottom: 8px; }
.legal-content p { margin-bottom: 13px; font-size: .97rem; }
.legal-content ul { margin: 0 0 14px 22px; font-size: .97rem; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--steel-900); }

/* -- Utilities ---------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .profile-row { grid-template-columns: 1fr; gap: 34px; }
  .profile-photo img { width: 100%; max-width: 320px; height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }

  .nav .container { height: 70px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22,35,46,.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 72px 0 78px; }
  .hero::before { inset: 0 0 0 12%; }
  .hero-watermark { width: 340px; right: -120px; bottom: -110px; }
  .pagehead { padding: 56px 0 58px; }

  .section { padding: 62px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 34px 26px 36px; }

  .facts-grid { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .fact-card { padding: 0 20px; }
  .fact-card:nth-child(odd) { border-left: 0; padding-left: 0; }

  .step { grid-template-columns: 62px 1fr; gap: 20px; }
  .step-no { font-size: 1.7rem; padding-right: 16px; }

  .timeline-item { grid-template-columns: 1fr; gap: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-top { margin-bottom: 34px; }
  .cta .container { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .nav, .cta, .nav-toggle { display: none; }
  body { font-size: 11pt; color: #000; }
  .hero, .pagehead, .footer { background: #fff !important; color: #000 !important; }
}

/* -- Produktportfolio ---------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.p-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.p-table thead th {
  background: var(--steel-700);
  color: var(--white);
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 14px 18px;
}
.p-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
.p-table tbody tr:nth-child(even) { background: var(--bg-50); }
.section-alt .p-table tbody tr:nth-child(even) { background: var(--steel-100); }
.p-table td:first-child { color: var(--steel-700); font-weight: 600; }
.p-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: .86rem;
  font-style: italic;
  color: var(--muted);
  padding-top: 16px;
}

.product {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.product-no {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--amber);
  text-align: right;
  padding-right: 26px;
  border-right: 1px solid var(--steel-200);
}
.product h3 { font-size: 1.25rem; margin-bottom: 6px; }
.product-claim {
  color: var(--steel-600);
  font-style: italic;
  font-size: .99rem;
  margin-bottom: 22px;
}
.spec { display: grid; grid-template-columns: 158px 1fr; gap: 12px 26px; }
.spec dt {
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--steel-700);
  padding-top: 3px;
}
.spec dd { color: var(--muted); font-size: .95rem; }
.spec ul { margin: 8px 0 0; padding-left: 18px; }
.spec li { margin-bottom: 5px; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.audience-card { background: var(--white); padding: 30px 26px; }
.section-alt .audience-card { background: var(--white); }
.audience-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.audience-card p { font-size: .93rem; color: var(--muted); }

@media (max-width: 768px) {
  .p-table { min-width: 560px; }
  .product { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .product-no {
    text-align: left;
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--steel-200);
    padding-bottom: 10px;
    font-size: 1.9rem;
  }
  .spec { grid-template-columns: 1fr; gap: 4px 0; }
  .spec dd { margin-bottom: 14px; }
}
