/* ============================================
   Generationenhaus – Amir & Agnes
   ============================================ */

:root {
  --cream: #f8f4ee;
  --cream-dark: #efe8dd;
  --ink: #2c3e4a;
  --blue: #2c5f8a;
  --blue-dark: #1f4666;
  --gold: #c98a4b;
  --gold-dark: #b06f34;
  --sage: #7e9482;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(44, 63, 74, 0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  color: var(--blue-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(201, 138, 75, 0.35);
}
.btn-primary:hover { background: var(--gold-dark); }

.btn-secondary {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-secondary:hover { background: var(--blue-dark); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--blue-dark);
}

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(44, 63, 74, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img { height: 46px; width: auto; border-radius: 10px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.logo-sub {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.flag-chip {
  display: inline-block;
  width: 16px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #1a1a1a 0%, #1a1a1a 33.3%, #d00 33.3%, #d00 66.6%, #ffce00 66.6%, #ffce00 100%);
  box-shadow: 0 0 0 1px rgba(44, 63, 74, 0.25);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.96rem;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--cream-dark);
  color: var(--blue-dark);
}

nav.main-nav a.btn-primary {
  color: var(--white);
  margin-left: 8px;
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue-dark);
}

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

.hero {
  padding: 60px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-photo {
  border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-alt { background: var(--cream-dark); }
.section-blue {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
}
.section-blue h2, .section-blue h3 { color: var(--white); }

.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: #55677a; }
.section-blue .section-head p { color: rgba(255,255,255,0.85); }

/* ---------- Cards / Grid ---------- */

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

.illu-figure { margin: 0; }
.illu-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 20px;
}
.step .step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  font-family: "Baloo 2", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
}

/* ---------- FAQ / Accordion ---------- */

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px;
  color: #4b5c68;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 22px;
}
.faq-item .chevron { transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .chevron { transform: rotate(180deg); }

/* ---------- Model / Rent-for-help highlight ---------- */

.model-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.model-box .card {
  border-top: 5px solid var(--gold);
}
.model-box .card:last-child { border-top-color: var(--sage); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--gold);
  color: var(--white);
  border-radius: 28px;
  padding: 50px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { color: var(--white); }
.cta-band .btn-light:hover { background: var(--cream-dark); }

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

footer.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 26px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
footer.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
footer.site-footer a { text-decoration: none; color: rgba(255,255,255,0.8); }
footer.site-footer a:hover { color: var(--white); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms ---------- */

form.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
form.contact-form label { font-weight: 700; margin-bottom: 6px; display: block; color: var(--blue-dark); }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--cream-dark);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: 0.85rem; color: #6b7c88; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Location / list styling ---------- */

ul.check-list { list-style: none; padding: 0; margin: 0; }
ul.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
}
ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 900;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.small { font-size: 0.9rem; color: #6b7c88; }

/* ---------- Video ---------- */

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Scroll-Reveal-Animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

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

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 380px; margin: 0 auto; }
  .grid-2, .grid-3, .model-box, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav.main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { text-align: center; padding: 12px; }
  .nav-toggle { display: block; }
  .cta-band { padding: 34px 24px; margin: 0 16px; }
}
