/* ============================================================
   INHALT
   1. Schriften
   2. Einstellungen: Farben, Layout und ALLE Bildgrößen
   3. Grundlagen und Texte
   4. Kopfzeile und Navigation
   5. Einstieg
   6. Was meine Arbeit leitet
   7. Angebote und Stühle
   8. Zur Person und Berufsverband
   9. Kontakt
  10. Footer
  11. Rechtliche Unterseite
  12. Bildplatzhalter
  13. Layout für Tablet und Handy
  14. Bewegung und Druck
   ============================================================ */

/* 1. SCHRIFTEN — Dateien im Ordner fonts neben dieser CSS-Datei */
@font-face {
  font-family: "Caviar Dreams";
  src: url("fonts/CaviarDreams.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caviar Dreams";
  src: url("fonts/CaviarDreams_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 2. EINSTELLUNGEN
   Bildbreiten hier ändern. Die Höhe folgt dem Seitenverhältnis.
   Beispiel: --bild-coaching: 320px;
   Alle Bilder werden bei Platzmangel automatisch verkleinert.
   Bei anderem Bildformat auch die passende --format-Variable ändern.
*/
:root {
  /* Farben */
  --paper: #f4f1eb;
  --ink: #292b2b;
  --accent: #985f50;
  --band: #895044;
  --person-hintergrund: #ad6b58;
  --line: #d4ccc2;
  --heller-text: #fffaf4;

  /* Schriften und Seitenbreite */
  --schrift-text: "Lato", Arial, sans-serif;
  --schrift-titel: "Caviar Dreams", Arial, sans-serif;
  --width: 1120px;

  /* Bildbreiten: große Bildschirme */
  --bild-logo: 325px;
  --bild-footer-logo: 130px;
  --bild-portraet-start: 465px;
  --bild-unterschrift: 300px;
  --bild-portraet-person: 300px;
  --bild-supervision: 200px;
  --bild-coaching: 200px;
  --bild-organisation: 200px;
  --bild-moderation: 200px;
  --bild-kontakt: 200px;
  --bild-symbol-adresse: 24px;
  --bild-symbol-telefon: 24px;
  --bild-symbol-email: 24px;
  --bild-symbol-linkedin: 24px;
  --symbol-spalte: 24px; /* Bei größeren Symbolen ebenfalls erhöhen */
  --bild-verband: 300px;

  /* Seitenverhältnisse: Breite / Höhe des Bildrahmens.
     object-fit: contain verhindert Verzerrung und Abschneiden. */
  --format-logo: 270 / 85;
  --format-portraet: 3 / 4;
  --format-stuhl: 29 / 38;
  --format-kontakt: 2 / 3;
  --format-verband: 2 / 1;

  /* Höhe der festen Kopfzeile: bei einem höheren Logo anpassen.
     Der Inhaltsabstand und die Sprunglinks verwenden denselben Wert. */
  --header-height: 114px;
}

/* Bildbreiten: Tablet / schmales Browserfenster */
@media (max-width: 850px) {
  :root {
    --bild-logo: 230px;
    --bild-portraet-start: 360px;
    --bild-unterschrift: 200px;
    --bild-portraet-person: 250px;
    --bild-supervision: 230px;
    --bild-coaching: 230px;
    --bild-organisation: 230px;
    --bild-moderation: 230px;
  }
}

/* Bildbreiten: Handy */
@media (max-width: 560px) {
  :root {
    --bild-logo: 200px;
    --bild-portraet-start: 280px;
    --bild-unterschrift: 180px;
    --bild-supervision: 190px;
    --bild-coaching: 190px;
    --bild-organisation: 190px;
    --bild-moderation: 190px;
    --bild-kontakt: 170px;
    --bild-symbol-adresse: 22px;
    --bild-symbol-telefon: 22px;
    --bild-symbol-email: 22px;
    --bild-symbol-linkedin: 22px;
    --symbol-spalte: 22px;
  }
}

/* 3. GRUNDLAGEN UND TEXTE */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.65;
}

button, input, textarea, select, code {
  font-family: var(--schrift-text);
}

img, object {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: .25em;
}

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

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

h1, h2, h3, p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

h1, h2 {
  font-family: var(--schrift-titel);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.7rem);
  color: var(--accent);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: .8rem;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: .4rem;
}

.wrap {
  width: min(var(--width), calc(100% - 6rem));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1100;
  background: var(--paper);
  padding: .8rem;
}

.skip:focus {
  top: 1rem;
}

/* 4. KOPFZEILE UND NAVIGATION */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;
  /* Deckkraft des Hintergrunds; Logo und Links bleiben vollständig sichtbar. */
  background: rgb(244 241 235 / 90%);
  border-bottom: 1px solid var(--line);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
  padding-block: .85rem;
}

.brand {
  display: block;
  max-width: 100%;
  text-decoration: none;
}

.logo {
  display: block;
  width: var(--bild-logo);
  height: auto;
  aspect-ratio: var(--format-logo);
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li + li {
  margin: 0;
}

nav a {
  font-size: 1.05rem;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Mobile Navigation wird nur bis 850px eingeblendet.
   Der Browser übernimmt Öffnen, Schließen und Tastaturbedienung. */
.mobile-menu { display: none; }

.mobile-menu summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .5rem;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker { display: none; }

/* Drei Balken als Hamburger-Symbol, ohne Bilddatei. */
.menu-icon {
  display: inline-block;
  width: 22px;
  height: 16px;
  background: linear-gradient(to bottom,
    currentColor 0 2px, transparent 2px 7px,
    currentColor 7px 9px, transparent 9px 14px,
    currentColor 14px 16px);
}

/* Geöffnetes Menü: Hamburger durch zwei gekreuzte Linien ersetzen. */
.mobile-menu[open] .menu-icon {
  position: relative;
  background: none;
}

.mobile-menu[open] .menu-icon::before,
.mobile-menu[open] .menu-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.mobile-menu[open] .menu-icon::before {
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu[open] .menu-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

/* 5. EINSTIEG */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 6rem;
  padding-block: 2.5rem 5rem;
}

.portrait {
  display: block;
  height: auto;
  aspect-ratio: var(--format-portraet);
  object-fit: contain;
  margin-inline: auto;
}

.hero .portrait {
  width: var(--bild-portraet-start);
}

/* Unterschrift über der Hauptüberschrift: Größe unter Einstellungen ändern. */
.hero-signature {
  display: block;
  width: var(--bild-unterschrift);
  max-width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.5rem 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: .65rem 1.15rem;
  font-size: .95rem;
}

.button:hover {
  background: var(--band);
  color: white;
}

/* 6. WAS MEINE ARBEIT LEITET */
.principles {
  background: var(--band);
  color: var(--heller-text);
  padding-block: 5rem;
}

.narrow {
  max-width: 710px;
  margin-inline: auto;
}

/* 7. ANGEBOTE UND STÜHLE */
.services {
  padding-block: 2rem 3rem;
}

.service {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 5rem;
  padding-block: 3.5rem;
  min-height: 430px;
}

.service.reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.service.reverse .illustration {
  order: 2;
}

.service h2 {
  color: var(--accent);
}

.chair {
  display: block;
  height: auto;
  aspect-ratio: var(--format-stuhl);
  object-fit: contain;
  margin-inline: auto;
}

[aria-labelledby="supervision-title"] .chair {
  width: var(--bild-supervision);
}

[aria-labelledby="coaching-title"] .chair {
  width: var(--bild-coaching);
}

[aria-labelledby="oe-title"] .chair {
  width: var(--bild-organisation);
}

[aria-labelledby="moderation-title"] .chair {
  width: var(--bild-moderation);
}

/* 8. ZUR PERSON UND BERUFSVERBAND */
.about {
  background: var(--person-hintergrund);
  padding-block: 5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: start;
}

.about-portrait-column {
  min-width: 0;
}

.about .portrait {
  width: var(--bild-portraet-person);
}

.about-card {
  background: var(--paper);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.about-card section + section {
  margin-top: 2rem;
}

.about-card h3 {
  color: var(--accent);
}

.association {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.75rem auto 0;
  text-align: center;
  text-decoration: none;
  color: var(--heller-text);
}

.association:hover {
  color: var(--heller-text);
  text-decoration: underline;
}

.association-logo {
  display: block;
  width: var(--bild-verband);
  height: auto;
  aspect-ratio: var(--format-verband);
  object-fit: contain;
  pointer-events: none;
}


/* 9. KONTAKT */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 5rem;
  padding-block: 4rem;
}

.contact-image {
  display: block;
  width: var(--bild-kontakt);
  height: auto;
  aspect-ratio: var(--format-kontakt);
  object-fit: contain;
  margin-inline: auto;
}

.contact-info, .contact-email {
  min-width: 0;
}

.contact-info a, .fingerprint code {
  overflow-wrap: anywhere;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: var(--symbol-spalte) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.contact-row address {
  font-style: normal;
  margin: 0;
}

.contact-info p + p {
  margin-top: .55rem;
}

.contact-icon {
  display: block;
  height: auto;
  aspect-ratio: 1;
  margin-top: .15rem;
  pointer-events: none;
  object-fit: contain;
}

.icon-adresse { width: var(--bild-symbol-adresse); }
.icon-telefon { width: var(--bild-symbol-telefon); }
.icon-email { width: var(--bild-symbol-email); }
.icon-linkedin { width: var(--bild-symbol-linkedin); }

.contact-email .contact-pgp {
  margin: .35rem 0 0;
}

.contact-email .fingerprint {
  margin-top: .35rem;
}

.fingerprint {
  font-size: .8rem;
  line-height: 1.6;
}

/* 10. FOOTER */
.footer {
  background: var(--band);
  color: var(--heller-text);
  padding-block: 2.5rem;
  text-align: center;
  font-size: .85rem;
}

.footer a:hover {
  color: white;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1rem 0;
}

.footer-logo {
  display: block;
  width: var(--bild-footer-logo);
  height: auto;
  aspect-ratio: var(--format-logo);
  object-fit: contain;
  margin: 1rem auto 0;
}

/* 11. RECHTLICHE UNTERSEITE */
.legal-page {
  max-width: 850px;
  padding-block: 3rem 4rem;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  overflow-wrap: anywhere;
}

.legal-page h2 {
  font-family: "Caviar Dreams", Arial, sans-serif;
  font-weight: 700;
}

.legal-navigation {
  margin-block: 2rem;
}

.legal-navigation a {
  text-decoration: underline;
  font-size: 1rem;
}

.legal-section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.legal-section h3 {
  margin-top: 1.5rem;
  color: var(--accent);
}

.legal-section p {
  overflow-wrap: anywhere;
}

.template-note {
  font-size: .85rem;
  color: #665e56;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-top: 1rem;
}

/* 12. BILDPLATZHALTER — verschwinden, sobald die Bilddatei vorhanden ist */
.placeholder, .logo-placeholder, .association-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px dashed #b9ada2;
  background: #e9e3da;
  color: #63594e;
  text-align: center;
  padding: 1rem;
}

.placeholder {
  border-radius: 3px;
}

.placeholder small {
  display: block;
  font-size: .8rem;
  margin-top: .75rem;
  max-width: 230px;
  overflow-wrap: anywhere;
}

.chair-placeholder, .contact-placeholder, .association-placeholder {
  font-size: .95rem;
}

.logo-placeholder {
  background: transparent;
  font-size: 1.1rem;
}

.logo-placeholder small {
  font-size: .75rem;
}

.association-placeholder {
  background: var(--paper);
  padding: .5rem;
}

.association-placeholder small {
  font-size: .7rem;
  overflow-wrap: anywhere;
}

.icon-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px dashed #b9ada2;
  background: #e9e3da;
  border-radius: 2px;
}

/* 13. LAYOUT FÜR TABLET UND HANDY
   Bildgrößen werden ausschließlich in Abschnitt 2 eingestellt. */
@media (max-width: 1050px) {
  .wrap { width: min(var(--width), calc(100% - 4rem)); }
  .hero, .service, .contact { gap: 3rem; }
}

@media (max-width: 850px) {
  /* Kein fester Header: Menü und Logo scrollen mit der Seite. */
  html { scroll-padding-top: 16px; }
  body { padding-top: 0; }
  .site-header { position: static; height: auto; }
  .header {
    position: relative;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .header .brand { max-width: calc(100% - 105px); }
  .desktop-navigation { display: none; }
  .mobile-menu { display: block; width: 100%; }
  .mobile-menu summary { position: absolute; right: 0; top: 1rem; }
  .mobile-menu nav { padding-top: 1rem; }
  .mobile-menu nav ul { flex-direction: column; gap: .25rem; }
  .mobile-menu nav a { display: block; padding: .6rem .5rem; font-size: 1rem; }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1.5rem;
  }
  .hero-copy { max-width: 600px; }
  .service, .service.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
    padding-block: 2.5rem;
  }
  .service.reverse .illustration { order: 0; }
  .service-copy, .contact-info {
    width: 100%;
    max-width: 650px;
    margin-inline: auto;
  }
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-portrait-column { width: 100%; }
  .association { margin-top: 1.25rem; }
  .principles, .about { padding-block: 3.5rem; }
  .contact { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 2.5rem); }
  .header { padding-block: .7rem; }
  .header nav { width: 100%; }
  .header nav ul { gap: .35rem 1rem; }
  .header .mobile-menu nav a { font-size: 1rem; }
  .hero { padding-bottom: 3rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .principles, .about { padding-block: 2.75rem; }
  .about-card { padding: 1.5rem; }
  .contact { padding-block: 2.5rem; }
  .contact-row { gap: .75rem; }
}

/* 14. BEWEGUNG UND DRUCK */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { padding-top: 0; background: white; color: black; font-size: 11pt; }
  .site-header { position: static; height: auto; border: 0; }
  .header nav, .mobile-menu, .button, .footer, .skip { display: none; }
  .wrap { width: 100%; }
  .hero, .service, .about-layout { gap: 1.5rem; }
  .principles, .about { background: white; color: black; padding-block: 1rem; }
  .service { min-height: 0; padding-block: 1rem; break-inside: avoid; }
  .chair { max-height: 180px; }
  .about-card { padding: 0; }
  .contact { padding-block: 1rem; }
}

/* Rechtliche Seite: Stuhl links, Überschrift und Links rechts */
:root { --bild-rechtliches: 160px; }
.legal-intro { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.legal-intro .legal-chair { display: block; flex: 0 0 var(--bild-rechtliches); width: var(--bild-rechtliches); height: auto; aspect-ratio: 160 / 210; margin: 0; object-fit: contain; }
.legal-intro-text { flex: 1; min-width: 0; }
.legal-intro h1 { min-width: 0; margin: 0; }
.legal-intro .legal-navigation { margin: 1rem 0 0; }
.footer-links a, .footer-links a:visited { color: white; }
.footer-links a:hover { color: white; text-decoration: underline; }
@media (max-width: 560px) {
  :root { --bild-rechtliches: 90px; }
  .legal-intro { gap: 1rem; }
  .legal-intro h1 { font-size: 1.6rem; }
}
