/* ==========================================================================
   Ingenieurbüro Roland Hahn – Variante 2 (Single-Page, mk-c.online-Stil)
   Palette: Navy (Blau-Grau) · Edelstahl-Silber · Premium-Gold · Sans-Serif
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f9fa;         /* Helles Grau */
  --bg-deep: #1f2a33;        /* Tiefes Blau-Grau – dunkle Sektionen/Footer */
  --text: #1f2a33;           /* Standard-Textfarbe */
  --text-soft: #5b6772;      /* gedämpftes Blau-Grau */
  --border: #dde2e7;         /* helles Silber-Grau */
  --secondary: #c9d1d9;      /* Edelstahl-Silber */

  --accent: #1f2a33;         /* Primär (Navy) – Buttons, Links */
  --accent-dark: #12191f;    /* dunkleres Navy – Hover/Überschriften */
  --accent-mid: #d4a857;     /* Premium-Gold – Akzente (Eyebrows, Bullets, Unterstriche) */
  --accent-soft: #eef1f4;    /* helles Silber – Chips/Soft-Flächen */
  --gold: #d4a857;           /* Premium-Gold */
  --amber: #d4a857;

  --font: "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-heading: "Montserrat", "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  --container: 1140px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(20, 28, 36, 0.08);
  --shadow-md: 0 14px 40px rgba(20, 28, 36, 0.12);
}

/* ---------- Selbst gehostete Schriften (Dateien in assets/fonts/ ablegen, siehe README.txt) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--accent-dark);
  line-height: 1.2;
  margin: 0 0 0.55em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

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

section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-header p { color: var(--text-soft); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-mid);
  margin-bottom: 14px;
}

/* ---------- Buttons & text-links ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-mid); color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-primary:hover { background: #b98a3f; color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}
.link-arrow:hover { gap: 10px; text-decoration: none; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(31, 42, 51, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 68px; width: auto; filter: brightness(0) invert(1); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--secondary); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent-mid); transition: width 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-mid); text-decoration: none; }
.main-nav a.active::after { width: 100%; }

.nav-social a { display: inline-flex; align-items: center; gap: 6px; }
.nav-social svg { width: 16px; height: 16px; }

.nav-cta { display: inline-block; padding: 9px 20px; border-radius: var(--radius); background: var(--accent-mid); color: var(--accent-dark) !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: #b98a3f; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--secondary); border-radius: 2px; }

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

.hero { padding: 76px 0 84px; }
.hero .container { display: block; }

.hero-portrait { display: flex; justify-content: center; }
.hero-portrait .portrait-ring {
  width: 100%; max-width: 340px; border-radius: 16px;
  padding: 10px; background: var(--bg-alt);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.hero-portrait img { width: 100%; height: auto; border-radius: 10px; display: block; }

.hero-logo { display: block; margin: 0 auto 30px; width: auto; max-width: 400px; height: auto; filter: brightness(0.5) saturate(0.3); }

.hero-headline { position: relative; }
.hero-services { text-align: center; margin: 0; padding: 0; font-weight: 700; color: var(--accent-dark); }
.hero-services span { display: block; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.2; letter-spacing: -0.01em; }
.hero-services span + span { margin-top: 18px; }
.hero-fields { text-align: center; margin: 14px 0 0; color: var(--text-soft); font-size: clamp(0.95rem, 1.6vw, 1.15rem); font-weight: 500; letter-spacing: 0.02em; }
.hero-stamp-img { display: block; margin: 28px auto 0; width: auto; max-width: 100px; height: auto; }
.hero-stamps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-top: 28px; }
.hero-stamps .hero-stamp-img { margin: 0; }
.hero-badge-img { display: block; width: auto; max-width: 200px; height: auto; }
.hero-content .claim { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--accent); font-weight: 600; font-style: italic; margin: 4px 0 18px; }
.hero-content .role-line { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.hero-content .lead { font-size: 1.08rem; color: var(--text-soft); max-width: 52ch; }

.hero-actions { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; align-items: center; }

.social-row { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.social-row a {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 0.88rem; font-weight: 600; color: var(--accent-dark);
  background: #fff;
}
.social-row a:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Service pillars ---------- */

.pillars-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.pillar {
  flex: 1 1 320px; max-width: 560px;
  background: #fff; border: 1px solid var(--secondary); border-radius: var(--radius);
  padding: 34px 30px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pillar-icon {
  width: 54px; height: 54px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--accent);
}
.pillar-icon svg { width: 30px; height: 30px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--text-soft); margin-bottom: 14px; }
.dash-list { list-style: none; padding: 0; margin: 0 0 16px; }
.dash-list li { position: relative; padding-left: 20px; color: var(--text-soft); margin-bottom: 8px; }
.dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--accent-mid); font-weight: 700; }

/* ---------- Qualification / trust ---------- */

.qual-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qual-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.qual-single { max-width: 560px; margin: 20px auto 0; }
.qual-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.qual-card h4 { font-size: 1rem; margin-bottom: 10px; color: var(--accent-dark); }
.qual-card p { font-size: 0.9rem; color: var(--text-soft); margin: 0; }
.qual-card .dash-list { margin: 0; }
.qual-card .dash-list li:last-child { margin-bottom: 0; }
.qual-card-stamp { text-align: center; }
.qual-card-stamp img { max-width: 150px; height: auto; margin: 14px auto 0; }
.membership-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 24px; margin-top: 16px; }
.membership-logos img { height: auto; margin: 0; }
.membership-logos .mlogo-stamp { max-width: 120px; }
.membership-logos .mlogo-wide { max-width: 230px; }
.membership-logos .mlogo-seal { max-width: 84px; }
.qual-single .qual-card { text-align: center; }

.badge-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); color: var(--accent-dark);
  border-radius: 999px; padding: 9px 18px; font-size: 0.86rem; font-weight: 600;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-mid); }

/* ---------- Industry gallery ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gallery-item .figure { background: var(--bg-alt); padding: 14px; }
.gallery-item img { width: 100%; height: auto; }
.gallery-item .figure-stack { display: flex; flex-direction: column; gap: 10px; }
.gallery-item .figure-stack img { border-radius: 6px; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery-item figcaption { padding: 18px 22px 22px; }
.gallery-item figcaption h3 { margin-bottom: 6px; }
.gallery-item figcaption p { font-size: 0.9rem; color: var(--text-soft); margin: 0; }

.branch-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.branch-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.branch-card h3 { margin-bottom: 16px; }
.branch-card .dash-list { margin: 0; }
.branch-card .dash-list li:last-child { margin-bottom: 0; }

/* ---------- Detailed services ---------- */

.service-block { border-top: 1px solid var(--border); padding: 52px 0; }
.service-block:first-of-type { border-top: none; padding-top: 0; }
.service-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.service-num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.service-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 14px; }
.service-columns h4 { color: var(--accent); font-size: 1rem; margin-bottom: 8px; }

/* ---------- Zur Person ---------- */

.person-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.person-photo img { width: 100%; max-width: 300px; height: auto; margin: 0 auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.competency-list { list-style: none; padding: 0; margin: 0; }
.competency-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.competency-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-mid); font-weight: 700; }
.person-creds { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 4px 0 20px; }
.person-creds h4 { font-size: 1rem; margin: 0 0 14px; color: var(--accent-dark); }
.person-creds ul { list-style: none; padding: 0; margin: 0; }
.person-creds li { position: relative; padding-left: 20px; margin-bottom: 14px; }
.person-creds li:last-child { margin-bottom: 0; }
.person-creds li::before { content: "–"; position: absolute; left: 0; color: var(--accent-mid); font-weight: 700; }
.person-creds .cred-title { display: block; font-weight: 600; color: var(--text); font-size: 0.92rem; line-height: 1.5; }
.person-creds .cred-detail { display: block; font-size: 0.85rem; color: var(--text-soft); }

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

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info dt { font-weight: 700; color: var(--accent-dark); margin-top: 18px; }
.contact-info dd { margin: 4px 0 0; color: var(--text-soft); }
.business-card { margin-top: 30px; }
.business-card img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

form.contact-form { display: flex; flex-direction: column; gap: 15px; }
form.contact-form label { font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; display: block; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 0.95rem; background: #fff;
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: 2px solid var(--accent-mid); border-color: var(--accent-mid); }
form.contact-form textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.84rem; color: var(--text-soft); }

/* ---------- CTA banner ---------- */

.cta-banner { background: var(--bg-deep); color: #fff; text-align: center; border-radius: 14px; padding: 60px 32px; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 52ch; margin: 0 auto 24px; }
.cta-banner .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-banner .btn-primary:hover { background: var(--accent-soft); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 800px; }
.legal-content h2 { margin-top: 1.6em; }
.legal-disclaimer { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: var(--radius); font-size: 0.92rem; margin-bottom: 32px; }

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

.site-footer { background: var(--bg-deep); color: var(--secondary); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer .brand img { filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--accent-mid); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero .container { text-align: center; }
  .hero-stamp-img { position: static; display: block; margin: 24px auto 0; right: auto; top: auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .qual-cards { grid-template-columns: 1fr; }
  .qual-duo { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .branch-detail-grid { grid-template-columns: 1fr; }
  .service-columns { grid-template-columns: 1fr; }
  .person-grid { grid-template-columns: 1fr; }
  .person-photo { text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px);
    background: var(--bg-deep); flex-direction: column; align-items: flex-start;
    padding: 30px 26px; gap: 22px; transform: translateX(100%);
    transition: transform 0.25s ease; overflow-y: auto; z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: flex; }
  .hero-logo { max-width: 260px; margin-bottom: 22px; }
  .qual-cards { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

/* ---------- Zadarma Rückruf (einwilligungsbasiert) ---------- */

.callback-widget { position: fixed; right: 20px; bottom: 20px; z-index: 200; }
.callback-launcher {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-mid); color: var(--accent-dark); border: none;
  border-radius: 999px; padding: 12px 20px; font-family: var(--font);
  font-weight: 700; font-size: 0.95rem; cursor: pointer; box-shadow: var(--shadow-md);
  text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.15s ease;
}
.callback-launcher:hover { background: #b98a3f; }
.callback-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: 300px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 20px 20px; box-shadow: var(--shadow-md);
}
.callback-title { font-weight: 700; color: var(--accent-dark); margin: 0 0 8px; }
.callback-text { font-size: 0.85rem; color: var(--text-soft); margin: 0 0 16px; line-height: 1.6; }
.callback-panel .btn { width: 100%; }
.callback-close {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  font-size: 1.4rem; line-height: 1; color: var(--text-soft); cursor: pointer; padding: 0;
}
.callback-close:hover { color: var(--accent-dark); }

@media (max-width: 680px) {
  .callback-widget { right: 14px; bottom: 14px; }
}

/* ---------- Cookie-Einstellungen (einwilligungsbasiert) ---------- */

.cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -14px 40px rgba(20, 28, 36, 0.12);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
  max-width: var(--container); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; justify-content: space-between;
}
.cookie-consent-text { flex: 1 1 420px; }
.cookie-consent-title { font-family: var(--font-heading); font-weight: 700; color: var(--accent-dark); margin: 0 0 4px; }
.cookie-consent-desc { font-size: 0.88rem; color: var(--text-soft); margin: 0; line-height: 1.6; }
.cookie-consent-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-consent-actions .btn { padding: 11px 22px; font-size: 0.9rem; white-space: nowrap; }

@media (max-width: 680px) {
  .cookie-consent-inner { padding: 16px; gap: 14px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; }
}
