:root {
  --orange: #ec6607;
  --orange-dark: #b94f05;
  --orange-tint: #fdeedf;
  --blue: #246490;
  --blue-dark: #1b4c6e;
  --blue-tint: #e3eef6;
  --green: #a5bc0c;
  --green-dark: #5f6e07;
  --green-tint: #eff4d3;
  --ink: #1f2a33;
  --muted: #55606a;
  --cream: #fbf7f0;
  --header-bg: #fbf7ef;
  --line: #9fb7c9;
  --pad: clamp(64px, 9vw, 128px);
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); }
h1, h2, h3 { letter-spacing: -0.015em; line-height: 1.2; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1200px; }

.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; opacity: .8; margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--blue-dark);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue-dark); }
.btn-ghost:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--header-bg);
  border-bottom-right-radius: clamp(60px, 10vw, 160px);
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 112px);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.logo { width: 100%; max-width: 520px; height: auto; display: block; }
.hero-sub { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--orange-dark); font-weight: 600; margin: 28px 0 32px; max-width: 480px; line-height: 1.45; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo img {
  width: 100%; aspect-ratio: 1800 / 1286; object-fit: cover; display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(185, 79, 5, .18);
}

/* ---------- Intro ---------- */
.intro { padding: var(--pad) 0 40px; text-align: center; }
.intro .lead {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  color: var(--blue-dark);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
}
.intro-text { max-width: 640px; margin: 22px auto 0; font-size: 1.15rem; color: var(--muted); }

/* ---------- Säulen mit Verbindungslinien ---------- */
.pillars-sec { padding: 24px 0 var(--pad); }
.pillars-note {
  text-align: center;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--blue-dark);
  max-width: 760px;
  margin: 48px auto 0;
  line-height: 1.4;
}
.pillars-note strong { color: var(--orange); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pillar .dot { width: 34px; height: 34px; border-radius: 50%; margin-bottom: 26px; }
.pillar h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 14px; }
.pillar p { font-size: 1.12rem; color: var(--muted); max-width: 290px; }
.p-orange { background: var(--orange-tint); }
.p-orange .dot { background: var(--orange); }
.p-orange h3 { color: var(--orange-dark); }
.p-blue { background: var(--blue-tint); }
.p-blue .dot { background: var(--blue); }
.p-blue h3 { color: var(--blue-dark); }
.p-green { background: var(--green-tint); }
.p-green .dot { background: var(--green); }
.p-green h3 { color: var(--green-dark); }

/* ---------- Story ---------- */
.story {
  padding: var(--pad) 0;
  background: var(--blue-tint);
  border-radius: clamp(40px, 6vw, 96px) 0 0 0;
}
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.story-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--blue-dark); margin-bottom: 28px; }
.checks { list-style: none; margin-bottom: 32px; }
.checks li { font-size: 1.2rem; font-weight: 600; padding: 9px 0 9px 46px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23ec6607' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.story-quote {
  font-size: 1.15rem; color: var(--muted);
  padding: 0;
}
.story-visual { position: relative; padding: 0 0 18% 0; }
.sv-back {
  display: block; width: 82%; margin-left: auto;
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
}
.sv-front {
  position: absolute; left: 0; bottom: 0; width: 52%;
  aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius);
  border: 8px solid #fff; box-shadow: 0 20px 50px rgba(0,0,0,.16);
}

/* ---------- Galerie ---------- */
.gallery-sec {
  padding: var(--pad) 0;
  background: var(--cream);
  border-radius: 0 0 clamp(40px, 6vw, 96px) 0;
}
.gallery-sec h2 {
  text-align: center;
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 44px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery a { display: block; overflow: hidden; border-radius: 22px; background: #eee; }
.gallery a.wide { grid-column: span 2; grid-row: span 2; }
.gallery a.tall { grid-row: span 2; }
.gallery a.span2 { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }
.gallery a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Kontakt ---------- */
.contact { padding: var(--pad) 0; scroll-margin-top: 0; }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: stretch; }
.contact-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); display: block; }
.contact-cards { display: grid; gap: 24px; }
.c-card { border-radius: var(--radius); padding: clamp(32px, 4vw, 52px); }
.c-orange { background: var(--orange-tint); }
.c-orange .eyebrow { color: var(--orange-dark); }
.c-blue { background: var(--blue-tint); }
.c-blue .eyebrow { color: var(--blue-dark); }
.c-card p { font-size: 1.12rem; }
.c-card .c-big { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; color: var(--ink); }
.c-card .c-name { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.c-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.c-links .btn { word-break: break-word; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
header.small {
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--header-bg);
  border-bottom-right-radius: 64px;
}
header.small .logo { max-width: 260px; margin: 0 auto; }
.text { padding: 48px 24px 72px; max-width: 760px; }
.text h1 { font-size: 2rem; color: var(--blue-dark); margin-bottom: 20px; }
.text h2 { font-size: 1.15rem; color: var(--orange-dark); margin: 30px 0 8px; }
.text p, .text li { margin-bottom: 8px; }
.text ul { padding-left: 20px; }
.text .back { display: inline-block; margin-top: 28px; font-weight: 600; text-decoration: none; }
.text .back:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: var(--blue-dark); color: #dfe9f1; padding: 52px 24px 36px; font-size: 1rem; }
footer .wrap { max-width: 1200px; }
footer .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .social { display: flex; gap: 14px; }
footer .social a {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s;
}
footer .social a:hover { background: var(--orange); }
footer .social svg { width: 24px; height: 24px; fill: currentColor; }
footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
footer nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
footer nav a:hover { color: #ffc999; text-decoration: underline; }
footer .copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.88rem; color: #b9cbd9; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: rgba(10, 20, 30, 0.94);
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(10, 20, 30, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: fixed; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,0.14); border-radius: 50%;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfd8df; font-size: .9rem; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .logo { margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .pillar { min-height: 0; padding: 36px 28px; }
  .story-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-photo img { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Handy ---------- */
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .wrap, .hero-inner { padding: 0 16px; }
  .hero-sub { font-size: 1.08rem; margin: 24px auto 22px; }
  .intro { padding-top: 64px; }
  .intro-text { font-size: 1.05rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 8px; }
  .gallery a { border-radius: 16px; }
  .gallery a.wide { grid-column: span 2; grid-row: span 1; }
  .gallery a.span2 { grid-column: span 2; }
  .c-links .btn { width: 100%; text-align: center; }
  .checks li { font-size: 1.08rem; }
  .story-quote { font-size: 1.05rem; }
  .sv-front { border-width: 6px; }
  .text { padding: 36px 16px 56px; }
  footer { padding: 40px 16px 32px; }
  footer .row { flex-direction: column; align-items: flex-start; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-count { bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
