@charset "UTF-8";

/* ============================================
   Zimmererinnung Stuttgart – Stylesheet
   ============================================ */

:root {
  --gruen:         #67aa7f;
  --gruen-dunkel:  #4d8a63;
  --gruen-hell:    #e8f4ed;
  --dunkel:        #2c3830;
  --mittel:        #3d5245;
  --text-dunkel:   #1e2d25;
  --text-mittel:   #3d4f43;
  --text-grau:     #6b7d72;
  --sand:          #f4f7f5;
  --sand-hell:     #f9fbf9;
  --weiss:         #ffffff;
  --linie:         #d4e0d8;
  --holz:          #a07850;

  --schrift-body: 'Lora', Georgia, serif;
  --schrift-ui:   'Source Sans 3', 'Trebuchet MS', sans-serif;

  --radius:    6px;
  --shadow:    0 2px 10px rgba(44, 56, 48, 0.10);
  --shadow-lg: 0 6px 28px rgba(44, 56, 48, 0.16);
  --max-breite: 1000px;
  --nav-hoehe:  64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen-dunkel); text-decoration: none; }
a:hover { color: var(--gruen); text-decoration: underline; }

/* ---- Lokale Fonts (kein Google-Server, DSGVO-konform) ---- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-v37-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-v37-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora-v37-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-3-v19-latin-700.woff2') format('woff2');
}

/* ---- HEADER ---- */
header {
  background: var(--mittel);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-hoehe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo a {
  font-family: var(--schrift-ui);
  font-weight: 700;
  font-size: 1.05rem;
  color: #e8f4ed;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-decoration: none;
}
.logo a:hover { color: var(--gruen); text-decoration: none; }
.logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #a8c8b4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav ul { list-style: none; display: flex; gap: 0.15rem; }
nav a {
  font-family: var(--schrift-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: #d8ede0;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.aktiv {
  background: var(--gruen);
  color: var(--weiss);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.4rem;
  color: #d8ede0;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---- FOREST HERO (Startseite) ---- */
.forest-hero { position: relative; height: 380px; overflow: hidden; }

.forest-hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
}

.forest-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(44,56,48,0.35) 0%, rgba(44,56,48,0.58) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.5rem;
}

.forest-hero-overlay h1 {
  font-family: var(--schrift-body);
  font-size: 2.5rem; font-weight: 600;
  color: var(--weiss);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 0.75rem;
}

.forest-hero-overlay p {
  font-family: var(--schrift-ui);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ---- HERO (alle anderen Seiten) ---- */
.hero {
  background: linear-gradient(135deg, var(--mittel) 0%, var(--gruen-dunkel) 100%);
  color: var(--weiss);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}
.hero h1 { font-size: 2rem; font-weight: 600; color: var(--weiss); }
.hero p { font-family: var(--schrift-ui); color: rgba(255,255,255,0.78); margin-top: 0.6rem; font-size: 1rem; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--sand);
  border-bottom: 1px solid var(--linie);
  font-family: var(--schrift-ui);
  font-size: 0.82rem;
  color: var(--text-grau);
}
.breadcrumb-inner { max-width: var(--max-breite); margin: 0 auto; padding: 0.6rem 1.5rem; }
.breadcrumb a { color: var(--gruen-dunkel); }
.breadcrumb a:hover { color: var(--gruen); }
.breadcrumb span { margin: 0 0.4rem; color: var(--linie); }

/* ---- LAYOUT ---- */
.seiten-layout {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  flex: 1;
  align-items: start;
}
.inhalt { min-width: 0; }

/* ---- TYPOGRAFIE ---- */
h1 { font-size: 1.9rem; font-weight: 600; color: var(--dunkel); line-height: 1.25; margin-bottom: 1.25rem; }
h2 { font-size: 1.25rem; font-weight: 600; color: var(--dunkel); margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.02rem; font-weight: 600; color: var(--gruen-dunkel); margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-mittel); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-dunkel); font-weight: 600; }
hr { border: none; border-top: 1px solid var(--linie); margin: 2rem 0; }

/* ---- STARTSEITE ---- */
.start-intro { font-size: 1.05rem; line-height: 1.75; }

/* Vorstand-Bild links + Text rechts nebeneinander */
.vorstand-foto-text {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 2rem 0;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.vorstand-foto-bild {
  flex-shrink: 0;
  width: 220px;
  padding: 2rem 1rem 2rem 0;   /* Abstand oben, rechts und unten */
}

.vorstand-foto-bild img {
  width: 100%;
  height: auto;        /* proportional, kein Crop */
  display: block;
  border-radius: 4px;
}

.vorstand-foto-inhalt {
  padding: 1.5rem 0 1.5rem 1.5rem;
  flex: 1;
}

.vorstand-foto-inhalt p {
  font-family: var(--schrift-ui);
  font-size: 0.92rem;
}


.holz-highlight {
  background: var(--gruen-hell);
  border-left: 4px solid var(--gruen);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--dunkel);
  font-size: 1.05rem;
}

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-box {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}

.sidebar-box h3 {
  font-family: var(--schrift-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gruen-dunkel);
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--linie);
}

.sidebar-box h3.lang {
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--text-mittel);
  line-height: 1.45;
}

.sidebar-box p, .sidebar-box address {
  font-style: normal;
  font-family: var(--schrift-ui);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-mittel);
  margin-bottom: 0;
}
.sidebar-box a { font-family: var(--schrift-ui); font-size: 0.88rem; color: var(--gruen-dunkel); }
.sidebar-box .sidebar-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--schrift-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gruen-dunkel);
  text-decoration: underline;
}

.mitglied-badge { display: block; text-align: center; }
.mitglied-badge img { width: calc(100% + 6px); height: auto; display: block; margin-top: 0.75rem; margin-left: -3px; }

/* ---- AKTUELLES ---- */
.termin-block {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.5rem;
  margin-top: 1.25rem; box-shadow: var(--shadow);
}
.termin-block h2 { margin-top: 0; }
.termin-gruppe { margin-top: 1rem; }
.termin-gruppe h3 {
  margin-top: 0; font-size: 0.82rem;
  font-family: var(--schrift-ui);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gruen-dunkel); margin-bottom: 0.3rem;
}
.termin-daten { font-family: var(--schrift-ui); font-size: 0.95rem; color: var(--text-mittel); }

/* ---- AUSBILDUNG ---- */
.aenderungs-liste { list-style: none; margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.85rem; }
.aenderungs-liste li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  font-family: var(--schrift-ui); font-size: 0.95rem;
  color: var(--text-mittel); line-height: 1.55;
}
.aenderungs-liste li::before { content: '✦'; color: var(--gruen); flex-shrink: 0; margin-top: 0.15rem; font-size: 0.7rem; }

/* ---- LEISTUNGEN ---- */
.leistungen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; margin-top: 1.25rem; }
.leistung-item {
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 0.6rem 0.9rem;
  font-family: var(--schrift-ui); font-size: 0.88rem;
  color: var(--text-mittel); transition: border-color 0.2s, background 0.2s;
}
.leistung-item:hover { border-color: var(--gruen); background: var(--gruen-hell); }
.leistung-buchstabe { font-weight: 700; color: var(--gruen); }

/* ---- MITGLIEDER-TABS ---- */
.mitglieder-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-link {
  font-family: var(--schrift-ui); font-size: 0.9rem; font-weight: 600;
  padding: 0.5rem 1.1rem; border: 1px solid var(--linie);
  border-radius: var(--radius); color: var(--gruen-dunkel);
  background: var(--weiss); text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.tab-link:hover, .tab-link.aktiv {
  background: var(--gruen); color: var(--weiss);
  border-color: var(--gruen); text-decoration: none;
}

/* ---- VORSTAND ---- */
.vorstand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.vorstand-karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.vorstand-karte .rolle { font-family: var(--schrift-ui); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gruen); margin-bottom: 0.3rem; }
.vorstand-karte .name { font-size: 1.05rem; font-weight: 600; color: var(--dunkel); margin-bottom: 0.6rem; }
.vorstand-karte address { font-style: normal; font-family: var(--schrift-ui); font-size: 0.82rem; color: var(--text-grau); line-height: 1.6; }

/* ---- BETRIEBE ---- */
.betrieb-liste { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.betrieb-eintrag {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow); transition: box-shadow 0.2s;
}
.betrieb-eintrag:hover { box-shadow: var(--shadow-lg); }
/* ---- GASTMITGLIEDER-LOGOS ---- */

/* SVG-Logos: grayscale im Normalzustand, Farbe beim Hover */
.gast-logo-svg {
  flex-shrink: 0;
  width: 163px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 4px;
  padding: 8px;
}

.gast-logo-svg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.4);
  transition: filter 0.25s ease;
}

.betrieb-eintrag:hover .gast-logo-svg img {
  filter: grayscale(0%) brightness(1);
}

@media (max-width: 768px) {
  .gast-logo-svg img {
    filter: grayscale(0%) brightness(1);
  }
}
.betrieb-eintrag {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.betrieb-eintrag:hover { box-shadow: var(--shadow-lg); }

/* Logo-Wrap: zeigt obere Hälfte (grau), Hover springt sofort auf Farbe.
   Alle Logos sind 163×150px: oben 75px grau, unten 75px farbe.
   Container = 163×75px sichtbar, Bild = 163×150px → translateY(-75px) beim Hover. */
.betrieb-logo-wrap {
  flex-shrink: 0;
  width: 163px;
  height: 75px;    /* halbe Bildhöhe */
  overflow: hidden;
  border-radius: 4px;
  background: var(--sand);
}

.betrieb-logo-wrap img {
  width: 163px;
  height: 150px;   /* volles Bild */
  object-fit: fill;
  display: block;
  transform: translateY(0);
  transition: none; /* sofort umspringen, kein Delay */
}

.betrieb-eintrag:hover .betrieb-logo-wrap img {
  transform: translateY(-75px); /* exakt halbe Bildhöhe */
}

/* Dezentes SVG-Muster als Platzhalter wo kein Logo vorhanden */
.betrieb-logo-leer {
  flex-shrink: 0;
  width: 163px;
  height: 75px;
  border-radius: 4px;
  background-color: var(--sand);
  background-image: url('/images/layout/muster-raute.svg');
  background-repeat: repeat;
  background-size: 20px 20px;
}
.betrieb-info .name { font-size: 1rem; font-weight: 600; color: var(--dunkel); margin-bottom: 0.25rem; }
.betrieb-info address { font-style: normal; font-family: var(--schrift-ui); font-size: 0.82rem; color: var(--text-grau); line-height: 1.65; }
.betrieb-info address a { color: var(--gruen-dunkel); }

/* ---- KONTAKT ---- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kontakt-grid .feld-voll { grid-column: 1 / -1; }
label { display: block; font-family: var(--schrift-ui); font-size: 0.82rem; font-weight: 600; color: var(--text-dunkel); margin-bottom: 0.3rem; }
input, textarea {
  width: 100%; padding: 0.6rem 0.85rem;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--weiss); font-family: var(--schrift-ui);
  font-size: 0.95rem; color: var(--text-dunkel);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
input:focus, textarea:focus { border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(103,170,127,0.18); }
textarea { min-height: 130px; resize: vertical; }
.pflicht-hinweis { font-family: var(--schrift-ui); font-size: 0.78rem; color: var(--text-grau); margin-top: 0.75rem; }
.btn {
  display: inline-block; background: var(--gruen); color: var(--weiss);
  font-family: var(--schrift-ui); font-size: 0.95rem; font-weight: 600;
  padding: 0.7rem 1.8rem; border: none; border-radius: var(--radius);
  cursor: pointer; transition: background 0.2s, transform 0.1s;
  margin-top: 1rem; letter-spacing: 0.02em;
}
.btn:hover { background: var(--gruen-dunkel); transform: translateY(-1px); }

/* ---- FOOTER ---- */
footer { background: var(--mittel); color: #a8c8b4; padding: 2.5rem 1.5rem 1.5rem; margin-top: auto; }
.footer-inner { max-width: var(--max-breite); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-spalte h4 { font-family: var(--schrift-ui); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gruen); margin-bottom: 0.85rem; }
.footer-spalte p, .footer-spalte address { font-style: normal; font-family: var(--schrift-ui); font-size: 0.85rem; line-height: 1.7; color: #a8c8b4; }
.footer-spalte a { color: #a8c8b4; text-decoration: none; }
.footer-spalte a:hover { color: var(--gruen); }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-nav a { font-family: var(--schrift-ui); font-size: 0.85rem; }

.footer-mitglied-logo { display: block; margin-top: 1rem; margin-left: -8px; }
.footer-mitglied-logo img { width: 150px; height: auto; display: block; opacity: 0.7; filter: brightness(0) invert(1); }
.footer-mitglied-logo:hover img { opacity: 1; }

.footer-unten { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-unten p { font-family: var(--schrift-ui); font-size: 0.78rem; color: #6b8f78; margin: 0; }
.footer-unten-links { display: flex; gap: 1.25rem; }
.footer-unten-links a { font-family: var(--schrift-ui); font-size: 0.78rem; color: #6b8f78; }
.footer-unten-links a:hover { color: var(--gruen); text-decoration: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .seiten-layout { grid-template-columns: 1fr; padding: 2rem 1.25rem; gap: 2rem; }
  .sidebar { order: 2; }
  .forest-hero { height: 260px; }
  .forest-hero-overlay h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 1.6rem; }
  nav { display: none; }
  nav.offen { display: block; }
  nav ul { flex-direction: column; padding: 0.75rem 0; gap: 0; }
  nav a { display: block; padding: 0.6rem 1rem; border-radius: 0; }
  .nav-toggle { display: flex; }
  header.nav-offen nav { display: block; position: absolute; top: var(--nav-hoehe); left: 0; right: 0; background: var(--mittel); box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 99; }
  .vorstand-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt-grid .feld-voll { grid-column: 1; }
  .vorstand-foto-text { flex-direction: column; }
  .vorstand-foto-bild { width: 100%; padding: 1rem 1rem 0 1rem; }
  .vorstand-foto-inhalt { padding: 1rem; }
  .betrieb-eintrag { flex-direction: column; gap: 0.75rem; }
  .betrieb-logo-wrap, .betrieb-logo-leer { width: 100px; height: 50px; }
  .betrieb-logo-wrap img { width: 100px; height: 100px; transform: translateY(-50px); }
  .betrieb-eintrag:hover .betrieb-logo-wrap img { transform: translateY(-50px); }
}
