:root {
  --bg: #090909;
  --bg-soft: #111111;
  --panel: #151515;
  --text: #f5f5f5;
  --muted: #aaa;
  --line: #292929;
  --orange: #ff7a00;
  --orange-2: #ff9636;
  --max: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section-space { padding: 96px 0; }
.section-dark { background: #0d0d0d; border-block: 1px solid var(--line); }
.eyebrow { margin: 0 0 14px; color: var(--orange); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 850; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -.04em; margin-top: 0; }
h1 { font-size: clamp(3.5rem, 8vw, 7rem); margin-bottom: 18px; }
h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); margin-bottom: 22px; }
h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin-bottom: 16px; }
p { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 10px; z-index: 1000; background: var(--orange); color: #111; padding: 10px 14px; font-weight: 800; }
.skip-link:focus { left: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(9,9,9,.88); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { color: var(--orange); font-size: 1.25rem; font-style: italic; font-weight: 950; letter-spacing: -.08em; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: .94rem; }
.brand-copy small { margin-top: 5px; color: #777; font-size: .7rem; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { text-decoration: none; color: #c8c8c8; font-size: .86rem; font-weight: 720; text-transform: uppercase; letter-spacing: .04em; }
.main-nav a:hover { color: var(--orange); }
.nav-cta { padding: 9px 15px; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; background: #fff; margin: 5px 0; }

.hero { min-height: calc(100vh - 74px); position: relative; display: flex; align-items: center; overflow: hidden; background: #101010; }
.hero-media { position: absolute; inset: 0; background: url("images/hero-kahler-asten.webp") center 42% / cover no-repeat; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.83) 37%, rgba(5,5,5,.34) 70%, rgba(5,5,5,.18) 100%), linear-gradient(0deg, rgba(5,5,5,.55), transparent 45%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(240px,.4fr); gap: 64px; align-items: end; padding: 100px 0 88px; }
.hero-copy { max-width: 730px; }
.hero-tagline { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #ececec; margin-top: 0; }
.hero-tagline span { color: var(--orange); }
.hero-text { font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 620px; color: #c0c0c0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { justify-self: end; text-align: right; align-self: start; margin-top: 8px; }
.hero-note-kicker { display: block; font-size: .72rem; color: var(--orange); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 10px; }
.hero-note strong { display: block; font-size: clamp(1.15rem, 2vw, 1.65rem); line-height: 1.25; font-style: italic; color: rgba(255,255,255,.78); font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 8px; text-decoration: none; font-weight: 850; transition: .2s ease; }
.btn-primary { background: var(--orange); color: #111; }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(0,0,0,.18); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-secondary { background: #f3f3f3; color: #111; }
.btn-large { min-height: 56px; padding-inline: 28px; }

.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 42px; }
.section-heading > div { max-width: 720px; }
.section-heading > p { max-width: 470px; margin-bottom: 4px; }
.section-heading.compact { margin-bottom: 26px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-card, .small-card, .wide-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.project-card { min-height: 430px; padding: 34px; display: flex; flex-direction: column; position: relative; }
.project-card-featured { background: linear-gradient(145deg,#171717,#101010); }
.project-card:hover, .small-card:hover { border-color: #414141; transform: translateY(-3px); transition: .2s ease; }
.project-topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 70px; }
.project-label { color: var(--orange); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; }
.project-arrow { color: #888; font-size: 1.5rem; }
.project-card p { max-width: 560px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.tag-row span { border: 1px solid #343434; color: #9a9a9a; border-radius: 999px; padding: 6px 10px; font-size: .72rem; }
.card-link { margin-top: auto; color: #fff; font-weight: 800; text-decoration: none; width: fit-content; }
.card-link:hover { color: var(--orange); }
.project-card-image { padding: 0; min-height: 430px; }
.card-image-wrap, .project-card-overlay { position: absolute; inset: 0; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.project-card-overlay { background: linear-gradient(0deg, rgba(5,5,5,.97) 0%, rgba(5,5,5,.75) 50%, rgba(5,5,5,.18) 100%); }
.project-card-content { position: relative; z-index: 2; height: 100%; padding: 34px; display: flex; flex-direction: column; }

.split-section { display: grid; gap: 10px; }
.wide-card { padding: 36px; display: flex; align-items: end; justify-content: space-between; gap: 48px; background: linear-gradient(120deg, #171717, #101010); }
.wide-card p { max-width: 760px; }

.photo-section { background: #0a0a0a; }
.photo-gallery { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-auto-rows: 240px; gap: 14px; }
.gallery-item { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: #161616; }
.gallery-wide { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.66), transparent 55%); }
.gallery-item figcaption { position: absolute; z-index: 2; left: 16px; bottom: 12px; color: #fff; font-size: .78rem; letter-spacing: .04em; }
.photo-cta { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.photo-cta p { max-width: 700px; margin: 0; }

.small-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.hobby-card { padding: 0; display: flex; flex-direction: column; }
.hobby-image { width: 100%; height: 220px; object-fit: cover; }
.hobby-image-wide { object-position: center; }
.hobby-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.hobby-body h3 { margin-top: 14px; font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.small-card a { margin-top: auto; color: #fff; text-decoration: none; font-weight: 800; }
.small-card a:hover { color: var(--orange); }

.image-quote { position: relative; min-height: 210px; display: flex; align-items: center; overflow: hidden; border-block: 1px solid var(--line); }
.image-quote > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; filter: saturate(.75); }
.image-quote-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.96), rgba(8,8,8,.62) 48%, rgba(8,8,8,.15)); }
.image-quote-inner { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 18px; }
.quote-mark { color: var(--orange); font-size: 4rem; line-height: .8; font-weight: 900; }
.image-quote p { margin: 0; color: #eee; font-size: clamp(1.35rem, 2.4vw, 2.1rem); font-style: italic; line-height: 1.45; }

.contact-section { background: var(--orange); color: #111; }
.contact-section .eyebrow, .contact-section p { color: rgba(0,0,0,.72); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-section .btn-primary { background: #111; color: #fff; }
.contact-details { display: flex; gap: 28px; flex-wrap: wrap; }
.contact-details p { margin: 0; font-size: .9rem; }
.contact-details strong { color: #111; }
.contact-details a { color: #111; text-decoration: none; }

.site-footer { padding: 28px 0 36px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-inner > div:first-child { display: grid; }
.footer-inner span { color: #666; font-size: .85rem; margin-top: 5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #888; text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: var(--orange); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .section-space { padding: 76px 0; }
  .hero-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 760px; }
  .hero-inner { padding-top: 78px; }
  .hero-note { justify-self: start; text-align: left; align-self: end; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,5,5,.93), rgba(5,5,5,.52)), linear-gradient(0deg, rgba(5,5,5,.72), transparent 55%); }
  .feature-grid, .small-card-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .wide-card { align-items: flex-start; flex-direction: column; }
  .photo-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .gallery-wide { grid-column: 1 / -1; grid-row: auto; height: 330px; }
  .photo-cta { align-items: flex-start; flex-direction: column; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: 68px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #111; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .nav-cta { border: 0; border-radius: 8px; background: var(--orange); color: #111 !important; margin-top: 6px; }
  .nav-toggle { display: block; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero { min-height: 720px; }
  .hero-media { background-position: 62% center; }
  .hero-inner { gap: 42px; padding: 68px 0 60px; }
  .hero-note { display: none; }
  .project-card, .project-card-content { padding: 26px; }
  .project-topline { margin-bottom: 48px; }
  .wide-card { padding: 26px; }
  .photo-gallery { grid-template-columns: 1fr; grid-auto-rows: 245px; }
  .gallery-wide { grid-column: auto; height: 280px; }
  .hobby-image { height: 240px; }
  .image-quote { min-height: 250px; }
  .contact-details { flex-direction: column; gap: 12px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .brand-copy small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Rechtliche Unterseiten */
.legal-page { min-height: 100vh; }
.legal-wrap { max-width: 920px; }
.legal-page h1 { font-size: clamp(3rem, 8vw, 6.5rem); margin-bottom: 42px; }
.legal-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: clamp(26px, 5vw, 48px); }
.legal-card h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); margin-top: 38px; margin-bottom: 12px; letter-spacing: -.02em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { max-width: 760px; }
.legal-card a { color: var(--orange); }
.legal-note { margin-top: 42px; font-size: .88rem; color: #777 !important; }
.legal-back { margin-top: 30px; }

/* Familien-/Projektportal Anpassungen */
.brand-slogan strong { font-size: .84rem; letter-spacing: .035em; }
.brand-slogan small { color: #888; }
.hero-copy { max-width: 860px; }
.hero-copy h1 { max-width: 850px; font-size: clamp(3.3rem, 7vw, 7.2rem); }
.project-card-overlay-strong { background: linear-gradient(0deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.83) 52%, rgba(5,5,5,.4) 100%); }
.card-image-wrap-center img { object-position: center 55%; }

.tech-section { background: #0d0d0d; }
.wide-card-image { position: relative; min-height: 360px; padding: 0; overflow: hidden; align-items: stretch; }
.wide-card-bg, .wide-card-shade { position: absolute; inset: 0; }
.wide-card-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wide-card-shade { background: linear-gradient(90deg, rgba(8,8,8,.97) 0%, rgba(8,8,8,.9) 44%, rgba(8,8,8,.42) 70%, rgba(8,8,8,.18) 100%); }
.wide-card-content { position: relative; z-index: 2; padding: 42px; width: min(720px, 72%); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.wide-card-content .btn { margin-top: 18px; }

.hobby-card-bg { position: relative; min-height: 470px; }
.hobby-bg, .hobby-shade { position: absolute; inset: 0; }
.hobby-bg img { width: 100%; height: 100%; object-fit: cover; }
.hobby-shade { background: linear-gradient(0deg, rgba(7,7,7,.98) 0%, rgba(7,7,7,.84) 52%, rgba(7,7,7,.18) 100%); }
.hobby-body-overlay { position: relative; z-index: 2; justify-content: flex-end; min-height: 470px; }
.hobby-body-overlay h3 { text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.hobby-body-overlay p { color: #d0d0d0; }
.footer-mss { color: var(--orange); font-style: italic; font-size: 1.15rem; margin-right: 4px; }

@media (max-width: 900px) {
  .wide-card-content { width: 100%; }
  .wide-card-shade { background: linear-gradient(90deg, rgba(8,8,8,.96), rgba(8,8,8,.65)); }
}

@media (max-width: 620px) {
  .brand-slogan strong { font-size: .76rem; }
  .hero-copy h1 { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .wide-card-content { padding: 28px; }
  .hobby-card-bg, .hobby-body-overlay { min-height: 420px; }
}
