/* =====================================================================
   IPC – Ing. Christian Pichler GmbH · Stylesheet
   ---------------------------------------------------------------------
   Farben & Abstände zentral in :root anpassen.
   ===================================================================== */

/* ---------- Schrift (lokal gehostet, keine Google-Verbindung) -------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/poppins-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/poppins-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Design-Variablen ---------------------------------------- */
:root {
  --navy:        #163071;   /* Hintergrund Logo / Hero (aus bestehender Seite) */
  --navy-dark:   #0f2257;
  --blue:        #2872bd;   /* Akzent / Buttons (aus bestehender Seite) */
  --blue-light:  #e8f0f9;
  --text:        #1f2430;
  --muted:       #5b6272;
  --line:        #dfe3ea;
  --bg:          #ffffff;
  --bg-soft:     #f5f7fa;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max:  1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 10px;
  --header-h: 72px;
}

/* ---------- Basis ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--bg-soft); }

/* Überschrift im Stil der bestehenden Seite (kurzer Strich davor) */
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; text-align: center; margin-bottom: 1.4em; }
.section-title::before {
  content: ""; display: block; width: 56px; height: 4px; margin: 0 auto 22px;
  background: var(--blue); border-radius: 2px;
}
.section-title small { display: block; font-size: .5em; font-weight: 400; color: var(--muted); margin-top: .4em; letter-spacing: .02em; }
.lead { max-width: 760px; margin: 0 auto; text-align: center; font-size: 1.05rem; color: var(--text); }
.lead p + p { margin-top: 1.1em; }

/* ---------- Header / Navigation ------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled, .site-header--solid { background: var(--navy); box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.site-header.is-scrolled .brand, .site-header--solid .brand { opacity: 1; pointer-events: auto; }
.brand img { height: 34px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav a:hover, .nav a.is-active { border-bottom-color: #fff; color: #fff; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle svg { width: 28px; height: 28px; display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 420px; box-shadow: 0 12px 20px rgba(0,0,0,.2); }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a:hover, .nav a.is-active { border-bottom-color: rgba(255,255,255,.12); color: #bcd3f0; }
  .site-header:has(.nav.is-open) { background: var(--navy); }
}

/* ---------- Hero ---------------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; color: #fff;
  background: var(--navy) url("../img/hero-hintergrund.jpg") center / cover no-repeat;
  padding: calc(var(--header-h) + 24px) var(--gutter) 80px;
  position: relative;
}
.hero__logo { width: min(450px, 78vw); margin: 0 auto 28px; }
.hero__tagline { font-size: clamp(1.2rem, 2.6vw, 1.65rem); font-weight: 700; line-height: 1.45; margin: 0; color: #fff; }
.hero__cta {
  display: inline-block; margin-top: 36px; padding: 12px 28px; border: 2px solid rgba(255,255,255,.85);
  border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.hero__cta:hover { background: #fff; color: var(--navy); }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.7); }
.hero__scroll svg { width: 28px; height: 28px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll svg { animation: none; } }

/* ---------- Zitat-Band (Parallax-Bild) ------------------------------ */
.quote-band {
  position: relative; color: #fff; text-align: center;
  padding: clamp(110px, 16vw, 200px) var(--gutter);
  background: #333 url("../img/planung-hintergrund.jpg") center / cover no-repeat fixed;
}
.quote-band::before { content: ""; position: absolute; inset: 0; background: rgba(15, 34, 87, .55); }
.quote-band blockquote { position: relative; max-width: 820px; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; line-height: 1.65; }
@media (hover: none), (max-width: 820px) { .quote-band { background-attachment: scroll; } }

/* ---------- Leistungsbild ------------------------------------------ */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: #bcd3f0; box-shadow: 0 10px 28px rgba(22,48,113,.08); transform: translateY(-2px); }
.service__icon { width: 40px; height: 40px; border-radius: 8px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.service__icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 1.05rem; margin-bottom: .35em; }
.service p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* ---------- Referenzen --------------------------------------------- */
.ref-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; margin-bottom: 28px; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; }
.ref-feature img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ref-feature__text { padding: clamp(24px, 4vw, 56px); }
.ref-feature--reverse figure { order: 2; }
.ref-feature figure { margin: 0; height: 100%; }
.ref-title { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 0 0 .25em; }
.ref-meta { color: var(--muted); font-style: italic; margin: 0; }
@media (max-width: 760px) {
  .ref-feature { grid-template-columns: 1fr; }
  .ref-feature--reverse figure { order: 0; }
}
.ref-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ref-list li { border-left: 4px solid var(--blue); background: #fff; padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: 0 1px 0 var(--line) inset, 0 -1px 0 var(--line) inset, -1px 0 0 var(--line) inset; }
.ref-list .ref-title { font-size: 1rem; }
.ref-note { text-align: center; font-style: italic; color: var(--muted); margin-top: 36px; }

/* ---------- Ansprechpersonen --------------------------------------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; max-width: 900px; margin: 0 auto; }
.person { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px 30px; }
.person__photo { width: 180px; height: 180px; margin: 0 auto 20px; border-radius: 50%; }
.person__role { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 600; margin: 0 0 4px; }
.person__name { font-size: 1.35rem; margin: 0 0 14px; }
.person__contact { list-style: none; padding: 0; margin: 0 0 20px; }
.person__contact li { margin: 4px 0; }
.person__contact a { color: var(--text); text-decoration: none; }
.person__contact a:hover { color: var(--blue); text-decoration: underline; }
.person__vcard { display: inline-flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; font-size: .85rem; color: var(--muted); }
.person__vcard img { width: 80px; height: 80px; }
.person__vcard a { font-weight: 600; }

/* ---------- Kontakt ------------------------------------------------- */
.contact { background: var(--navy); color: #fff; }
.contact .section-title { color: #fff; }
.contact .section-title::before { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { font-size: 1.02rem; }
.contact-info dl { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; margin: 0 0 32px; }
.contact-info dt { font-weight: 700; color: #9fc0e8; }
.contact-info dd { margin: 0; }
.contact-info a { color: #fff; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.location h3 { color: #fff; font-size: 1rem; margin-bottom: .3em; }
.location address { font-style: normal; color: #d5e1f3; line-height: 1.6; }
.location a { color: #9fc0e8; font-size: .88rem; }

.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.form h3 { font-size: 1.15rem; margin-bottom: 1em; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field label span { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: inherit; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(40,114,189,.18); }
.field textarea { min-height: 150px; resize: vertical; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; border: 0;
  background: var(--blue); color: #fff; padding: 13px 32px; border-radius: 8px; transition: background-color .2s;
}
.btn:hover { background: var(--navy); }
.form__hint { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Footer -------------------------------------------------- */
.memberships { background: #fff; padding: 28px 0; border-top: 1px solid var(--line); }
.memberships img { width: 100%; max-width: 980px; margin: 0 auto; }
.site-footer { background: var(--navy-dark); color: #b8c6e0; font-size: .88rem; padding: 22px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; gap: 20px; }

/* ---------- Unterseiten (Impressum) -------------------------------- */
.page-hero { background: var(--navy) url("../img/hero-hintergrund.jpg") center 30% / cover; color: #fff; padding: calc(var(--header-h) + 56px) 0 56px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.2rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 10px 24px; margin: 0 0 1.5em; }
.facts dt { font-weight: 600; color: var(--navy); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

/* ---------- Einblend-Animation ------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

@media print {
  .site-header, .hero__scroll, .form, .quote-band { display: none !important; }
  .hero { min-height: 0; background: none; color: var(--navy); }
  .contact { background: none; color: var(--text); }
}
