/* =========================================================
   KUKI – SolarStrom & EnergieExperte
   style.css
   ========================================================= */

/* ---------- 0. VARIJABLE / RESET ---------- */
:root {
  --navy-900: #0f2a4a;
  --navy-800: #143a63;
  --navy-700: #1c4f82;
  --green: #6cbe45;
  --green-dark: #57a233;
  --bg-light: #eef4fa;
  --bg-white: #ffffff;
  --text-body: #4c5b6b;
  --text-heading: var(--navy-800);
  --border-light: #e1e9f1;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --container-width: 1200px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 42, 74, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.6;
  background: var(--bg-white);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0 0 .6em;
}

h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--green-dark);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .5em;
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(108, 190, 69, .35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: #fff; }

.link-more,
.link-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--navy-700);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  font-family: inherit;
}
.link-more:hover,
.link-expand:hover { color: var(--green-dark); }

/* Kvačice (checkmarks) preko Font Awesome ::before, bez menjanja svakog <li> u HTML-u */
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-body);
}
.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--green);
  position: absolute;
  left: 0;
  top: 2px;
}
.qualifikationen-list li { padding-left: 0; display: flex; align-items: center; gap: 10px; }
.qualifikationen-list li::before { content: none; }
.qualifikationen-list li i { color: var(--green); width: 18px; text-align: center; }

/* =========================================================
   1. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-icon { width: 42px; height: 42px; object-fit: contain; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-800);
}
.logo-text strong { display: block; font-size: 1.05rem; letter-spacing: .5px; }
.logo-text .accent { color: var(--green); }
.logo-tagline { font-size: .68rem; color: var(--text-body); letter-spacing: .3px; }

.main-nav ul {
  display: flex;
  gap: 26px;
}
.main-nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--navy-800);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--green-dark); }

.header-cta { padding: 11px 20px; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-800);
  border-radius: 2px;
}

/* =========================================================
   2. HERO
   ========================================================= */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(10, 30, 55, .82) 0%, rgba(10, 30, 55, .45) 55%, rgba(10, 30, 55, .15) 100%),
    linear-gradient(160deg, #2b4f7a 0%, #1a3358 45%, #0f2138 100%);
  color: #fff;
  padding: 70px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
}

.hero .eyebrow {
  color: #cfe8b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .82rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  max-width: 14ch;
}

.hero-lead {
  color: rgba(255,255,255,.85);
  max-width: 52ch;
  font-size: 1.02rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .82rem;
  background: rgba(255,255,255,.06);
}
.hero-badges i { color: var(--green); }

.hero-image { display: flex; justify-content: flex-end; }

.hero-checklist {
  background: rgba(6, 20, 38, .55);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 22px 26px;
  backdrop-filter: blur(4px);
  width: 100%;
  max-width: 240px;
}
.hero-checklist li {
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  padding-left: 26px;
  position: relative;
  margin-bottom: 14px;
}
.hero-checklist li:last-child { margin-bottom: 0; }
.hero-checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--green);
  position: absolute;
  left: 0;
}

/* =========================================================
   3. VERTRAUENSLEISTE
   ========================================================= */
.trust-bar { background: var(--bg-white); border-bottom: 1px solid var(--border-light); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 0 10px;
}
.trust-item i { font-size: 1.6rem; color: var(--green); }
.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy-800);
  font-size: 1.2rem;
  line-height: 1.1;
}
.trust-item span { font-size: .82rem; color: var(--text-body); }

/* =========================================================
   4. LEISTUNGEN
   ========================================================= */
.leistungen { background: var(--bg-light); padding: 70px 0; }
.leistungen h2 { max-width: 20ch; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: start;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 0 0 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.card-media {
  height: 130px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  /* TODO: zameni gradient background sa slikom: background: url("../assets/card-*.jpg") center/cover no-repeat; */
}
.card-media--pv { background: linear-gradient(135deg, #3d6ea5, #1c3d63); }
.card-media--effizienz { background: linear-gradient(135deg, #4d8a4f, #1f3d2c); }
.card-media--service { background: linear-gradient(135deg, #5f7285, #24344a); }
.card-media--pm { background: linear-gradient(135deg, #3d6ea5, #16283f); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: #fff;
  margin: -26px 0 16px 24px;
  position: relative;
}

.card h3 { padding: 0 24px; font-size: 1.05rem; }
.card p { padding: 0 24px; font-size: .92rem; }
.card .link-expand { margin: 0 24px; }

.detail-panel { padding: 0 24px; margin-top: 14px; font-size: .9rem; }

/* =========================================================
   5. ENERGIEEFFIZIENZ / DENA
   ========================================================= */
.dena-section { padding: 70px 0; }

.dena-grid {
  display: grid;
  grid-template-columns: .8fr 1.3fr 1.1fr .6fr;
  gap: 28px;
  align-items: start;
}

.dena-image {
  height: 230px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #6b8f5a, #2c4a2e);
  /* TODO: zameni sa: background: url("../assets/dena-haus.jpg") center/cover no-repeat; */
  position: relative;
}
.dena-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #fff;
  color: var(--navy-800);
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dena-chip i { color: var(--green); }

.dena-text .badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
}
.section-sub { color: var(--green-dark); font-weight: 600; font-size: .9rem; }

.dena-list {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px;
}
.dena-list h3 { font-size: 1.02rem; }
.dena-list .btn-outline { margin-top: 10px; }

.dena-flyer {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 0;
  text-align: center;
  overflow: hidden;
}
.dena-flyer::before {
  content: "";
  display: block;
  height: 230px;
  border-radius: var(--radius);
  margin-bottom: 0;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  /* TODO: zameni sa: background: url("../assets/flyer-cover.jpg") center/cover no-repeat; */
}
.dena-flyer .link-more { font-size: .82rem; justify-content: center; }

/* =========================================================
   6. ZIELGRUPPEN
   ========================================================= */
.zielgruppen { background: var(--bg-light); padding: 70px 0; }
.zielgruppen-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.zg-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.zg-item i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}
.zg-item span { font-weight: 600; color: var(--navy-800); font-size: .92rem; }

/* =========================================================
   7. WARUM KUKI / QUALIFIKATIONEN / REFERENZEN / ÜBER MICH
   ========================================================= */
.warum-referenzen { padding: 70px 0; }
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.four-col h3 { margin-bottom: 16px; }

.referenz-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.referenz-item img {
  flex: none;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.referenz-text { font-size: .88rem; }
.referenz-text strong { display: block; color: var(--navy-800); }
.referenz-text span { color: var(--text-body); font-size: .8rem; }

.uber-mich-teaser .profile-thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}
.uber-mich-teaser p { font-size: .9rem; }

/* =========================================================
   8. KONTAKT CTA
   ========================================================= */
.kontakt-cta {
  background:
    linear-gradient(120deg, rgba(10, 30, 55, .88), rgba(10, 30, 55, .6)),
    linear-gradient(160deg, #2b4f7a, #0f2138);
  /* TODO: zameni gradient sa: url("../assets/kontakt-bg.jpg") center/cover no-repeat, overlay ostaje ispred */
  color: #fff;
  padding: 60px 0;
}
.kontakt-inner {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 40px;
  align-items: center;
}
.kontakt-cta h2 { color: #fff; max-width: 18ch; }
.kontakt-cta p { color: rgba(255,255,255,.85); }

.kontakt-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.kontakt-info p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .92rem; }
.kontakt-info i { color: var(--green); width: 16px; }

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 34px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.footer-logo .logo-text { color: #fff; font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a, .footer-legal a { font-size: .85rem; color: rgba(255,255,255,.75); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--green); }
.footer-legal { display: flex; gap: 16px; }
.footer-copyright { margin: 0; font-size: .78rem; }

.nittech-credit {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: rgba(255,255,255,.72);
  font-size: .68rem;
  line-height: 1.2;
  text-align: right;
}
.nittech-credit img { width: 78px; max-height: 26px; object-fit: contain; object-position: right center; }
.nittech-credit small { font-size: .7rem; color: rgba(255,255,255,.62); }
.nittech-credit i { color: var(--green); margin-right: 3px; }
.nittech-credit:hover, .nittech-credit:hover small { color: #fff; }

/* =========================================================
   10. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .dena-grid { grid-template-columns: repeat(2, 1fr); }
  .zielgruppen-grid { grid-template-columns: repeat(3, 1fr); }
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 500px; }
  .main-nav ul { flex-direction: column; padding: 16px 24px; gap: 4px; }
  .main-nav a { display: block; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { justify-content: flex-start; }

  .card-grid { grid-template-columns: 1fr; }
  .dena-grid { grid-template-columns: 1fr; }
  .zielgruppen-grid { grid-template-columns: repeat(2, 1fr); }
  .four-col { grid-template-columns: 1fr; }
  .kontakt-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .nittech-credit { align-items: center; text-align: center; }
}

/* ---------- Final visual polish ---------- */
section { scroll-margin-top: 92px; }

.site-header {
  border-bottom-color: rgba(225, 233, 241, .8);
  box-shadow: 0 3px 16px rgba(15, 42, 74, .04);
}
.header-inner { gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.logo-mark {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.logo-mark .logo-icon {
  width: 176px;
  max-width: none;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}
.logo-text { font-size: 1.08rem; }
.logo-text strong { font-size: 1.12rem; }
.logo-tagline { font-size: .72rem; }
.main-nav ul { gap: clamp(12px, 1.4vw, 22px); }
.main-nav a { font-size: .88rem; }
.footer-logo .logo-mark { width: 46px; height: 46px; }
.footer-logo .logo-icon { width: 120px; height: auto; }

.hero {
  background:
    linear-gradient(90deg, rgba(7, 28, 53, .94) 0%, rgba(9, 39, 69, .82) 39%, rgba(8, 33, 57, .30) 70%, rgba(8, 33, 57, .12) 100%),
    url("../assets/hero-bg.webp") center 61% / cover no-repeat;
  padding: clamp(76px, 9vw, 118px) 0 clamp(70px, 8vw, 105px);
  min-height: calc(100svh - 88px);
  display: flex;
  align-items: center;
}
.hero-inner { gap: 48px; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.45rem); max-width: 15ch; letter-spacing: -.035em; }
.hero-lead { font-size: 1.05rem; }
.hero-checklist {
  background: rgba(6, 20, 38, .68);
  border-color: rgba(255,255,255,.25);
  max-width: 252px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.trust-bar { padding: 22px 0 14px; }
.trust-grid { padding-top: 24px; padding-bottom: 24px; }
.trust-item { gap: 18px; }
.trust-item i { font-size: 2.15rem; }
.trust-item strong { font-size: 1.55rem; }
.trust-item span { font-size: .94rem; }
.js .trust-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1s ease;
}
.js .trust-item.is-visible { opacity: 1; transform: translateY(0); }
.js .trust-item:nth-child(2) { transition-delay: .28s; }
.js .trust-item:nth-child(3) { transition-delay: .56s; }
.js .trust-item:nth-child(4) { transition-delay: .84s; }
.js .card,
.js .zg-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1s ease, box-shadow .2s ease;
}
.js .card.is-visible,
.js .zg-item.is-visible { opacity: 1; transform: translateY(0); }
.js .card.is-visible:hover { transform: translateY(-6px); }
.js .zg-item.is-visible:hover { transform: translateY(-4px); }
.js .card:nth-child(2),
.js .zg-item:nth-child(2) { transition-delay: .28s; }
.js .card:nth-child(3),
.js .zg-item:nth-child(3) { transition-delay: .56s; }
.js .card:nth-child(4),
.js .zg-item:nth-child(4) { transition-delay: .84s; }
.js .zg-item:nth-child(5) { transition-delay: 1.12s; }

.leistungen, .dena-section, .warum-referenzen { padding: 88px 0; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 42, 74, .13); }
.card-media { height: 142px; }
.card-media--pv {
  background: linear-gradient(135deg, rgba(16, 57, 98, .45), rgba(9, 29, 48, .72)), url("../assets/Photovoltaik.jpg") center / cover;
}
.card-media--effizienz {
  background: linear-gradient(135deg, rgba(36, 89, 55, .18), rgba(13, 44, 31, .40)), url("../assets/energieberatung.jpg") center / cover;
}
.card-media--service {
  background: linear-gradient(135deg, rgba(26, 52, 78, .18), rgba(10, 29, 48, .42)), url("../assets/wartung.jpeg") center 42% / cover;
}
.card-media--pm {
  background: linear-gradient(135deg, rgba(16, 57, 98, .16), rgba(9, 29, 48, .40)), url("../assets/projekt-management.jpg") center / cover;
}

.dena-image {
  background: linear-gradient(160deg, rgba(22, 73, 40, .12), rgba(16, 49, 31, .32)), url("../assets/dena.jpeg") center / cover;
}

.dena-flyer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 16px 12px;
}
.dena-flyer::before { content: none; }
.tuv-certificate { text-align: center; width: 100%; }
.tuv-certificate img {
  width: min(100%, 142px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 5px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  image-rendering: pixelated;
}
.tuv-certificate p {
  margin: 0;
  color: var(--navy-700);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.25;
}
.tuv-certificate i { color: var(--green-dark); margin-right: 2px; }

@media (max-width: 768px) {
  .dena-flyer { min-height: auto; padding: 24px; }
  .tuv-certificate img { width: 150px; height: 150px; }
  .tuv-certificate p { font-size: .78rem; }
}

.external-site-dialog {
  width: min(92vw, 520px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 24px 70px rgba(15, 42, 74, .28);
}
.external-site-dialog::backdrop { background: rgba(8, 25, 45, .6); }
.external-site-dialog__content { padding: 32px; }
.external-site-dialog h2 { font-size: 1.45rem; }
.external-site-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.zg-item { transition: transform .2s ease, box-shadow .2s ease; }
.zg-item:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 42, 74, .12); }
.kontakt-cta {
  background:
    linear-gradient(120deg, rgba(10, 30, 55, .95), rgba(10, 30, 55, .65)),
    url("../assets/hero-bg.webp") center 70% / cover no-repeat;
}

/* Navigation targets in the four-column expertise section. */
.focus-panel {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.focus-panel.is-focused {
  background: linear-gradient(145deg, #f8fcf5, #fff);
  box-shadow: 0 0 0 2px var(--green), 0 16px 34px rgba(76, 139, 56, .17);
  transform: translateY(-3px);
}
.focus-panel.is-focused::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 44px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--green);
}
.main-nav a.is-active {
  color: var(--green-dark);
  font-weight: 700;
}
.main-nav a.is-active::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--green);
}

/* Keep service actions in one clean row and strengthen the audience cards. */
.card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  transition: opacity 1s ease, transform 1s ease, box-shadow .2s ease;
}
.card .link-expand { margin-top: auto; padding-top: 8px; }
.zg-item { padding: 30px 16px; }
.zg-item i { width: 68px; height: 68px; font-size: 1.65rem; margin-bottom: 16px; }
.zg-item span { font-size: 1.02rem; }
.qualifikationen-list li { margin-bottom: 18px; }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: auto; }
  .main-nav.open { display: block; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero { background-position: 62% center; }
  .hero-badges { gap: 8px; }
  .hero-badges span { font-size: .76rem; padding: 7px 10px; }
  .logo-mark { width: 58px; height: 58px; }
  .logo-mark .logo-icon { width: 150px; height: auto; }
  .logo-text { font-size: .92rem; }
  .logo-text strong { font-size: .98rem; }
  .logo-tagline { font-size: .62rem; }
}

@media (max-width: 440px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .header-inner { gap: 12px; }
  .header-cta { display: none; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 2.15rem; }
  .zielgruppen-grid { grid-template-columns: 1fr; }
}

/* ---------- About / portfolio page ---------- */
.about-page { overflow-x: hidden; }
.section-pad { padding: 100px 0; }
.about-hero { background: linear-gradient(118deg, #0c2b4c 0%, #143d65 59%, #1d4e67 100%); color: #fff; overflow: hidden; }
.about-hero__grid { min-height: 590px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 65px; }
.about-hero .eyebrow { color: #cfe8b8; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.about-hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4.35rem); max-width: 11ch; margin-bottom: 22px; letter-spacing: -.045em; }
.about-hero__lead { font-size: 1.1rem; max-width: 56ch; color: rgba(255,255,255,.86); }
.about-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.text-link { color: #fff; font-weight: 600; font-size: .95rem; }.text-link i { color: var(--green); margin-left: 5px; }
.about-hero__portrait { position: relative; align-self: end; justify-self: end; width: min(100%, 410px); padding-top: 65px; }
.portrait-frame { height: 520px; overflow: hidden; border-radius: 180px 180px 0 0; background: #dce2de; border: 10px solid rgba(255,255,255,.12); border-bottom: 0; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 32%; }
.portrait-note { position: absolute; left: -58px; bottom: 44px; background: #fff; box-shadow: 0 16px 34px rgba(2,18,35,.28); padding: 14px 20px; border-radius: 8px; display: flex; align-items: center; gap: 12px; color: var(--navy-800); }
.portrait-note i { color: var(--green); font-size: 1.55rem; }.portrait-note span { line-height: 1.2; font-size: .75rem; }.portrait-note strong { display: block; font-family: var(--font-heading); font-size: 1.12rem; }
.intro-grid, .standards-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }.intro-title h2 { max-width: 15ch; }.intro-text { font-size: 1.02rem; }.intro-text p:last-child { margin-bottom: 0; }
.credential-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-light); margin-top: 70px; padding-top: 30px; gap: 18px; }.credential { display: flex; align-items: center; gap: 13px; color: var(--navy-800); font-family: var(--font-heading); line-height: 1.15; font-size: .93rem; }.credential i { color: var(--green); font-size: 1.45rem; }.credential small { display: block; font: 400 .76rem var(--font-body); color: var(--text-body); margin-top: 4px; }
.expertise-section, .tools-section { background: var(--bg-light); }.section-heading { margin-bottom: 40px; }.section-heading h2 { margin: 0; }.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.expertise-card { background: #fff; padding: 30px; border-radius: var(--radius); border: 1px solid transparent; box-shadow: 0 8px 24px rgba(15,42,74,.05); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }.expertise-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(108,190,69,.35); }.expertise-card i { color: var(--green); font-size: 1.5rem; margin-bottom: 20px; }.expertise-card h3 { font-size: 1.05rem; }.expertise-card p { font-size: .9rem; margin: 0; }
.career-section { background: #fff; }.career-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 85px; }.career-intro { position: sticky; top: 110px; align-self: start; }.career-intro h2 { max-width: 15ch; }.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid #d9e5ef; }.timeline-item { display: grid; grid-template-columns: 115px 1fr; gap: 25px; position: relative; padding: 0 0 48px 35px; }.timeline-item:last-child { padding-bottom: 0; }.timeline-item::before { content: ""; position: absolute; width: 12px; height: 12px; border: 3px solid #fff; background: var(--green); box-shadow: 0 0 0 2px var(--green); border-radius: 50%; left: -7px; top: 5px; }.timeline-year { font: 600 .82rem var(--font-heading); color: var(--green-dark); }.timeline-item h3 { font-size: 1.12rem; margin-bottom: 3px; }.timeline-item p { font-size: .92rem; }.timeline-company { color: var(--navy-700); font-weight: 600; margin-bottom: 10px; }
.standards-section { background: var(--navy-900); color: rgba(255,255,255,.78); }.standards-quote { padding: 45px; background: rgba(255,255,255,.06); border-radius: var(--radius); }.standards-quote > i { color: var(--green); font-size: 1.5rem; }.standards-quote blockquote { font: 600 clamp(1.35rem,2.2vw,1.85rem)/1.4 var(--font-heading); color: #fff; margin: 20px 0; }.standards-quote p { color: #cfe8b8; margin: 0; }.standards-content h2 { color: #fff; max-width: 19ch; }.standards-content .eyebrow { color: #cfe8b8; }.standards-content .check-list { margin-top: 24px; }.standards-content .check-list li { color: rgba(255,255,255,.88); }
.tool-list { display: flex; flex-wrap: wrap; gap: 12px; }.tool-list span { background: #fff; border: 1px solid var(--border-light); color: var(--navy-800); border-radius: 999px; padding: 10px 17px; font-size: .88rem; font-weight: 600; }.language-line { margin: 26px 0 0; color: var(--navy-700); font-weight: 600; }.language-line i { color: var(--green); margin-right: 8px; }
.about-contact { padding: 90px 0; background: #fff; }.contact-box { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 55px 60px; border-radius: var(--radius); background: linear-gradient(110deg,#123b63,#1c5470); color: #fff; }.contact-box .eyebrow { color: #cfe8b8; }.contact-box h2 { color: #fff; max-width: 18ch; margin-bottom: 10px; }.contact-box > div > p:last-child { color: rgba(255,255,255,.82); margin: 0; }.contact-box__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }.email-link { color: #fff; font-size: .9rem; }.email-link i { color: var(--green); margin-right: 8px; }
.about-page .main-nav a.is-active { color: var(--green-dark); font-weight: 700; }.about-page .main-nav a.is-active::after { content: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }.reveal.is-visible { opacity: 1; transform: none; }.reveal--delay { transition-delay: .15s; }.reveal--delay-1 { transition-delay: .1s; }.reveal--delay-2 { transition-delay: .2s; }.reveal--delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) { .about-hero__grid { grid-template-columns: 1fr .75fr; gap: 26px; }.about-hero__portrait { width: 330px; }.portrait-frame { height: 460px; }.portrait-note { left: -32px; }.credential-grid { grid-template-columns: repeat(2,1fr); }.career-grid { gap: 45px; }.contact-box { padding: 44px; } }
@media (max-width: 768px) { .section-pad { padding: 68px 0; }.about-hero__grid,.intro-grid,.standards-grid,.career-grid,.contact-box { grid-template-columns: 1fr; }.about-hero__grid { min-height: 0; padding-top: 65px; gap: 20px; }.about-hero h1 { font-size: clamp(2.45rem,12vw,3.5rem); }.about-hero__portrait { width: min(100%,360px); justify-self: center; padding-top: 10px; }.portrait-frame { height: 420px; }.portrait-note { bottom: 24px; left: -12px; }.intro-grid,.standards-grid { gap: 35px; }.credential-grid { margin-top: 42px; }.expertise-grid { grid-template-columns: 1fr; }.career-intro { position: static; }.timeline { margin-top: 4px; }.timeline-item { grid-template-columns: 1fr; gap: 4px; padding-left: 27px; }.standards-quote { padding: 30px; }.contact-box { padding: 36px 28px; gap: 28px; }.about-contact { padding: 60px 0; } }
@media (max-width: 440px) { .credential-grid { grid-template-columns: 1fr; }.about-hero__actions { align-items: flex-start; flex-direction: column; gap: 16px; }.portrait-frame { height: 370px; }.portrait-note { padding: 11px 14px; }.email-link { word-break: break-word; } }

/* ---------- Legal pages ---------- */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-page .site-footer { margin-top: auto; }
.legal-back { margin-left: auto; color: var(--navy-800); font-weight: 600; font-size: .9rem; }
.legal-back i { color: var(--green); margin-right: 7px; }
.legal-back:hover { color: var(--green-dark); }
.legal-main { padding: clamp(58px, 8vw, 96px) 0; background: var(--bg-light); }
.legal-content { max-width: 860px; }
.legal-content h1 { font-size: clamp(2.25rem, 4.5vw, 3.4rem); letter-spacing: -.04em; margin-bottom: 6px; }
.legal-updated { color: var(--text-body); font-size: .9rem; margin-bottom: 46px; }
.legal-content section { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 16px; box-shadow: 0 6px 18px rgba(15,42,74,.04); }
.legal-content h2 { font-size: 1.16rem; margin-bottom: 12px; }
.legal-content section p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(108,190,69,.65); text-underline-offset: 3px; }
.legal-content a:hover { color: var(--green-dark); }
@media (max-width: 600px) { .legal-back { font-size: .8rem; }.legal-content section { padding: 23px 20px; }.legal-main { padding: 48px 0; } }

/* ---------- Projects gallery ---------- */
.projects-page { overflow-x: hidden; }
.projects-hero { color: #fff; padding: clamp(88px, 12vw, 145px) 0 clamp(82px, 10vw, 120px); background: linear-gradient(102deg, rgba(7,30,52,.94) 0%, rgba(12,49,75,.84) 47%, rgba(13,47,66,.48) 100%), url("../assets/projekte/5.webp") center 48% / cover no-repeat; }
.projects-hero__inner { max-width: 720px; }.projects-hero .eyebrow { color: #cfe8b8; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }.projects-hero h1 { color: #fff; font-size: clamp(2.45rem,5.2vw,4.4rem); letter-spacing: -.045em; max-width: 12ch; margin-bottom: 20px; }.projects-hero__inner > p:not(.eyebrow) { max-width: 59ch; color: rgba(255,255,255,.87); font-size: 1.06rem; margin-bottom: 28px; }
.projects-heading { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 48px; margin-bottom: 42px; }.projects-heading h2 { max-width: 18ch; margin: 0; }.projects-heading > p { margin: 0; font-size: .98rem; }.project-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.project-card { overflow: hidden; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(15,42,74,.06); transition: transform .25s ease, box-shadow .25s ease; }.project-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(15,42,74,.14); }.project-card__image { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--navy-900); cursor: zoom-in; overflow: hidden; }.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }.project-card:hover .project-card__image img { transform: scale(1.055); }.project-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 52%,rgba(8,29,49,.3)); pointer-events: none; }.project-card__image span { position: absolute; z-index: 1; right: 13px; bottom: 13px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.93); color: var(--navy-800); opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; }.project-card:hover .project-card__image span,.project-card__image:focus-visible span { opacity: 1; transform: none; }.project-card__image:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }.project-card__body { padding: 20px 21px 22px; }.project-card__place { color: var(--green-dark); font-size: .8rem; font-weight: 700; margin-bottom: 8px; }.project-card__place i { margin-right: 6px; }.project-card h3 { font-size: 1.06rem; margin-bottom: 7px; }.project-card__body > p:last-child { font-size: .89rem; line-height: 1.55; margin: 0; }
.project-lightbox { width: min(94vw,1120px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }.project-lightbox::backdrop { background: rgba(3,17,31,.84); backdrop-filter: blur(4px); }.project-lightbox figure { margin: 0; position: relative; }.project-lightbox img { max-width: 100%; max-height: calc(92vh - 50px); margin: 0 auto; border-radius: 8px; object-fit: contain; box-shadow: 0 22px 70px rgba(0,0,0,.45); }.project-lightbox figcaption { color: #fff; font: 500 .92rem var(--font-body); padding: 12px 4px 0; text-align: center; }.project-lightbox__close { position: absolute; z-index: 2; right: -13px; top: -13px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--navy-900); box-shadow: 0 6px 18px rgba(0,0,0,.25); font-size: 1.1rem; cursor: pointer; }.project-lightbox__close:hover { background: var(--green); color: #fff; }
@media (max-width: 900px) { .project-gallery { grid-template-columns: repeat(2,1fr); }.projects-heading { grid-template-columns: 1fr; gap: 12px; } } @media (max-width: 600px) { .projects-hero { background-position: 60% center; }.project-intro.section-pad { padding: 68px 0; }.project-gallery { grid-template-columns: 1fr; gap: 18px; }.project-card__image span { opacity: 1; transform: none; }.project-lightbox__close { right: 5px; top: 5px; }.project-lightbox { width: 96vw; } }
