/* kom-projekte.de – Landingpage
   Schriften lokal eingebunden (Inter, Poppins – SIL Open Font License), keine externen Requests. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #1c9770;
  --green-dark: #147a5a;
  --green-50: #e9f6f1;
  --green-100: #d3eee4;
  --mint: #7ad1c3;
  --navy: #002253;
  --navy-2: #0a2f66;
  --ink: #0b0d10;
  --text: #45474c;
  --muted: #6b6e75;
  --line: #dfdfe0;
  --soft: #f5f5f6;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: break-word; }
.nw { white-space: nowrap; }
h1 { font-weight: 700; font-size: clamp(2.6rem, 5.6vw, 4.1rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.45rem); letter-spacing: -0.02em; }
h3 { font-weight: 500; font-size: 1.2rem; }
h4 { font-weight: 500; font-size: 1.05rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 40px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 500 1rem/1.2 var(--font-body);
  padding: .85em 1.3em; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn-sm { padding: .6em 1em; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { font: 700 1.3rem/1 var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.brand span { color: var(--green); }
.brand:hover { color: var(--ink); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--text); text-decoration: none; font-size: .96rem; font-weight: 500; }
.main-nav a:hover { color: var(--green-dark); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.icon-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); }
.icon-link:hover { background: var(--green-50); color: var(--green-dark); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; background: radial-gradient(1200px 500px at 85% -10%, var(--green-50), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.32fr .78fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--green-dark); background: var(--green-50); border: 1px solid var(--green-100); padding: .35em .85em; border-radius: 999px; margin-bottom: 22px; }
.hero-sub { font: 500 clamp(1.3rem, 2.2vw, 1.6rem)/1.3 var(--font-head); color: var(--green); margin: 10px 0 22px; }
.lead { font-size: 1.12rem; max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.cta-row .btn { padding-left: 1.05em; padding-right: 1.05em; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: .45em; }
.trust .ic { color: var(--green); }
.hero-photo { margin: 0; position: relative; isolation: isolate; justify-self: end; width: 100%; max-width: 420px; }
.hero-photo img { width: 100%; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 34, 83, .35); aspect-ratio: 480 / 563; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 18px; background: var(--mint); opacity: .35; z-index: -1; }
.hero-photo figcaption { position: absolute; left: -28px; bottom: 28px; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); display: grid; line-height: 1.3; }
.hero-photo figcaption strong { font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.hero-photo figcaption span { font-size: .88rem; color: var(--muted); }

/* ---------- Quick contact ---------- */
.quick { margin-top: -28px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.quick-card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--text); }
.quick-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); color: var(--green-dark); flex: none; }
.quick-ic .ic { width: 22px; height: 22px; }
.quick-txt { display: grid; line-height: 1.35; min-width: 0; }
.quick-txt strong { color: var(--ink); font-weight: 600; }
.quick-txt span { font-size: .93rem; color: var(--muted); overflow-wrap: anywhere; }
.quick-card .arrow { margin-left: auto; color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.kicker { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.section-lead { font-size: 1.1rem; margin-top: 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2.tight { gap: 14px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; }
.card .more { margin-top: auto; padding-top: 6px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green); color: #fff; font: 700 1.05rem/1 var(--font-head); }
.num-soft { background: #fff; color: var(--green-dark); border: 1px solid var(--green-100); }
.more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--green-dark); }
.more:hover { gap: .6em; }
.more .ic { width: 1em; height: 1em; }

.tile { background: transparent; padding: 4px 0; display: flex; flex-direction: column; gap: 12px; }
.tile p { margin: 0; font-size: .98rem; }
.tile-white { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; gap: 8px; }
.tile-white h3 { font-size: 1.08rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--soft); }
.steps li p { margin: 10px 0 0; font-size: .98rem; }
.step-n { display: block; font: 700 2.6rem/1 var(--font-head); color: var(--green); margin-bottom: 14px; letter-spacing: -0.03em; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -16px; width: 12px; height: 12px; border-top: 2px solid var(--mint); border-right: 2px solid var(--mint); transform: rotate(45deg); }

/* Offers */
.offer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.offer > h3 { font-size: 1.25rem; padding-bottom: 14px; border-bottom: 2px solid var(--green); }
.offer-item p { margin: 6px 0 8px; font-size: .97rem; }
.offer-item.highlight { background: var(--green-50); border-radius: 10px; padding: 16px; margin: 0 -4px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checks .ic { color: var(--green); margin-top: .25em; }
.offers { align-items: start; }
.offer > .more { margin-top: 4px; }

/* Dark band */
.section-dark { background: var(--navy); color: #c9d3e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--mint); }
.dark-tile { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.dark-tile p { margin: 0; font-size: .98rem; }
.num-dark { background: rgba(122, 209, 195, .14); color: var(--mint); }

/* Trainings */
.card-feature { border-color: var(--green-100); background: linear-gradient(180deg, var(--green-50), #fff 70%); }
.badge { align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--green-dark); background: #fff; border: 1px solid var(--green-100); border-radius: 999px; padding: .3em .8em; }

/* Produkte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split h2 { margin-bottom: 18px; }
.chips { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; font-size: .94rem; font-weight: 500; color: var(--ink); }

/* Quote */
.quote-band { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #e6f6f0; text-align: center; padding: 88px 0; }
.quote-band blockquote { margin: 0 0 24px; }
.quote-band blockquote p { font: 700 clamp(1.7rem, 3.6vw, 2.6rem)/1.2 var(--font-head); color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; }
.quote-band cite { font-style: normal; font-size: .95rem; color: #c8ece0; }
.quote-text { font-size: 1.08rem; max-width: 64ch; margin: 0 auto; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { border-radius: 18px; width: 100%; max-width: 400px; aspect-ratio: 480 / 563; object-fit: cover; }
.about h2 { margin-bottom: 26px; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-bottom: 30px; }
.about-list h3 { font-size: 1.08rem; margin-bottom: 6px; padding-left: 14px; border-left: 3px solid var(--green); }
.about-list p { font-size: .97rem; margin: 0; }

/* Contact */
.section-contact { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); transition: border-color .15s ease; }
a.contact-item:hover { border-color: var(--green); color: var(--text); }
.contact-item > span:last-child { display: grid; line-height: 1.4; min-width: 0; }
.contact-item small { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-item strong { color: var(--ink); font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-item .addr { font-size: .95rem; color: var(--muted); }

.booking { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.booking-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.booking-head > .ic { width: 28px; height: 28px; color: var(--green); margin-top: 2px; }
.booking-head h3 { font-size: 1.25rem; }
.booking-head p { margin: 4px 0 0; font-size: .97rem; color: var(--muted); }
.calendly-box { border-radius: 10px; background: var(--soft); min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.calendly-box.is-loaded { background: #fff; min-height: 0; display: block; }
.calendly-box iframe { display: block; width: 100%; height: 720px; border: 0; }
.consent { max-width: 460px; text-align: center; padding: 36px 24px; display: grid; justify-items: center; gap: 12px; }
.consent p { margin: 0; font-size: .93rem; }
.consent-ic { width: 34px; height: 34px; color: var(--green); }
.consent-title { font: 500 1.15rem/1.3 var(--font-head) !important; color: var(--ink); }
.consent .btn { margin-top: 6px; }
.consent-alt { display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; }
.consent-alt .ic { width: .95em; height: .95em; }

/* Footer */
.site-footer { background: var(--ink); color: #a9adb6; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #e3e6ea; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.brand-light { color: #fff; display: inline-block; margin-bottom: 14px; }
.brand-light:hover { color: #fff; }
.footer-h { color: #fff; font-weight: 600; margin-bottom: 10px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 22px; font-size: .88rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p { margin: 0; }

/* Mobile contact bar */
.mobile-bar { display: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1rem; }
.legal li { margin-bottom: .35rem; }
.legal .back { display: inline-flex; align-items: center; gap: .4em; margin-bottom: 28px; text-decoration: none; font-weight: 600; }
.legal .back .ic { transform: rotate(180deg); }
.legal .note { color: var(--muted); font-size: .92rem; }
.legal h2[id], .legal h3[id] { scroll-margin-top: 90px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .hero-grid { gap: 40px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 340px; }
  .hero-photo::before { inset: 16px -16px -16px 16px; }
  .hero-photo figcaption { left: auto; right: -8px; bottom: 18px; }
  .quick { margin-top: 0; }
  .quick-grid, .grid-3, .grid-2, .split, .about, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split, .about { gap: 40px; }
  .about-photo img { max-width: 320px; }
  .about-list { grid-template-columns: 1fr; }
  .calendly-box iframe { height: 1000px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; gap: 12px; }
  .brand { font-size: 1.15rem; }
  .header-actions .icon-link { display: none; }
  .btn-sm span { display: none; }
  .btn-sm { padding: .6em .7em; }
  .cta-row .btn { width: 100%; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .hero-photo { max-width: 280px; }
  h2 { font-size: 1.65rem; }
  .eyebrow { font-size: .78rem; }
  .footer-bottom::before { left: 16px; right: 16px; }
  .card, .offer { padding: 22px; }
  .booking { padding: 16px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(16, 24, 40, .08);
  }
  .mobile-bar a { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; font-size: .78rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 8px; }
  .mobile-bar a:first-child { background: var(--green); color: #fff; }
  .mobile-bar .ic { width: 22px; height: 22px; }
  body { padding-bottom: 76px; }
}

/* Ergänzungen */
.legal .mt { margin-top: 40px; }
.site-footer > .footer-bottom:first-child { margin-top: 0; padding-top: 0; }
.site-footer > .footer-bottom:first-child::before { display: none; }
