/* ==========================================================================
   Praxis für Psychotherapie · Sibylla Pörksen
   Gestaltung nach der Visitenkarte 2026
   ========================================================================== */

/* Open Sans, selbst gehostet – keine Verbindung zu Google beim Seitenaufruf.
   Quelle: Google Fonts (v44, Zeichensatz Latin), Lizenz: SIL OFL 1.1, siehe ../fonts/OFL.txt */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-v44-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-v44-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --rot: #cb4939;            /* Kartenrot #ce4c3b, minimal dunkler für Kontrast nach WCAG AA */
  --rot-zart: rgb(203 73 57 / 0.45);
  --text: #1c1c1c;
  --text-leise: #666;
  --linie: #e7e2de;
  --papier: #fff;
  --flaeche: #fbf6f4;
  --rand: clamp(1rem, 5vw, 3rem);
  --sperrung: 0.06em;        /* Laufweite der Versalzeilen wie auf der Karte */
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  color: var(--text);
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
}

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rot-zart);
  text-underline-offset: 0.22em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--rot);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--rot);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Versalzeile: Semibold, Großbuchstaben, gesperrt – wie auf der Karte */
.versal {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--sperrung);
}

abbr[title] {
  text-decoration: none;
  cursor: help;
}

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

/* --------------------------------------------------------------------------
   Startseite
   -------------------------------------------------------------------------- */

.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.75rem, 8vh, 5rem);
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6.5rem) var(--rand) clamp(2rem, 6vh, 4rem);
}

/* Vorderseite der Karte: Logo, Praxis, Name */
.front {
  font-size: clamp(1.0625rem, 5.2vw, 2.125rem);
  text-align: center;
}

.front .logo {
  width: 9em;
  margin: 0 auto 1.15em;
}

.front h1 {
  margin: 0;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.3;
}

.front .practice {
  display: block;
  padding-left: var(--sperrung); /* gleicht die Sperrung nach dem letzten Buchstaben aus */
}

.front .name {
  display: block;
  margin-top: 0.3em;
  font-size: 0.9em;
}

/* Rückseite der Karte: Qualifikation und Kontakt */
.back {
  display: grid;
  justify-items: center;
  gap: 2.25rem;
  width: 100%;
  padding-top: clamp(2.25rem, 6vh, 3.25rem);
  border-top: 1px solid var(--linie);
  text-align: center;
}

.credentials {
  margin: 0;
  font-size: 0.875em;
  line-height: 1.7;
}

.credentials span {
  display: block;
  text-wrap: balance;
}

.contact {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  margin: 0;
  text-align: left;
}

.contact dt {
  grid-column: 1;
  justify-self: end;
  color: var(--rot);
  font-size: 0.78em;
}

.contact dd {
  grid-column: 2;
  margin: 0;
}

@media (min-width: 52em) {
  .back {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 4rem;
    text-align: left;
  }

  .credentials {
    justify-self: start;
  }

  .contact {
    justify-self: end;
  }
}

/* --------------------------------------------------------------------------
   Impressum und Datenschutz
   -------------------------------------------------------------------------- */

.page-header,
.legal {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
}

.page-header {
  padding: clamp(1.5rem, 5vh, 2.75rem) var(--rand) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand img {
  width: 4.25rem;
  flex: none;
}

.brand .practice,
.brand .name {
  display: block;
  line-height: 1.4;
}

.brand .practice {
  font-size: 0.75rem;
  transition: color 0.15s ease;
}

.brand:hover .practice {
  color: var(--rot);
}

.brand .name {
  font-size: 0.95rem;
}

.legal {
  flex: 1;
  padding: clamp(2.25rem, 7vh, 4rem) var(--rand) 3rem;
  overflow-wrap: break-word;
}

/* Lange Wörter wie „Verbraucherstreitbeilegung“ nur auf schmalen Bildschirmen trennen */
@media (max-width: 30em) {
  .legal {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

.legal h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 0.6rem + 3.2vw, 2rem);
  line-height: 1.25;
}

.legal h2 {
  margin: 2.5rem 0 0.6rem;
  color: var(--rot);
  font-size: 0.875rem;
  line-height: 1.5;
}

.legal h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1em;
  font-weight: 600;
}

.legal p,
.legal ul {
  margin: 0 0 1em;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 0.3em;
}

.legal li::marker {
  color: var(--rot);
}

.legal .lead {
  font-size: 1.05em;
}

.legal .box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--rot);
  background: var(--flaeche);
}

.legal .box h3 {
  margin-top: 0;
}

.legal .box p:last-child {
  margin-bottom: 0;
}

.legal .stand {
  margin-top: 3rem;
  color: var(--text-leise);
  font-size: 0.875em;
}

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 1rem var(--rand) 1.75rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  color: var(--text-leise);
  font-size: 0.75rem;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--rot);
}
