/* ==========================================================================
   LOKISA Holding – statische Website
   Eigenständiges Stylesheet, keine externen Abhängigkeiten
   ========================================================================== */

:root {
  /* Markenfarben aus dem Logo: Stahlblau #306285, Dunkelgrau #4C5255 */
  --green-900: #1d3e54;
  --green-700: #306285;
  --green-600: #3b769e;
  --green-500: #5a8bab;
  --green-100: #e8eff4;
  --accent:    #7fb0cd;
  --ink:       #25303a;
  --ink-soft:  #4c5255;
  --muted:     #6b7378;
  --line:      #e3e7ea;
  --bg:        #ffffff;
  --bg-soft:   #f4f7f9;
  --bg-dark:   #1f2e38;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 10px 30px rgba(16, 42, 28, .08);
  --shadow-sm: 0 4px 14px rgba(16, 42, 28, .07);
  --maxw:      1140px;
  --font:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 78px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700; color: var(--green-600); margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
}
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn--ghost:hover { background: var(--green-100); color: var(--green-700); }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: #f0f0f0; color: var(--green-900); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); font-size: 1.18rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand .brand__mark { flex: 0 0 auto; }
.brand .brand__logo { height: 36px; width: auto; display: block; }
.brand strong { color: var(--green-700); font-weight: 800; }
.brand span { font-weight: 500; color: var(--muted); font-size: .98rem; }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__menu > li > a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .96rem;
}
.nav__menu > li > a:hover,
.nav__menu > li.is-active > a { background: var(--green-100); color: var(--green-700); }

.nav__menu .submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.nav__menu > li:hover .submenu,
.nav__menu > li:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink-soft); font-size: .92rem; }
.submenu a:hover { background: var(--bg-soft); color: var(--green-700); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(127,176,205,.30), transparent 60%),
    linear-gradient(135deg, #1d3e54 0%, #306285 60%, #3b769e 100%);
}
.hero__inner { padding: 96px 0 104px; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; display: block; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Feature / participation rows ---------- */
.feature {
  display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); scroll-margin-top: 100px;
}
.feature__badge {
  width: 110px; height: 110px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.feature__badge svg { width: 56px; height: 56px; }
.badge--energy   { background: linear-gradient(135deg, #2f7d92, #52a7bd); }
.badge--solar    { background: linear-gradient(135deg, #c8862f, #e6b25a); }
.badge--projekt  { background: linear-gradient(135deg, #2a597a, #4f8bb0); }
.badge--immo     { background: linear-gradient(135deg, #475862, #6e818c); }
.feature__body h2 { margin-bottom: 6px; }
.feature__body .kicker { color: var(--green-600); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.feature__body p { color: var(--ink-soft); }

/* ---------- Beteiligungs-Karten mit echtem Logo ---------- */
.bet-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm); scroll-margin-top: 100px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bet-card .kicker { display:block; color: var(--green-600); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.bet-card h2 { margin: 0 0 12px; }
.bet-card p { color: var(--ink-soft); margin: 0 0 18px; }
.bet-logo {
  height: 54px; width: auto; max-width: 280px; object-fit: contain;
  margin: 0 0 20px; display: block;
}
.bet-wordmark {
  display: inline-block; margin-bottom: 20px; font-size: 1.55rem; font-weight: 800;
  letter-spacing: -.01em; line-height: 1;
}
.bet-wordmark b { color: #e8a33d; font-weight: 800; }
.bet-wordmark span { color: var(--green-700); font-weight: 700; }

/* ---------- Bild + Text nebeneinander ---------- */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.media-split.reverse .media-split__media { order: 2; }
.media-split__media img {
  width: 100%; height: 100%; max-height: 360px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block;
}
.media-split__body h2 { margin-top: 0; }
.media-split__body p { color: var(--ink-soft); }

/* ---------- Banner-Bild ---------- */
.figure-img { margin: 0; }
.figure-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block; }
.figure-img figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 12px; }
.banner-img {
  width: 100%; max-height: 340px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block;
}

/* ---------- Values / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.pillar {
  text-align: center; padding: 26px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.pillar__icon { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--green-600); }
.pillar h3 { font-size: 1.05rem; margin: 0; }

/* ---------- Timeline (Geschichte) ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--green-500), var(--green-100));
}
.tl-item { position: relative; padding: 0 0 30px 56px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 12px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green-600); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green-500);
}
.tl-item .tl-year { font-weight: 800; color: var(--green-700); font-size: 1.05rem; }
.tl-item p { color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- Stats band ---------- */
.band { background: var(--bg-dark); color: #fff; }
.band .grid--4 { gap: 20px; }
.stat { text-align: center; padding: 14px; }
.stat__num { font-size: 2.3rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat__label { color: rgba(255,255,255,.78); margin-top: 8px; font-size: .98rem; }

/* ---------- Prose (Impressum / Datenschutz) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--green-800, #244c66); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose .lead { font-size: 1.12rem; color: var(--ink); }
.prose strong { color: var(--ink); }
.info-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--green-600);
  border-radius: var(--radius-sm); padding: 22px 26px; margin: 22px 0;
}
.info-card p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ci-item svg { width: 22px; height: 22px; color: var(--green-600); flex: 0 0 auto; margin-top: 3px; }
.contact-info .ci-item h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-info .ci-item p, .contact-info .ci-item a { margin: 0; color: var(--ink-soft); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fcfdfc; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(58,118,158,.20);
}
.field textarea { min-height: 130px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form .consent input { width: auto; margin-top: 4px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #1d3e54 0%, #306285 100%);
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.9); margin: 0; max-width: 640px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.78); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-contact p { margin: 0 0 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center;
  font-size: .88rem; color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.center-narrow { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu > li > a { padding: 12px 10px; }
  .nav__menu .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; padding: 0 0 6px 14px; min-width: 0;
  }
  .feature { grid-template-columns: 1fr; }
  .feature__badge { width: 84px; height: 84px; }
  .feature__badge svg { width: 42px; height: 42px; }
  .form .row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .media-split { grid-template-columns: 1fr; gap: 26px; }
  .media-split.reverse .media-split__media { order: 0; }
  .media-split__media img { max-height: 280px; }
}

@media (max-width: 520px) {
  .grid--3, .grid--4, .pillars, .footer-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
