/* =============================================
   Praxis für Verhaltenstherapie Rahlstedt
   Stylesheet – klar, nüchtern, professionell
   Farbpalette abgeleitet aus Logo:
   Blau    #1AAFE8
   Grün    #62B043
   Magenta #BE1E8D
   ============================================= */

:root {
  --blau:    #1AAFE8;
  --gruen:   #62B043;
  --magenta: #BE1E8D;
  --dunkel:  #1A1A1A;
  --grau:    #4A4A4A;
  --hellgrau:#F4F5F6;
  --rand:    #E0E0E0;
  --weiss:   #FFFFFF;
  --max-breite: 1060px;
  --abstand: 2rem;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--dunkel);
  background: var(--weiss);
  line-height: 1.65;
}

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

/* ── Typographie ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; color: var(--grau); }
p  { margin-bottom: 1rem; color: var(--grau); }
ul, ol { margin: 0.5rem 0 1rem 1.4rem; color: var(--grau); }
li { margin-bottom: 0.3rem; }

/* ── Layout ── */
.container {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 var(--abstand);
}

/* ── Header / Navigation ── */
#site-header {
  background: var(--weiss);
  border-bottom: 1px solid var(--rand);
  position: sticky;
  top: 0;
  z-index: 100;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
}

#site-header .logo img {
  height: 90px;
  width: auto;
  display: block;
}

#site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

#site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--dunkel);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

#site-nav a:hover,
#site-nav a.aktiv {
  background: var(--hellgrau);
  color: var(--blau);
  text-decoration: none;
}

/* ── Seiteninhalt ── */
main {
  min-height: calc(100vh - 140px);
  padding: 3rem 0 4rem;
}

/* ── Hero (nur Startseite) ── */
.hero {
  background: var(--hellgrau);
  border-bottom: 3px solid var(--blau);
  padding: 3.5rem 0 3rem;
  margin-bottom: 3rem;
}

.hero h1 { color: var(--dunkel); margin-bottom: 0.5rem; }
.hero .untertitel {
  font-size: 1.1rem;
  color: var(--grau);
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-blau    { background: var(--blau);    color: var(--weiss); }
.btn-gruen   { background: var(--gruen);   color: var(--weiss); }
.btn-outline {
  border: 2px solid var(--blau);
  color: var(--blau);
  background: transparent;
}

/* ── Karten-Raster (Startseite Angebote) ── */
.karten-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.karte {
  border: 1px solid var(--rand);
  border-top: 3px solid var(--blau);
  border-radius: 6px;
  padding: 1.5rem;
  background: var(--weiss);
}
.karte.gruen   { border-top-color: var(--gruen); }
.karte.magenta { border-top-color: var(--magenta); }

.karte h3 { color: var(--dunkel); margin-top: 0; }
.karte p  { font-size: 0.92rem; margin-bottom: 0.5rem; }
.karte a  { font-size: 0.88rem; font-weight: 600; }
.karte.gruen   a { color: var(--gruen); }
.karte.magenta a { color: var(--magenta); }

/* ── Akzentlinie vor Seitenüberschrift ── */
.seiten-titel {
  border-left: 4px solid var(--blau);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.seiten-titel.gruen   { border-left-color: var(--gruen); }
.seiten-titel.magenta { border-left-color: var(--magenta); }
.seiten-titel h1 { margin-bottom: 0.2rem; }
.seiten-titel .lead { font-size: 1.05rem; color: var(--grau); margin: 0; }

/* ── Fortbildungen ── */
.fortbildung-liste { margin-top: 1.5rem; }

.fortbildung {
  border: 1px solid var(--rand);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}

.fortbildung .datum {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--weiss);
  background: var(--blau);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  line-height: 1.3;
}

.fortbildung h3 { margin-top: 0; color: var(--dunkel); font-size: 1rem; }
.fortbildung p  { font-size: 0.92rem; margin-bottom: 0.4rem; }
.fortbildung .meta { font-size: 0.82rem; color: #888; }

/* ── Materialien / Linkliste ── */
.link-gruppe { margin-bottom: 2.5rem; }
.link-gruppe h2 { color: var(--dunkel); }

.link-item {
  border-bottom: 1px solid var(--rand);
  padding: 0.75rem 0;
}
.link-item:last-child { border-bottom: none; }
.link-item a { font-weight: 600; }
.link-item .beschreibung { font-size: 0.88rem; color: var(--grau); margin: 0.15rem 0 0; }

/* ── Kontaktformular ── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

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

.kontakt-info p { margin-bottom: 0.5rem; }
.kontakt-info strong { color: var(--dunkel); }

.formular label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--dunkel);
}

.formular input,
.formular textarea,
.formular select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rand);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dunkel);
  background: var(--weiss);
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}

.formular input:focus,
.formular textarea:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(26,175,232,0.12);
}

.formular textarea { resize: vertical; min-height: 130px; }

.formular .hinweis {
  font-size: 0.8rem;
  color: #888;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* ── Erfolgsmeldung (PHP redirect) ── */
.meldung {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.meldung.erfolg { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.meldung.fehler { background: #fce4ec; color: #b71c1c; border: 1px solid #f48fb1; }

/* ── Footer ── */
#site-footer {
  background: var(--hellgrau);
  border-top: 1px solid var(--rand);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--grau);
}

#site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

#site-footer a { color: var(--grau); }
#site-footer a:hover { color: var(--blau); }

/* ── Team-Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.team-karte {
  border: 1px solid var(--rand);
  border-radius: 6px;
  overflow: hidden;
  background: var(--weiss);
}

.team-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--hellgrau);
}

.team-foto-platzhalter {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--hellgrau);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--rand);
}

.team-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.team-info h3 {
  margin-top: 0;
  color: var(--dunkel);
  font-size: 1.1rem;
}

.team-info .titel {
  font-size: 0.88rem;
  color: var(--blau);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-info p {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

/* ── Fotogalerie Praxisräume ── */
.galerie-gruppe {
  margin-bottom: 2.5rem;
}

.galerie-gruppe h3 {
  color: var(--dunkel);
  margin-bottom: 1rem;
}

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.foto-item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rand);
}

.foto-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.foto-platzhalter {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--hellgrau);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.82rem;
  gap: 0.4rem;
}

.foto-platzhalter svg {
  opacity: 0.35;
}

.foto-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--grau);
  background: var(--weiss);
}

/* ── Responsive Navigation ── */
@media (max-width: 768px) {
  #site-header .container { flex-direction: column; align-items: flex-start; }
  #site-nav ul { gap: 0; }
  #site-nav a { padding: 0.4rem 0.5rem; font-size: 0.82rem; }
  h1 { font-size: 1.6rem; }
  .fortbildung { grid-template-columns: 1fr; }
  .fortbildung .datum { width: fit-content; }
}
