/* ImPlan – Stylesheet
   Farben & Schrift übernommen aus der WordPress-Seite (Astra/Elementor). */

@font-face { font-family: 'Lato'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/lato-light.woff') format('woff'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/lato-regular.woff') format('woff'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/lato-italic.woff') format('woff'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/lato-bold.woff') format('woff'); }

:root {
  --blue: #01aae8;
  --blue-dark: #0090c5;
  --text: #5a5a5a;
  --heading: #1a1a1a;
  --light: #f4f8fd;
  --line: #cbd2de;
  --footer: #575757;
  --white: #fff;
  --container: 1200px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.22);
  --font: 'Lato', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.3; font-weight: 400; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.icon { width: 1em; height: 1em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 0.6em 1em; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.narrow { max-width: 720px; padding-inline: clamp(0rem, 4vw, 3.125rem); }
.narrow-center { max-width: 720px; text-align: center; }
.narrow-center .section-title::after { margin-inline: auto; }

/* Überschrift mit kurzer blauer Linie */
.section-title { color: var(--blue); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.3; margin-bottom: 1.1rem; }
.section-title::after { content: ''; display: block; width: 64px; height: 4px; background: var(--blue); margin-top: 1.1rem; }
.lead { color: var(--blue); font-size: 1.3rem; margin-bottom: 1.4rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5em; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.95rem; padding: 0.7em 1.4em; border: 2px solid var(--blue); border-radius: 2px; transition: background 0.2s, border-color 0.2s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; font-size: 1.25rem; padding: 0.35em 0.8em; }
.btn-outline:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid #eee; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand img { width: 180px; height: auto; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li + li::before { content: ''; display: inline-block; width: 2px; height: 11px; background: var(--blue); margin-inline: 0.9rem; vertical-align: middle; }
.main-nav a { color: var(--heading); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.02em; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--blue); border-bottom-color: var(--blue); }
.main-nav a.external { display: inline-flex; align-items: center; gap: 0.3em; }
.ext-arrow { width: 0.7em; height: 0.7em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--heading); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; inset: 100% 0 auto; background: #fff; border-bottom: 1px solid #eee; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
  .main-nav li + li::before { display: none; }
  .main-nav a, .main-nav a.external { display: flex; padding: 0.7rem 0; border-bottom: 1px solid #f0f0f0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.hero { min-height: clamp(460px, 62vw, 760px); }
.page-hero { min-height: clamp(240px, 30vw, 380px); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0, 70, 110, 0.42); z-index: -1; }
/* Kontaktseite: Bild etwas nach unten, damit der Kompass mittig sitzt (Prozent statt Pixel, damit oben nie eine Lücke entsteht) */
.page-hero .hero-bg img { object-position: 50% 15%; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: -1; }
.hero-content { padding: 2rem clamp(1.5rem, 5vw, 3.125rem); max-width: 900px; }
/* Überschrift und Unterzeile sind in der Größe gekoppelt: Die Unterzeile (0,305 × Überschrift) ist
   in einer Zeile so breit wie „DAS IMPLAN-PRINZIP:“. Auf dem Handy darf sie umbrechen, mindestens 1rem. */
.hero { --hero-h1: clamp(2.2rem, 5.8vw, 4.25rem); }
.hero h1 { font-size: var(--hero-h1); font-weight: 700; text-transform: uppercase; line-height: 1.2; margin-bottom: 1.2rem; }
.hero p { font-size: max(1rem, calc(var(--hero-h1) * 0.305)); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); margin-bottom: 1.8rem; }
/* Unterzeile nie breiter als die Überschrift: Der Block richtet sich nach der Breite der Überschrift,
   die Unterzeile trägt selbst keine Breite bei (width: 0) und füllt dann genau diese Breite aus. */
.hero-text { display: inline-grid; }
.hero-text p { width: 0; min-width: 100%; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 300; text-transform: uppercase; margin: 0; padding-inline: clamp(1.5rem, 5vw, 3.125rem); }

/* ---------- Intro mit blauer Keilform ---------- */
.intro { padding-bottom: 0; }
.intro p:not(.lead) { font-size: 0.95rem; }
.wedge { width: 100%; height: clamp(40px, 8vw, 77px); color: var(--blue); margin-top: 2rem; }

/* ---------- Zweispaltig (Bild + Text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-inline: clamp(0rem, 4vw, 3.125rem); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

.framed-img { position: relative; margin: 0 2.5rem 2.5rem 0; max-width: 460px; }
.framed-img::before { content: ''; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 3px solid var(--blue); z-index: -1; }
.framed-img { isolation: isolate; }
.framed-img picture { box-shadow: var(--shadow); }
.framed-img figcaption { position: relative; font-size: 0.8rem; padding: 0.9rem 0 0 2.75rem; }
.framed-right { justify-self: end; }

/* Akkordeon (ohne JavaScript) */
.accordion details { border-bottom: 1px solid transparent; }
.accordion summary { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; list-style: none; color: var(--blue); font-weight: 700; padding: 0.4rem 0; text-decoration: underline; text-underline-offset: 3px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion .icon { width: 0.75em; height: 0.75em; }
.accordion .acc-minus, .accordion details[open] .acc-plus { display: none; }
.accordion details[open] .acc-minus { display: block; }
.accordion .acc-body { overflow: hidden; }
.accordion details p { font-size: 0.95rem; padding: 0.2rem 0 1rem 1.35rem; margin: 0; }
/* Bild bleibt stehen, egal wie viel Text aufgeklappt ist */
.kompetenzen .split { align-items: start; }
.kompetenzen .split > div { padding-top: clamp(0rem, 3vw, 2.5rem); }

/* ---------- Zahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--light); margin: 0; padding: 2.5rem 1rem; text-align: center; }
.stats div { display: flex; flex-direction: column-reverse; padding: 0.5rem 1rem; }
.stats div + div { border-left: 1px solid rgba(0, 0, 0, 0.1); }
.stats dd { margin: 0; font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 700; color: var(--blue); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 0.4rem; }
.stats-note { text-align: right; font-size: 0.75rem; color: #888; margin: 0.5rem 0 0; }
@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .stats div:nth-child(3) { border-left: 0; }
}

/* ---------- Prinzipien ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2.5rem; margin-top: 3rem; padding-inline: clamp(0rem, 4vw, 3.125rem); }
.principle-icon { width: auto; height: 1.6rem; color: var(--blue); margin-bottom: 0.6rem; }
.principle .kicker { font-weight: 700; color: var(--text); font-size: 0.9rem; margin-bottom: 0.4rem; }
.principle h3 { color: var(--blue); text-transform: uppercase; font-size: 1.15rem; margin-bottom: 0.8rem; hyphens: manual; }
.principle p:last-child { font-size: 0.9rem; line-height: 1.9; }
@media (max-width: 899px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; padding-inline: clamp(0rem, 4vw, 3.125rem); text-align: center; }
.member-img img { box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
.member h3 { color: var(--blue); text-transform: uppercase; font-size: 1.3rem; margin: 1.5rem 0 0.2rem; }
.member p { font-size: 0.9rem; margin-bottom: 0.8rem; }
@media (max-width: 767px) { .team { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* ---------- Wertegemeinschaft / Kundenstimmen ---------- */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; padding-inline: clamp(0rem, 4vw, 3.125rem); }
.community-col { display: grid; gap: 2rem; }
.community-intro { padding-right: 2rem; margin-bottom: 1rem; }
.community-intro p { font-size: 0.95rem; }
.testimonial { display: grid; grid-template-columns: 80px 1fr; gap: 1.25rem; margin: 0; background: #fff; box-shadow: var(--shadow); padding: 2rem 2rem 2rem 0; }
.testimonial-img img { width: 80px; height: 80px; object-fit: cover; margin-top: 2.5rem; }
.testimonial .quote { width: 1.1rem; color: var(--blue); margin-bottom: 0.6rem; }
.testimonial blockquote { margin: 0 0 1rem; font-weight: 700; font-size: 0.92rem; line-height: 1.85; color: var(--text); }
.testimonial figcaption { color: var(--blue); font-size: 0.9rem; }
@media (max-width: 899px) {
  .community { grid-template-columns: 1fr; }
  .community-intro { padding-right: 0; }
}
@media (max-width: 480px) {
  .testimonial { grid-template-columns: 1fr; padding: 1.5rem; }
  .testimonial-img img { margin-top: 0; }
}

/* ---------- Kontakt ---------- */
.card { background: #fff; box-shadow: var(--shadow); padding: clamp(1.75rem, 4vw, 2.75rem); }
.contact address { font-style: normal; margin-bottom: 1.5rem; }
.contact address strong { color: var(--heading); }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 0 1rem; padding: 0.55rem 0; border-top: 1px solid #eee; }
.contact-list li:last-child { border-bottom: 1px solid #eee; }
.contact-list .label { min-width: 5rem; font-weight: 700; color: var(--heading); }
.btn-icon { width: auto; height: 1em; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.35rem; color: var(--heading); margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; color: var(--heading); margin-top: 1.6rem; }
.legal h4 { font-size: 1rem; font-weight: 700; margin-top: 1.2rem; }
.legal p, .legal li { font-size: 0.95rem; overflow-wrap: anywhere; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal-meta { color: #888; font-size: 0.85rem !important; }

/* ---------- CTA & Footer ---------- */
.cta { background: var(--blue); color: #fff; padding-block: 2.5rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta-title { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; text-transform: uppercase; line-height: 1.3; margin: 0 0 0.3rem; max-width: 520px; }
.cta-sub { font-weight: 700; margin: 0; }
.cta .btn-outline { margin-right: clamp(0rem, 6vw, 4.5rem); }

.site-footer { background: var(--footer); color: #fff; padding-block: 2.5rem 1.5rem; font-size: 0.85rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--blue); }
.footer-top img { width: 200px; height: auto; margin-bottom: 1.2rem; }
.footer-top p { max-width: 290px; line-height: 1.75; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.8rem; border-top: 1px solid rgba(255, 255, 255, 0.5); margin-top: 1.5rem; padding-top: 1rem; }
.copyright { text-align: center; opacity: 0.7; font-size: 0.75rem; margin: 1rem 0 0; }

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