/* -------------------- Farben & Basis -------------------- */
:root {
  --accent: #23a2ab;
  --accent-contrast: #ffffff;
  --blue-100: #e8f7f9;
  --blue-200: #c9eef2;
  --blue-300: #a6e3e9;
  --text: #1F2937;
  --muted: #4B5563;
  --bg: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

/* -------------------- Layout & Typo -------------------- */
section, .page { padding: 2rem 1.2rem; max-width: 1100px; margin: 0 auto; }
h1, h2, h3 { color: var(--accent); margin: 0 0 .5rem 0; }

/* -------------------- Hero & Buttons -------------------- */
.hero {
  background: var(--blue-100);
  border-bottom: 1px solid var(--blue-200);
  padding-top: 2.4rem;
  padding-bottom: 2rem;
}
.subline { color: var(--muted); margin: .3rem 0 1rem; }

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .85rem 1.2rem;
  border-radius: .6rem;
  text-decoration: none;
  font-weight: 700;
}
.text-link { color: var(--accent); text-decoration: underline; }

/* -------------------- Angebots-Kacheln (RESPONSIVE FIX) -------------------- */
/* Grid passt sich automatisch an und verhindert zu schmale Karten */
.angebote .kacheln{
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: stretch;
}
/* optional: bei sehr kleinen Geräten erzwingen wir 1 Spalte */
@media (max-width: 360px){
  .angebote .kacheln{ grid-template-columns: 1fr; }
}

/* Karte: robuster Aufbau, genug Platz für 2-zeiligen Untertitel */
.kachel{
  display: grid;                      /* Icon, Titel, Text in Reihen */
  grid-template-rows: auto auto 1fr;
  text-align: center;
  background: var(--blue-200);
  border: 1px solid var(--blue-300);
  border-radius: .8rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  min-height: 140px;
}
.kachel:hover{ background: var(--blue-100); }

.kachel img{ width: 36px; height: 36px; margin: 0 auto .5rem; }

/* Titel & Untertitel: echte Responsive-Schrift + Silbentrennung */
.kachel h3{
  margin: .2rem 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(16px, 3.8vw, 20px);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.kachel p{
  margin: 0;
  color: var(--muted);
  line-height: 1.25;
  font-weight: 500;
  font-size: clamp(13px, 3.4vw, 16px);
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* -------------------- Wie ich arbeite -------------------- */
.arbeitsweise ul { list-style: none; padding: 0; }
.arbeitsweise li {
  margin: .5rem 0;
  padding-left: 1.6rem;
  position: relative;
}
.arbeitsweise li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* -------------------- Förder-Teaser -------------------- */
.foerder-teaser {
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: .8rem;
  text-align: center;
}

/* -------------------- FAQ (Button-Version) -------------------- */
.faq { max-width: 800px; margin: 50px auto; padding: 0 20px; }
.faq h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--accent);
}

/* Liste mit Buttons & Antworten */
.faq-list .faq-q {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px;
  margin: 6px 0;
  font-size: 1em;
  cursor: pointer;
  border-radius: 8px;
  transition: filter .2s ease;
}
.faq-list .faq-q:hover { filter: brightness(1.05); }

.faq-list .faq-a {
  padding: 10px 15px;
  margin: 0 0 15px;
  border-left: 3px solid var(--accent);
  background: #f9f9f9;
  border-radius: 4px;
  font-size: .95em;
}

/* -------------------- Footer -------------------- */
.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 1.4rem 1rem;
  border-top: 1px solid var(--blue-200);
  margin-top: 2rem;
}
.site-footer a { color: var(--accent); }

/* -------------------- Floating Buttons -------------------- */
/* Kontakt-Button auf der Startseite */
.contact-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  transition: filter .2s ease;
  z-index: 9999;
}
.contact-fab:hover { filter: brightness(1.08); }

/* Zurück-Button auf der Kontaktseite */
.floating-back {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  transition: filter .2s ease;
  z-index: 1000;
}
.floating-back:hover,
.floating-back:focus { filter: brightness(1.08); }

/* -------------------- Kontakt & Über mich -------------------- */
.contact-page h1 { margin-bottom: .8rem; }

/* Layout: Bild & Text (mobil untereinander, ab 820px nebeneinander) */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-top: 1rem;
}
@media (min-width: 820px) {
  .about-wrap { grid-template-columns: 320px 1fr; gap: 2rem; }
}

/* Profilfoto rund, sauber gecroppt – Fokus nach oben (mehr Kopf, weniger Körper) */
.profile-figure {
  margin: 0;
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--blue-200);
  background: var(--blue-100);
  justify-self: center;
}
@media (min-width: 820px) {
  .profile-figure { width: 300px; border-width: 6px; justify-self: start; }
}
.profile-figure img,
.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

/* Textbereich */
.about-text h2 { margin-top: 0; color: var(--accent); }
.about-text p { color: var(--muted); }

/* Bulletliste Werte */
.about-bullets { list-style: none; padding: 0; margin: 1rem 0 0 0; }
.about-bullets li {
  margin: .45rem 0;
  padding-left: 1.4rem;
  position: relative;
}
.about-bullets li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Zitat-Block */
.hero-quote {
  margin: 1rem 0 .4rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: var(--blue-100);
  border-radius: .5rem;
  font-size: 1.15rem;
  color: var(--text);
}
.quote-subline { margin: 0 0 1rem 0; color: var(--muted); }

/* Kontaktbox */
.contact-box {
  margin-top: 2rem;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: .8rem;
  padding: 1.4rem 1.2rem;
}
.contact-box h2 { margin-top: 0; color: var(--accent); }
.contact-box a { color: var(--accent); font-weight: 700; }
.contact-box .cta-button { display: inline-block; margin-top: .8rem; }
.termin-hinweis { margin-top: .6rem; font-size: .9rem; color: var(--muted); }

/* Zweispaltiges Layout für HR-Bereich */
.cols.two { display: grid; gap: 1rem; }
@media (min-width: 820px) {
  .cols.two { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
}

/* Checklisten-Stil */
.list-check { list-style: none; padding: 0; margin: .6rem 0 0 0; }
.list-check li { position: relative; padding-left: 1.4rem; margin: .45rem 0; }
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* Header-Leiste */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.header-logo {
  height: clamp(36px, 5vw, 48px);
  width: auto;
  display: block;
}

/* Sticky Back-Button (Pflichtseiten) */
.back-btn{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #23a2ab;
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,.2);
  transition: background .2s ease;
  z-index: 1000;
}
.back-btn:hover{ background: #44bfc8; }
