/* =========================================================
   Long Life Residence – longliferesidence.de
   CI: CEG Group (Navy #080e1a / Ink #101b2e / Accent #f58c18,
   Space Grotesk + JetBrains Mono, klare Kanten).
   Ruhig, hochwertig, seniorengerechte Lesbarkeit.
   ========================================================= */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ---------- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --ink:        #101b2e;
  --deep:       #080e1a;
  --dark:       #0c1624;
  --paper:      #ffffff;
  --light:      #f5f7fa;
  --light-2:    #eaeef4;
  --ink-soft:   #4a5f7a;
  --ink-mute:   #7a8da4;
  --accent:     #f58c18;
  --accent-dark:#d97706;
  --accent-soft:rgba(245, 140, 24, .1);
  --line:       #dbe2ea;
  --line-dark:  rgba(255, 255, 255, .12);
  --radius:     2px;
  --shadow:     0 14px 40px rgba(8, 14, 26, .1);
  --font-main:  'Space Grotesk', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 92%); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skiplink {
  position: absolute; left: -999px; top: 0;
  background: var(--deep); color: #fff; padding: .6em 1em; z-index: 100;
}
.skiplink:focus { left: 0; }

/* ---------- Typografie ---------- */

h1, h2, h3 { font-family: var(--font-main); font-weight: 700; line-height: 1.14; color: var(--ink); letter-spacing: -.015em; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .5em; }
h3 { font-size: 1.22rem; margin-bottom: .35em; }

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1em;
}

.lead { font-size: 1.14em; color: var(--ink-soft); max-width: 46em; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 14, 26, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--accent); color: var(--deep);
  font-family: var(--font-mono); font-size: .85rem; font-weight: 500; letter-spacing: .04em;
}
.brand-text { line-height: 1.15; }
.brand-text strong { font-size: 1.08rem; display: block; font-weight: 700; }
.brand-text small { color: rgba(255,255,255,.55); font-size: .74rem; letter-spacing: .1em; font-family: var(--font-mono); }

.nav-list { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.nav-list a {
  text-decoration: none; color: rgba(255,255,255,.8); font-weight: 500; font-size: .96rem;
  padding: .4em 0; border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a:focus { color: #fff; border-bottom-color: var(--accent); }
.nav-list a.nav-cta {
  background: var(--accent); color: var(--deep); border: none; font-weight: 700;
  padding: .55em 1.15em;
}
.nav-list a.nav-cta:hover { background: #ffa03a; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle-bar { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }

/* ---------- Hero ---------- */

.hero { padding: 0; position: relative; }
.hero-media { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; }
.hero-media::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 26, .38) 0%, rgba(8, 14, 26, .12) 40%, rgba(8, 14, 26, .78) 100%),
    var(--hero-img, linear-gradient(160deg, #16283f, #080e1a)) center / cover no-repeat;
}
.hero-content { position: relative; z-index: 1; color: #fff; padding: 3.5rem 0 4rem; width: 100%; }
.hero-content .kicker { color: var(--accent); }
.hero-content h1 { color: #fff; max-width: 15em; text-shadow: 0 2px 18px rgba(8,14,26,.45); }
.hero-content .lead { color: rgba(255,255,255,.92); margin-top: 1rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.badge {
  background: rgba(8, 14, 26, .5); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  color: #fff; padding: .4em 1em;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500; letter-spacing: .04em;
}

.hero-cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 1rem; font-family: var(--font-main);
  padding: .9em 1.8em;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--deep); }
.btn-primary:hover, .btn-primary:focus { background: #ffa03a; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-secondary:hover, .btn-secondary:focus { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-teal { background: var(--ink); color: #fff; }
.btn-teal:hover, .btn-teal:focus { background: var(--deep); }

/* ---------- Notice band (Konzeptphase) ---------- */

.notice-band { background: var(--accent-soft); border-block: 1px solid rgba(245,140,24,.3); padding: .8rem 0; }
.notice-band p { font-size: .92rem; color: #8a5410; text-align: center; }

/* ---------- Sektionen ---------- */

.section-sand  { background: var(--light); }
.section-paper { background: var(--paper); }
.section-deep  { background: var(--light-2); }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem; margin-top: 2.2rem;
}
.feature-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.section-paper .feature-card { background: var(--light); box-shadow: none; }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 1rem; font-size: 1.4rem;
}
.feature-card p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Galerie ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: .6rem 1rem;
  background: linear-gradient(transparent, rgba(8,14,26,.82));
  color: #fff; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
}
.gallery-note { margin-top: 1rem; font-size: .88rem; color: var(--ink-mute); }

/* ---------- Vergleich ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.2rem; }
.compare-box { border-radius: var(--radius); padding: 1.8rem 1.7rem; }
.compare-box.grey { background: var(--light); border: 1px solid var(--line); }
.compare-box.teal { background: var(--deep); color: #fff; border-left: 4px solid var(--accent); }
.compare-label { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.compare-value { font-size: 2.2rem; font-weight: 700; margin: .3rem 0; letter-spacing: -.02em; }
.compare-box.teal .compare-value { color: var(--accent); }
.compare-sub { font-size: .92rem; opacity: .85; }
.compare-note { margin-top: 1.4rem; font-size: 1.05rem; font-weight: 700; color: var(--accent-dark); }

/* ---------- Pakete ---------- */

.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.package {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.package.highlight { border: 2px solid var(--accent); position: relative; }
.package.highlight::after {
  content: "Meistgefragt";
  position: absolute; top: -0.95em; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--deep);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em;
  padding: .3em 1em;
}
.package-name { font-family: var(--font-mono); font-size: .85rem; font-weight: 500; letter-spacing: .16em; color: var(--accent-dark); }
.package-price { font-size: 1.7rem; font-weight: 700; margin: .4rem 0 .2rem; letter-spacing: -.02em; }
.package-price small { font-size: .95rem; font-weight: 500; color: var(--ink-mute); }
.package ul { list-style: none; margin-top: 1rem; }
.package li { padding: .42em 0 .42em 1.7em; position: relative; font-size: .96rem; color: var(--ink-soft); border-top: 1px solid var(--light-2); }
.package li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.package-foot { margin-top: auto; padding-top: 1.2rem; }
.packages-note { margin-top: 1.4rem; font-size: .9rem; color: var(--ink-mute); max-width: 60em; }

/* ---------- Ort ---------- */

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; margin-top: 1.5rem; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 460px; object-fit: cover; }
.fact-list { list-style: none; margin-top: 1.4rem; }
.fact-list li { padding: .55em 0 .55em 2em; position: relative; border-top: 1px solid var(--line); }
.fact-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); top: .55em; }

/* ---------- Über uns ---------- */

.about-box { max-width: 54em; }
.about-box p + p { margin-top: 1em; }

/* ---------- Kontakt ---------- */

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.contact-side p + p { margin-top: 1em; }
.contact-direct { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.contact-direct a {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink); font-weight: 500;
  background: var(--light); border: 1px solid var(--line);
  padding: .9rem 1.2rem; border-radius: var(--radius);
}
.contact-direct a:hover { border-color: var(--accent); color: var(--accent-dark); }

form.contact-form { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: .35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75em .9em; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid var(--accent-soft); border-color: var(--accent);
}
.form-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.form-consent input { width: 1.2em; height: 1.2em; margin-top: .2em; flex: none; }
.form-hint { font-size: .84rem; color: var(--ink-mute); margin-top: .8rem; }

.form-feedback { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-weight: 500; }
.form-feedback.ok  { background: rgba(74, 222, 128, .14); color: #14532d; border: 1px solid rgba(74, 222, 128, .5); }
.form-feedback.err { background: rgba(245, 140, 24, .12); color: #8a3c10; border: 1px solid rgba(245, 140, 24, .45); }

/* ---------- Footer ---------- */

.site-footer { background: var(--deep); color: rgba(255,255,255,.65); padding: 3.2rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.footer-heading { font-family: var(--font-mono); font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.footer-brand strong { color: #fff; font-size: 1.12rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--accent); }
.footer-note { font-size: .84rem; opacity: .75; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 2.4rem; padding-top: 1.4rem; font-size: .84rem; opacity: .7; }

/* ---------- WhatsApp Float ---------- */

.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(8,14,26,.3);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- Rechtsseiten ---------- */

.legal-page { max-width: 50em; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-page p + p { margin-top: .8em; }
.legal-page address { font-style: normal; }

/* ---------- Animation ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-media img { height: 320px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 18px; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--deep); border-bottom: 1px solid var(--line-dark);
    padding: .5rem 4%;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: .9em 0; border-bottom: 1px solid var(--line-dark); }
  .nav-list a.nav-cta { text-align: center; margin: .8em 0; }
  .compare { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 230px; }
  .hero-media { min-height: 78vh; }
}

/* ---------- CEG Logo ---------- */
.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 28px; width: auto; margin-bottom: .9rem; opacity: .95; }

/* ---------- Hero Video ---------- */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media.has-video::before { background: linear-gradient(180deg, rgba(8,14,26,.38) 0%, rgba(8,14,26,.12) 40%, rgba(8,14,26,.78) 100%); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
