/* =========================================================
   KETESO GmbH – Website Stylesheet
   Corporate Design: Poppins · Grün #1a702d · Grau #404040
   ========================================================= */

/* Poppins – lokal gehostet (DSGVO-konform, keine Google-Verbindung) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-800.woff2') format('woff2'); }

:root {
  --green: #1a702d;
  --green-dark: #135223;
  --green-bright: #7dc38d;
  --green-tint: #eaf3ec;
  --gray: #404040;
  --gray-deep: #2b2b2b;
  --ink: #262a26;
  --ink-soft: #626862;
  --bg: #ffffff;
  --paper: #f5f6f4;
  --line: #e0e4df;
  --maxw: 1140px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }

a { color: var(--green); }

img { max-width: 100%; }

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

.kicker {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--green);
}

.rule { width: 64px; height: 3px; background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 32px; text-decoration: none;
  font-weight: 600; font-size: 0.93rem; letter-spacing: 0.02em;
  border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s;
  cursor: pointer; border: none;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border: 1.5px solid #5c615c; color: #f0f2f0; margin-left: 14px; background: transparent; }
.btn-outline:hover { border-color: var(--green-bright); color: var(--green-bright); }
.btn-dark { background: var(--gray); color: #fff; }
.btn-dark:hover { background: var(--gray-deep); }

/* ---------- Top bar ---------- */
.topbar { background: var(--gray-deep); color: #b5b9b5; font-size: 0.79rem; font-weight: 400; }
.topbar .wrap { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.topbar a { color: #e4e7e4; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 48px; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); border-bottom-color: var(--green); }
.nav-links a.nav-cta {
  border: 1.5px solid var(--green); padding: 11px 24px; color: var(--green);
  border-radius: var(--radius);
}
.nav-links a.nav-cta:hover { background: var(--green); color: #fff; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--gray); margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background: var(--gray-deep); color: #f0f2f0; position: relative; overflow: hidden;
  padding: 108px 0 98px;
}
.hero::after {
  content: "K"; position: absolute; right: -30px; bottom: -150px;
  font-weight: 800; font-size: 32rem; color: rgba(255,255,255,0.03); line-height: 1; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker { color: var(--green-bright); }
.hero .rule { margin: 26px 0 30px; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); max-width: 880px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--green-bright); }
.hero p { font-size: 1.1rem; color: #b9beb9; max-width: 640px; margin: 28px 0 42px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }

/* Compact hero for subpages */
.hero.hero-sub { padding: 84px 0 76px; }
.hero.hero-sub h1 { font-size: clamp(2rem, 4.2vw, 3rem); }

/* ---------- Marquee stats ---------- */
.marquee { border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.marquee div { padding: 30px 20px 30px 0; border-right: 1px solid var(--line); }
.marquee div:last-child { border-right: none; }
.marquee b { font-weight: 800; font-size: 1.65rem; display: block; color: var(--green); }
.marquee span { font-size: 0.84rem; color: var(--ink-soft); font-weight: 400; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-tight { padding: 70px 0; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 16px 0 0; color: var(--gray); }
.split .rule { margin-top: 28px; }
.split .body p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 20px; font-weight: 300; }
.split .body p:last-child { margin-bottom: 0; }
.split .body p b, .split .body strong { color: var(--ink); font-weight: 600; }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 64px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 16px; color: var(--gray); }
.section-head p { color: var(--ink-soft); font-weight: 400; margin-top: 14px; }

.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gray-band { background: var(--gray-deep); color: #f0f2f0; }
.gray-band h2 { color: #fff; }

/* ---------- Service grid (2 columns, framed) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--bg); padding: 52px; display: flex; flex-direction: column; }
.svc .num { font-weight: 800; color: var(--green); font-size: 1rem; letter-spacing: 0.1em; }
.svc h3 { font-size: 1.45rem; margin: 14px 0 16px; color: var(--gray); }
.svc p { color: var(--ink-soft); margin-bottom: 24px; font-weight: 400; }
.svc ul { list-style: none; margin-bottom: 30px; }
.svc li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; font-weight: 400; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.svc li::after { content: "→"; color: var(--green); flex-shrink: 0; }
.svc .svc-link { margin-top: auto; }
.svc a.svc-link { color: var(--gray); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--green); padding-bottom: 3px; font-size: 0.9rem; align-self: flex-start; }
.svc a.svc-link:hover { color: var(--green); }

/* ---------- Feature cards (3 columns) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 36px;
  transition: box-shadow .2s, border-color .2s;
}
.feature:hover { border-color: var(--green); box-shadow: 0 12px 34px rgba(26,112,45,0.08); }
.feature .icon {
  width: 48px; height: 48px; border-radius: 8px; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--green);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--gray); }
.feature p { color: var(--ink-soft); font-weight: 400; font-size: 0.95rem; }

.gray-band .feature { background: transparent; border-color: #454945; }
.gray-band .feature:hover { border-color: var(--green-bright); box-shadow: none; }
.gray-band .feature .icon { background: rgba(125,195,141,0.15); color: var(--green-bright); }
.gray-band .feature h3 { color: #fff; }
.gray-band .feature p { color: #c3c7c3; }
.gray-band .kicker { color: var(--green-bright); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; }
.checklist li { padding: 11px 0 11px 34px; position: relative; font-weight: 400; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 12px; width: 20px; height: 20px;
  background: var(--green-tint); color: var(--green); border-radius: 50%;
  font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.checklist li b { color: var(--ink); font-weight: 600; }

/* ---------- Statement ---------- */
.statement { background: var(--gray-deep); color: #f0f2f0; text-align: center; }
.statement blockquote { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 600; max-width: 880px; margin: 0 auto; line-height: 1.4; color: #fff; }
.statement blockquote span { color: var(--green-bright); }
.statement cite { display: block; margin-top: 28px; font-style: normal; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9ba09b; font-weight: 500; }

/* ---------- Portrait / About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; border-radius: 12px; display: block; aspect-ratio: 1; object-fit: cover; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--green-tint); border-radius: 12px; z-index: -1; }
.about-grid .body p { color: var(--ink-soft); margin-bottom: 20px; font-weight: 300; font-size: 1.02rem; }
.about-grid .body p b { color: var(--ink); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green), var(--green-dark)); border-radius: 12px; padding: 60px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; color: #fff; }
.cta-band p { color: #d7e8db; font-weight: 400; margin: 0; }
.cta-band .btn { background: #fff; color: var(--green); }
.cta-band .btn:hover { background: var(--paper); }

.contact-center { text-align: center; }
.contact-center h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 16px 0 20px; color: var(--gray); }
.contact-center p { color: var(--ink-soft); max-width: 540px; margin: 0 auto 40px; font-weight: 400; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info dl { margin: 0; }
.contact-info dt { font-weight: 600; color: var(--gray); margin-top: 24px; font-size: 0.9rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { color: var(--ink-soft); font-weight: 400; }
.contact-info dd a { color: var(--green); text-decoration: none; }
.contact-info dd a:hover { text-decoration: underline; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 500; font-size: 0.9rem; color: var(--gray); margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; font-weight: 400; color: var(--ink); background: #fff; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--green); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: 0.86rem; color: var(--ink-soft); font-weight: 400; }
.form-check input { width: auto; margin-top: 4px; flex-shrink: 0; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); font-weight: 400; margin-top: 16px; }
.form-status { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; font-size: 0.92rem; display: none; }
.form-status.ok { display: block; background: var(--green-tint); color: var(--green-dark); }
.form-status.err { display: block; background: #fbe9e7; color: #b3261e; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--gray); margin-bottom: 28px; }
.prose h2 { font-size: 1.35rem; color: var(--gray); margin: 40px 0 14px; }
.prose h3 { font-size: 1.05rem; color: var(--gray); margin: 26px 0 10px; }
.prose p { color: var(--ink-soft); font-weight: 400; margin-bottom: 16px; }
.prose ul { color: var(--ink-soft); font-weight: 400; margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--green); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .placeholder { background: #fff7d6; padding: 2px 6px; border-radius: 3px; font-weight: 500; color: #7a5c00; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-deep); color: #9ba09b; padding: 60px 0 36px; font-size: 0.86rem; font-weight: 400; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #454945; }
.footer-brand .logo-box { background: #fff; border-radius: 8px; padding: 10px 16px; display: inline-block; margin-bottom: 18px; }
.footer-brand .logo-box img { height: 34px; display: block; }
.footer-brand p { color: #9ba09b; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c3c7c3; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; }
.footer-bottom a { color: #c3c7c3; text-decoration: none; margin-left: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid, .feature-grid.cols-2 { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .marquee .wrap { grid-template-columns: 1fr 1fr; }
  .marquee div:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 84px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 28px 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-140%); transition: transform .3s; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-cta { text-align: center; margin-top: 12px; border: 1.5px solid var(--green); }
  section { padding: 68px 0; }
  .hero { padding: 76px 0 68px; }
  .svc { padding: 36px 28px; }
  .cta-band { padding: 40px 28px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .marquee .wrap { grid-template-columns: 1fr; }
  .marquee div { border-right: none; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .marquee div:last-child { border-bottom: none; }
}
