/*
Theme Name: KoBi Forest-Marketing
Theme URI: https://kobi-forest-marketing.de/
Author: KoBi Forest-Marketing
Description: Professionelles, responsives WordPress-Theme für Jagd, Forst, Gutachten und Naturmonitoring.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kobi-forest-marketing
*/

:root {
  --kobi-bg: #f5f2e9;
  --kobi-surface: #eae5d9;
  --kobi-text: #19231e;
  --kobi-muted: #5d6d64;
  --kobi-green: #294f3d;
  --kobi-green-dark: #18382b;
  --kobi-accent: #8f6846;
  --kobi-border: #d7d0c0;
  --kobi-white: #fff;
  --kobi-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kobi-bg);
  color: var(--kobi-text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: "Avenir Next", "Segoe UI", Arial, sans-serif; line-height: 1.08; margin-top: 0; }
.kobi-container { width: min(calc(100% - 48px), var(--kobi-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 9999; background: #fff; padding: 10px 14px; }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(245,242,233,.94);
  border-color: var(--kobi-border);
  box-shadow: 0 6px 22px rgba(25,35,30,.08);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.custom-logo-link img { width: auto; max-width: 180px; max-height: 58px; }
.logo-placeholder {
  display: flex;
  width: 160px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,.65);
  color: #fff;
  background: rgba(0,0,0,.12);
  text-decoration: none;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.logo-placeholder small { display: block; font-size: 8px; opacity: .72; }
.is-scrolled .logo-placeholder {
  border-color: rgba(41,79,61,.45);
  color: var(--kobi-green);
  background: rgba(41,79,61,.06);
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: rgba(255,255,255,.92); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: #fff; }
.is-scrolled .site-nav a { color: var(--kobi-muted); }
.is-scrolled .site-nav a:hover { color: var(--kobi-green); }
.button, .site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  background: var(--kobi-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.button:hover, .site-nav .nav-cta:hover { transform: translateY(-2px); background: var(--kobi-green-dark); color: #fff; }
.site-header:not(.is-scrolled) .site-nav .nav-cta { background: rgba(245,242,233,.86); color: var(--kobi-green); }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
.is-scrolled .menu-toggle { color: var(--kobi-text); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--kobi-green);
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24,56,43,.86), rgba(41,79,61,.62) 52%, var(--kobi-bg));
}
.hero-bg, .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero-content { position: relative; z-index: 1; max-width: 880px; padding: 130px 0 110px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--kobi-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero .eyebrow { padding: 5px 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); }
.hero h1 { margin-bottom: 28px; color: #fff; font-size: clamp(46px, 7vw, 82px); }
.hero p { max-width: 710px; margin: 0 auto 38px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 23px); font-weight: 300; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.hero-actions .button:first-child { background: #fff; color: var(--kobi-green); }
.button-outline { border-color: rgba(255,255,255,.42); background: transparent; }
.button-outline:hover { background: rgba(255,255,255,.12); }

.page-hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--kobi-green); }
.page-hero::before { background: linear-gradient(90deg, rgba(24,56,43,.98), rgba(24,56,43,.82), rgba(24,56,43,.28)); }
.page-hero-content { position: relative; z-index: 1; max-width: 900px; padding-top: 110px; color: #fff; }
.page-hero .eyebrow { color: rgba(255,255,255,.72); }
.page-hero h1 { color: #fff; font-size: clamp(42px, 6vw, 72px); }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.78); font-size: 20px; }

.section { padding: 108px 0; }
.section-surface { background: var(--kobi-surface); }
.section-dark { background: var(--kobi-green); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header { max-width: 750px; margin-bottom: 58px; }
.section-header h2, .split h2 { font-size: clamp(34px, 5vw, 56px); }
.section-header p, .lead { color: var(--kobi-muted); font-size: 18px; }
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 80px; align-items: start; }
.split-copy { color: var(--kobi-muted); font-size: 18px; }
.split-copy p { margin-top: 0; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--kobi-border); }
.stat { padding: 28px 22px 0 0; }
.stat strong { display: block; color: var(--kobi-green); font-family: "Outfit", sans-serif; font-size: 34px; }
.stat span { color: var(--kobi-muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 34px; border: 1px solid var(--kobi-border); background: var(--kobi-surface); }
.card-number { color: rgba(41,79,61,.24); font-family: "Outfit", sans-serif; font-size: 42px; }
.card h3 { margin: 28px 0 12px; font-size: 25px; }
.card p { color: var(--kobi-muted); }
.card a { color: var(--kobi-green); font-weight: 700; text-decoration: none; }
.image-card { min-height: 440px; padding: 0; overflow: hidden; }
.image-card img { width: 100%; height: 230px; object-fit: cover; }
.image-card-body { padding: 30px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.offer-card { padding: 38px; border: 1px solid var(--kobi-border); background: var(--kobi-surface); }
.offer-card-top { display: flex; justify-content: space-between; color: var(--kobi-green); }
.offer-card h2 { margin: 38px 0 12px; font-size: 28px; }
.offer-card p { color: var(--kobi-muted); }
.offer-card ul { margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid var(--kobi-border); list-style: none; }
.offer-card li { position: relative; padding: 7px 0 7px 25px; }
.offer-card li::before { content: "✓"; position: absolute; left: 0; color: var(--kobi-accent); font-weight: 700; }
.timeline { border-block: 1px solid var(--kobi-border); }
.timeline-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--kobi-border); }
.timeline-row:last-child { border-bottom: 0; }
.timeline-year { color: var(--kobi-accent); font-weight: 700; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta .button { background: #fff; color: var(--kobi-green); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-list { display: grid; gap: 22px; margin-top: 40px; }
.contact-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; }
.contact-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); }
.contact-item small { display: block; color: rgba(255,255,255,.58); }
.contact-item a { color: #fff; font-weight: 700; text-decoration: none; }
.form-panel { padding: 42px; border-radius: 14px; background: var(--kobi-bg); color: var(--kobi-text); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.form-panel h2 { font-size: 30px; }
.form-panel label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.form-panel input, .form-panel textarea, .form-panel select {
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid var(--kobi-border);
  border-radius: 3px;
  background: #fff;
  font: inherit;
}
.form-note { padding: 18px; border-left: 3px solid var(--kobi-accent); background: var(--kobi-surface); color: var(--kobi-muted); font-size: 14px; }
.form-note code { word-break: break-word; }

.legal-content, .editor-content { max-width: 900px; }
.legal-notice { margin-bottom: 45px; padding: 18px 20px; border: 1px solid #e0bd50; background: #fff9df; color: #684d09; font-size: 14px; }
.legal-section { padding: 32px 0; border-top: 1px solid var(--kobi-border); }
.legal-section h2 { font-size: 27px; }
.legal-section p, .legal-section li { color: var(--kobi-muted); }
.editor-content > *:first-child { margin-top: 0; }

/* Gutenberg page system (front end and native editor). */
.kobi-block-page > .wp-block-group,
.editor-styles-wrapper .wp-block-group { margin-block: 0; }
.kobi-section {
  padding: 108px 0;
  background: var(--kobi-bg);
}
.kobi-section.kobi-surface { background: var(--kobi-surface); }
.kobi-section.kobi-dark { background: var(--kobi-green); color: #fff; }
.kobi-dark h2, .kobi-dark h3, .kobi-dark p, .kobi-dark a { color: inherit; }
.kobi-home-hero, .kobi-page-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--kobi-green);
  color: #fff;
}
.kobi-page-hero { min-height: 600px; place-items: center start; }
.kobi-home-hero::after, .kobi-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24,56,43,.86), rgba(41,79,61,.62) 52%, var(--kobi-bg));
}
.kobi-page-hero::after { background: linear-gradient(90deg, rgba(24,56,43,.98), rgba(24,56,43,.82), rgba(24,56,43,.28)); }
.kobi-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.kobi-hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.kobi-hero-copy { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--kobi-container)); padding: 130px 0 110px; }
.kobi-home-hero .kobi-hero-copy { max-width: 880px; text-align: center; }
.kobi-home-hero h1 { color: #fff; font-size: clamp(46px,7vw,82px); }
.kobi-page-hero h1 { color: #fff; font-size: clamp(42px,6vw,72px); }
.kobi-home-hero .lead { max-width: 710px; margin-inline: auto; }
.kobi-home-hero .lead, .kobi-page-hero .lead { color: rgba(255,255,255,.82); font-size: clamp(18px,2vw,23px); }
.kobi-home-hero .eyebrow, .kobi-page-hero .eyebrow { color: rgba(255,255,255,.82); }
.wp-block-button__link { border-radius: 0; background: var(--kobi-green); font-weight: 700; padding: 12px 24px; }
.kobi-home-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--kobi-green); }
.kobi-home-hero .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.5); color: #fff; }
.kobi-split { gap: 80px; }
.kobi-split h2, .kobi-section-heading h2 { font-size: clamp(34px,5vw,56px); }
.kobi-stats { gap: 0; margin-top: 48px; border-top: 1px solid var(--kobi-border); }
.kobi-stats > .wp-block-column { padding-top: 24px; }
.kobi-stats h3 { margin-bottom: 0; color: var(--kobi-green); font-size: 34px; }
.kobi-stats p { color: var(--kobi-muted); font-size: 13px; }
.kobi-section-heading { max-width: 750px; margin: 0 0 58px !important; }
.kobi-cards { gap: 20px; }
.kobi-card { overflow: hidden; border: 1px solid var(--kobi-border); background: var(--kobi-bg); }
.kobi-card > :not(.wp-block-image) { margin-inline: 30px; }
.kobi-card > :last-child { margin-bottom: 30px; }
.kobi-card .wp-block-image { margin: 0; }
.kobi-card .wp-block-image img { width: 100%; height: 230px; object-fit: cover; }
.kobi-card .card-number, .kobi-offer-card .card-number { margin-top: 24px; color: rgba(41,79,61,.35); font-size: 35px; font-weight: 700; }
.kobi-card h3 { font-size: 25px; }
.kobi-card a { color: var(--kobi-green); font-weight: 700; text-decoration: none; }
.kobi-offer-grid { flex-wrap: wrap !important; gap: 20px; margin-top: 50px; }
.kobi-offer-grid > .wp-block-column { flex-basis: calc(50% - 10px) !important; }
.kobi-offer-card { padding: 38px; border: 1px solid var(--kobi-border); background: var(--kobi-surface); }
.kobi-offer-card h3 { font-size: 28px; }
.kobi-offer-card ul { padding-top: 20px; border-top: 1px solid var(--kobi-border); }
.kobi-timeline { padding: 0; border-block: 1px solid var(--kobi-border); list-style: none; }
.kobi-timeline li { padding: 17px 0; border-bottom: 1px solid var(--kobi-border); }
.kobi-timeline li:last-child { border: 0; }
.kobi-timeline strong { display: inline-block; min-width: 135px; color: var(--kobi-accent); }
.kobi-contact-grid { gap: 70px; }
.kobi-contact-panel { padding: 42px; border-radius: 14px; background: var(--kobi-bg); color: var(--kobi-text); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.kobi-contact-panel .kobi-note { margin-top: 24px; padding: 18px; border-left: 3px solid var(--kobi-accent); background: var(--kobi-surface); color: var(--kobi-muted); font-size: 14px; }
.kobi-legal > .kobi-container { max-width: 900px; }
.kobi-legal-section { padding: 32px 0; border-top: 1px solid var(--kobi-border); }
.kobi-legal-section h2 { font-size: 27px; }
.kobi-legal-notice { padding: 18px 20px; border: 1px solid #e0bd50; background: #fff9df; color: #684d09; }
.editor-styles-wrapper { padding: 0 !important; background: var(--kobi-bg); color: var(--kobi-text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
.editor-styles-wrapper .kobi-home-hero, .editor-styles-wrapper .kobi-page-hero { min-height: 620px; }
.editor-styles-wrapper .kobi-container { width: min(calc(100% - 48px), var(--kobi-container)); margin-inline: auto; }

.site-footer { padding: 72px 0 30px; border-top: 1px solid var(--kobi-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 55px; margin-bottom: 50px; }
.footer-brand { max-width: 420px; color: var(--kobi-muted); }
.footer-title { margin-bottom: 18px; font-size: 16px; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 10px 0; }
.footer-links a { color: var(--kobi-muted); text-decoration: none; }
.footer-links a:hover { color: var(--kobi-green); }
.social-links { display: flex; gap: 10px; margin-top: 24px; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--kobi-border); border-radius: 50%; background: var(--kobi-surface); color: var(--kobi-muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.social-link:hover { border-color: var(--kobi-green); background: var(--kobi-green); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 25px; border-top: 1px solid var(--kobi-border); color: var(--kobi-muted); font-size: 13px; }
.not-found { min-height: 75vh; display: grid; place-items: center; padding-top: 140px; text-align: center; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 26px 24px;
    background: var(--kobi-bg);
    border-bottom: 1px solid var(--kobi-border);
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 18px; }
  .site-nav a, .site-header:not(.is-scrolled) .site-nav a { color: var(--kobi-text); font-size: 17px; }
  .site-nav .nav-cta { margin-top: 20px; width: 100%; background: var(--kobi-green) !important; color: #fff !important; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .kobi-split, .kobi-contact-grid { gap: 48px; }
}

@media (max-width: 620px) {
  .kobi-container { width: min(calc(100% - 32px), var(--kobi-container)); }
  .site-header { padding: 17px 0; }
  .logo-placeholder { width: 135px; height: 43px; }
  .hero-content { padding-top: 120px; }
  .hero h1 { font-size: 46px; }
  .page-hero { min-height: 520px; }
  .page-hero h1 { font-size: 43px; }
  .section { padding: 76px 0; }
  .cards, .offer-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .stat { padding-bottom: 18px; }
  .timeline-row { grid-template-columns: 1fr; gap: 4px; }
  .cta, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .form-panel { padding: 28px 20px; }
  .kobi-section { padding: 76px 0; }
  .kobi-hero-copy { width: min(calc(100% - 32px), var(--kobi-container)); }
  .kobi-page-hero { min-height: 520px; }
  .kobi-offer-grid > .wp-block-column { flex-basis: 100% !important; }
  .kobi-contact-panel { padding: 28px 20px; }
}
