/* Christiane Schirren – Logopädie & Mentalcoaching
   Modernisiertes Grundgerüst: HTML5/CSS3, responsiv, ohne Frameworks. */

:root {
  --color-teal: #2fb3a6;
  --color-teal-dark: #1c8d82;
  --color-teal-tint: #e9f7f5;
  --color-blue: #0d4e93;
  --color-accent: #e2472a;
  --color-ink: #202b2e;
  --color-muted: #56686b;
  --bg-page: #eef2f2;
  --bg-card: #ffffff;
  --radius-card: 16px;
  --radius-control: 8px;
  --font-base: Arial, Verdana, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--bg-page);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue);
  font-weight: bold;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-accent);
}

h1, h2, h3 {
  font-family: var(--font-base);
  font-weight: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Seite ist bewusst NICHT auf volle Breite gestreckt: zentrierte Karte
   mit sichtbarem Hintergrund an den Seiten ab Tablet-Breite aufwärts. */
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px;
}

.page-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px rgba(15, 40, 40, 0.06), 0 16px 40px rgba(15, 40, 40, 0.10);
  overflow: hidden;
  position: relative;
}

/* Kopfbereich */
.topbar-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  flex-shrink: 0;
}

.page-title-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--color-teal);
  padding: 0 12px 0 20px;
  min-width: 0;
}

.page-title-bar h1 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.nav-toggle {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .bar-top {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .bar-mid {
  opacity: 0;
}

.nav-toggle.is-active .bar-bottom {
  transform: translateY(-7px) rotate(-45deg);
}

/* Layout: Navigation + Inhalt */
.layout {
  position: relative;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 28, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 40;
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile: Navigation ist ein schwebendes Dropdown-Panel unterhalb des Headers,
   Teil des Hamburger-Menüs – legt sich über den Inhalt statt ihn zu verdrängen. */
.site-nav {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 40, 40, 0.2);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 50;
}

.site-nav.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  color: var(--color-teal-dark);
  font-weight: bold;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--color-teal-tint);
  color: var(--color-accent);
}

.site-nav a.current {
  background: var(--color-teal);
  color: #fff;
}

.site-nav a.current:hover {
  color: #fff;
}

/* Inhalt */
.content {
  padding: 28px 20px;
}

.content p {
  max-width: 60ch;
}

.content-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 60ch;
}

.content-list li {
  position: relative;
  padding-left: 1.4em;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
}

/* Fußzeile */
.site-footer {
  background: var(--color-teal-dark);
  color: #fff;
  padding: 16px 20px;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

/* Unterschiedlicher Zeilenumbruch für Mobil und Desktop */
.footer-desktop {
  display: none;
}

.footer-mobile {
  display: block;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  font-weight: normal;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffd9cf;
}

/* Hinweis-/Platzhalterbox (z. B. Lageplan-Seite) */
.notice-box {
  background: var(--color-teal-tint);
  border-left: 4px solid var(--color-teal);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 20px;
  max-width: 60ch;
}

.notice-box strong {
  color: var(--color-teal-dark);
}

/* Datentabellen (Lebenslauf, Störungsbilder) */
.table-scroll {
  overflow-x: auto;
  margin-top: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-teal-tint);
  vertical-align: top;
}

.data-table thead th {
  color: var(--color-teal-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-teal);
}

.data-table tbody tr.group-row th {
  background: var(--color-teal-tint);
  color: var(--color-teal-dark);
  font-weight: bold;
  border-bottom: 1px solid var(--color-teal-tint);
}

.data-table:not(.cv-table) td:last-child,
.data-table th[scope="col"]:last-child {
  white-space: nowrap;
}

.cv-table {
  table-layout: fixed;
  min-width: 0;
}

.cv-table th[scope="row"] {
  color: var(--color-teal-dark);
  font-weight: bold;
  width: 150px;
}

/* Lebenslauf: Foto + Tabelle */
.cv-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.cv-details {
  flex: 1 1 0%;
  min-width: 0;
}

.cv-photo img {
  width: 150px;
  border-radius: 12px;
}

.cv-name {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--color-teal-dark);
}

@media (min-width: 600px) {
  .cv-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }

  .cv-photo {
    flex-shrink: 0;
  }
}

/* Startseite: Vorstellung + Themen-Karten */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 24px;
}

.intro-photo img {
  width: 150px;
  border-radius: 12px;
}

.intro-text h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--color-ink);
}

.intro-subtitle {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-weight: bold;
}

.focus-links {
  display: grid;
  gap: 14px;
  margin: 0;
  max-width: none;
}

.focus-card {
  display: block;
  background: var(--color-teal-tint);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--color-ink);
  text-decoration: none;
}

.focus-card:hover,
.focus-card:focus {
  background: #fff;
  color: var(--color-ink);
  box-shadow: 0 0 0 2px var(--color-teal) inset;
}

.focus-card-title {
  display: block;
  font-weight: bold;
  color: var(--color-teal-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.focus-card:hover .focus-card-title,
.focus-card:focus .focus-card-title {
  color: var(--color-accent);
}

.focus-card-desc {
  display: block;
  font-weight: normal;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .intro {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 24px;
  }

  .focus-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* Ab Tablet-Breite: feste Navigationsspalte links, kein Hamburger-Menü mehr */
@media (min-width: 768px) {
  .page-shell {
    padding: 40px 24px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-backdrop {
    display: none;
  }

  .layout {
    display: flex;
    align-items: stretch;
  }

  .site-nav {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 0;
    background: var(--color-teal-tint);
    width: 230px;
    flex-shrink: 0;
    padding: 20px 12px;
  }

  .content {
    flex: 1;
    min-width: 0;
    padding: 36px 44px;
  }

  .page-title-bar h1 {
    font-size: 1.6rem;
  }

  .logo {
    padding: 16px 28px;
  }

  .footer-desktop {
    display: block;
  }

  .footer-mobile {
    display: none;
  }
}
