/* ============================================================
   Wohngenossenschaft Quick Borns eG – Statische Website
   Helles, modernes Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ---------- CSS-Variablen ---------- */
:root {
  --clr-primary:   #2c5f4a;   /* Dunkelgrün */
  --clr-accent:    #5a9e7a;   /* Mittelgrün */
  --clr-light:     #e8f2ec;   /* Hellgrün-Ton */
  --clr-bg:        #fafaf8;   /* Seitenweißton */
  --clr-white:     #ffffff;
  --clr-text:      #1e2b24;
  --clr-muted:     #5e706a;
  --clr-border:    #d4e3da;
  --clr-footer-bg: #1e2b24;
  --clr-footer-txt:#b8cec4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;

  --radius:  8px;
  --shadow:  0 4px 24px rgba(44,95,74,.10);
  --shadow-sm: 0 2px 8px rgba(44,95,74,.08);

  --nav-h:   72px;
  --max-w:   1080px;
  --gap:     clamp(1rem, 4vw, 3rem);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--clr-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clr-accent); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--clr-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1em; }
strong { font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.page-content {
  flex: 1;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* ---------- Top-Bar ---------- */
.topbar {
  background: var(--clr-primary);
  color: var(--clr-footer-txt);
  font-size: .8rem;
  padding: .45rem 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar a { color: var(--clr-footer-txt); }
.topbar a:hover { color: #fff; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-wrap img { height: 44px; width: auto; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-primary);
}
.logo-text .sub {
  font-size: .72rem;
  color: var(--clr-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
}
.nav-links a {
  display: block;
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-text);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--clr-light);
  color: var(--clr-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-primary);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero Banner ---------- */
.hero {
  position: relative;
  background: var(--clr-primary);
  color: white;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero .subtitle {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 600px;
  font-weight: 300;
}

/* ---------- Cards ---------- */
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ---------- Feature List ---------- */
.feature-list {
  list-style: none;
  display: grid;
  gap: .75rem;
}
.feature-list li {
 /* display: flex;*/
  gap: .75rem;
  align-items: flex-start;
  padding: .9rem 1.1rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-accent);
  border-radius: var(--radius);
}
.feature-list li::before {
  content: '✓';
  color: var(--clr-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: var(--clr-light);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}

/* ---------- Section Divider ---------- */
.section-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 2.5rem 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-accent);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* ---------- Contact Form ---------- */
.contact-form {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: .4rem;
  font-size: .9rem;
  color: var(--clr-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(90,158,122,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--clr-primary);
}
.form-check label { font-size: .9rem; line-height: 1.5; color: var(--clr-muted); }

.form-required { color: #c0392b; }
.form-success {
  display: none;
  background: var(--clr-light);
  border: 1px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: var(--clr-primary);
  font-weight: 500;
  margin-top: 1rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--clr-border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(30,43,36,.75));
  color: #fff;
  padding: .6rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform .3s;
}
.gallery-item:hover .caption { transform: translateY(0); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: .7; }

/* ---------- Map Embed ---------- */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  margin-top: 1.5rem;
}
.map-wrapper iframe { display: block; width: 100%; height: 380px; border: none; }

/* ---------- Satzung / Legal ---------- */
.legal-content h2 { margin-top: 2rem; margin-bottom: .75rem; }
.legal-content ol, .legal-content ul { padding-left: 1.5rem; margin-bottom: 1em; }
.legal-content li { margin-bottom: .4rem; }

/* ---------- Accordion (Satzung) ---------- */
.accordion { margin-top: 1rem; }
.accordion-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  background: var(--clr-white);
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-align: left;
  transition: background .2s;
}
.accordion-header:hover { background: var(--clr-light); }
.accordion-header .icon {
  font-size: 1.25rem;
  transition: transform .3s;
  flex-shrink: 0;
}
.accordion-header.open .icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 1.1rem 1.25rem;
  font-size: .93rem;
  line-height: 1.7;
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
}
.accordion-body.open { display: block; }
.accordion-body ul, .accordion-body ol { padding-left: 1.5rem; margin-top: .5rem; }
.accordion-body li { margin-bottom: .35rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--clr-footer-bg);
  color: var(--clr-footer-txt);
  padding: 2.75rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col p,
.footer-col a { font-size: .88rem; color: var(--clr-footer-txt); }
.footer-col a:hover { color: #fff; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(184,206,196,.7);
}
.footer-bottom a { color: rgba(184,206,196,.7); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page Title Band ---------- */
.page-title-band {
  background: var(--clr-primary);
  color: #fff;
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.page-title-band::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.page-title-band h1 { color: #fff; }
.page-title-band .breadcrumb {
  font-size: .82rem;
  opacity: .7;
  margin-bottom: .5rem;
}
.page-title-band .breadcrumb a { color: rgba(255,255,255,.7); }
.page-title-band .breadcrumb a:hover { color: #fff; }

/* ---------- Address Info Block ---------- */
.info-row {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .6rem;
  font-size: .95rem;
}
.info-row .icon { flex-shrink: 0; color: var(--clr-accent); font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--clr-white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow);
    display: none;
    gap: .25rem;
  }
  .nav-links.open { display: flex; }

  .contact-form { padding: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
