/* ============================================
   Initiative Wohnprojekt Riedlingen
   Gemeinsames Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500&display=swap');

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

:root {
  --cream: #f7f3ec;
  --cream-dark: #ede8de;
  --ink: #1c1a16;
  --ink-mid: #5c584f;
  --ink-light: #9c9890;
  --green: #3a5c40;
  --green-light: #e6ede7;
  --green-mid: #6a9c72;
  --warm: #b87333;
  --warm-light: #fdf3e8;
  --border: #ddd8ce;
  --check: #2d5016;

  /* ── Schriftgrößen ── */
  /* Hier zentral anpassen – gilt für alle Seiten */
  --text-xs:   13px;   /* Labels, Eyebrows, Badges         */
  --text-sm:   15px;   /* Kleine Hinweise, Captions        */
  --text-base: 17px;   /* Fließtext, Formularbeschriftung  */
  --text-md:   19px;   /* Nav, Buttons                     */
  --text-lg:   22px;   /* Karten-Titel, Abschnittsköpfe    */
  --text-xl:   28px;   /* Sekundäre Überschriften          */
  --text-2xl:  36px;   /* Seitenüberschriften              */
  --text-hero: clamp(44px, 5vw, 70px); /* Hero h1          */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-base);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Typografie ── */
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--ink);
}

p {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--ink-mid);
  font-weight: 300;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Gemeinsame Elemente ── */
.section-label {
  font-size: var(--text-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 16px;
}

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 20px;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247,243,236,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-back {
  font-size: var(--text-sm);
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--green); }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.4px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #2d4a32; transform: translateY(-2px); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border: 1.5px solid var(--border);
  color: var(--ink-mid);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--green); color: var(--green); text-decoration: none; }

.btn-contact {
  display: inline-block;
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-contact:hover { border-color: white; background: rgba(255,255,255,0.08); text-decoration: none; }

/* ── Footer ── */
footer {
  padding: 24px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--ink-light);
  background: var(--cream);
}

/* ── Formular-Elemente (geteilt) ── */
.field-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-mid);
  margin-bottom: 8px;
  display: block;
}

.field-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 15px;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-base);
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.field-input:focus { border-color: var(--green-mid); }
.field-input::placeholder { color: var(--ink-light); font-style: italic; }

textarea.field-input {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* ── Animationen ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 860px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  footer { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }

  :root {
    --text-xs:   13px;
    --text-sm:   15px;
    --text-base: 16px;
    --text-md:   18px;
    --text-lg:   20px;
    --text-xl:   24px;
    --text-2xl:  30px;
  }
}
