/* AP-h – Praxis Athina Paramythelli
   Mobile first, keine externen Ressourcen. Schrift: Source Sans 3 (SIL OFL, siehe /assets/fonts/OFL.txt) */

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #12401f;
  --green-800: #165128;
  --green-700: #1e6b34;
  --green-500: #3cbf3c;
  --green-200: #cfe7d3;
  --green-100: #e4f2e6;
  --green-50: #f3f8f3;
  --text: #1c2620;
  --muted: #4a5750;
  --border: #d5e3d7;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 64, 31, 0.06), 0 6px 20px rgba(18, 64, 31, 0.07);
  --container: 72rem;
  --gutter: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 0.6em;
  font-weight: 650;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.15rem);
}

h3 {
  font-size: 1.25rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-900);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 650;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Kopfbereich ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.brand {
  display: block;
  border-radius: var(--radius-sm);
}

.brand img {
  width: 150px;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.header-call:hover {
  background: var(--green-900);
  color: var(--white);
}

.header-call-number {
  display: none;
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  display: flex;
  justify-content: space-between;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menüpunkte nie umbrechen. Auf schmalen Handys wird die Schrift leicht kleiner, damit alle vier in eine Zeile passen. */
.main-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--text);
  font-size: clamp(0.875rem, 0.55rem + 1.6vw, 1.0625rem);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  color: var(--green-700);
  border-bottom-color: var(--green-200);
}

.main-nav a[aria-current] {
  color: var(--green-700);
  border-bottom-color: var(--green-500);
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--green-700);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-800);
}

.btn-secondary:hover {
  background: var(--green-50);
  color: var(--green-900);
}

/* ---------- Abschnitte ---------- */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--green-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--green-700);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 44rem;
}

.prose {
  max-width: 46rem;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
  background: linear-gradient(160deg, var(--green-50) 0%, var(--white) 55%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -12rem;
  top: -10rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 191, 60, 0.16), rgba(60, 191, 60, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-text .lead {
  margin-bottom: 0;
}

.appointment {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-left: 5px solid var(--green-500);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.appointment p {
  margin-bottom: 1rem;
}

.appointment-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--green-900);
}

/* Porträt: Originaldatei der Altseite, unbearbeitet, wie dort mit 150 px Breite und Sepia-Filter (CSS) */
.portrait-original {
  margin: 0;
}

.portrait-original img {
  width: 150px;
  filter: sepia(100%);
}

/* ---------- Leitspruch ---------- */

.motto {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.motto-text {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.55;
  color: var(--green-900);
}

.motto-text p {
  margin-bottom: 1.1em;
}

.motto-sign {
  font-weight: 650;
  color: var(--green-700);
}

.motto-sign img {
  margin: 0.5rem auto 0;
}

/* ---------- Karten ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.card-media img {
  width: auto;
  max-height: 150px;
}

.card h2,
.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
}

.card ul {
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-block;
  margin-top: auto;
  font-weight: 650;
  text-decoration: none;
}

.card-link .icon {
  display: inline-block;
  margin-left: 0.3rem;
  vertical-align: -0.25em;
}

.card-link:hover {
  text-decoration: underline;
}

/* ---------- Listen ---------- */

.check-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 2rem;
}

.check-list li + li {
  border-top: 1px solid var(--green-100);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.95rem;
  border: solid var(--green-700);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.check-list.compact li {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  border-top: 0;
}

.check-list.compact li::before {
  top: 0.5rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--green-200);
  color: var(--green-900);
  font-weight: 600;
}

/* ---------- Leistungsseiten ---------- */

.page-head {
  padding: 2rem 0 2.25rem;
  background: linear-gradient(160deg, var(--green-50) 0%, var(--white) 70%);
  border-bottom: 1px solid var(--border);
}

.page-head .lead {
  margin-bottom: 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--green-700);
}

.subnav {
  margin-top: 1.75rem;
}

.subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subnav a {
  display: inline-block;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--green-200);
  background: var(--white);
  color: var(--green-900);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.subnav a:hover {
  border-color: var(--green-700);
}

.subnav a[aria-current="page"] {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.service-group {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.service-group:last-of-type {
  border-bottom: 0;
}

.service-group h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.8rem);
}

.service-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.service-figure img {
  width: auto;
  max-height: 170px;
}

.section-spacer {
  height: 3rem;
}

.closing {
  margin: 2rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-900);
}

.cta-box {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--green-900);
  color: var(--white);
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.cta-box p {
  margin: 0;
  color: #e3efe5;
}

.cta-box .btn-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--green-900);
}

.cta-box .btn-primary:hover {
  background: var(--green-100);
  border-color: var(--green-100);
}

.cta-box .btn-secondary {
  background: transparent;
  border-color: #b9d8be;
  color: var(--white);
}

.cta-box .btn-secondary:hover {
  background: var(--green-800);
  color: var(--white);
}

/* ---------- Über mich ---------- */

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.signature {
  margin: 1.5rem 0 0;
}

.signature img {
  width: 240px;
}

.vita-grid {
  display: grid;
  gap: 1.5rem;
}

.vita-block {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.vita-block h3 {
  margin-bottom: 0.9rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.5rem;
  border-left: 2px solid var(--green-200);
  margin-left: 0.4rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.3rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green-700);
}

.timeline-date {
  display: block;
  font-weight: 650;
  color: var(--green-700);
}

.member-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-list {
  display: grid;
  gap: 0.75rem 1.5rem;
}

.vita-block .timeline {
  margin-top: 1.25rem;
}

.member-list strong {
  display: block;
  color: var(--green-900);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h2,
.contact-card h3 {
  font-size: 1.3rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.55rem 0;
}

.contact-list li + li {
  border-top: 1px solid var(--green-100);
}

.contact-list .icon {
  margin-top: 0.2em;
  color: var(--green-700);
}

.contact-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.3;
}

.contact-list a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.address {
  font-style: normal;
}

.contact-card .btn-row {
  margin-top: 1.25rem;
}

.contact-card + .contact-card {
  margin-top: 1.5rem;
}

/* ---------- Rechtstexte ---------- */

.legal {
  max-width: 48rem;
  overflow-wrap: break-word;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.65rem);
}

.legal > h2:first-child {
  margin-top: 0;
}

.legal h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}

.legal h4 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--green-900);
}

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

.legal li {
  margin-bottom: 0.5rem;
}

.legal .source {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 404 ---------- */

.error-page {
  padding: 3.5rem 0 4rem;
}

.error-code {
  margin: 0 0 0.5rem;
  font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  font-weight: 750;
  line-height: 1;
  color: var(--green-700);
}

.finding {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--green-700);
  background: var(--green-50);
}

.finding dt {
  font-weight: 650;
  color: var(--green-900);
}

.finding dd {
  margin: 0 0 0.75rem;
}

.finding dd:last-child {
  margin-bottom: 0;
}

/* ---------- Fußbereich ---------- */

.site-footer {
  margin-top: 0;
  padding: 3rem 0 1.5rem;
  background: var(--green-900);
  color: #dfece1;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--green-100);
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-title {
  margin: 0 0 0.75rem;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 650;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  padding: 0.2rem 0;
}

.footer-list a {
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Ab Tablet ---------- */

@media (min-width: 40em) {
  :root {
    --gutter: 1.5rem;
  }

  .brand img {
    width: 180px;
  }

  .header-call-number {
    display: inline;
  }

  .header-call-label {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vita-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vita-wide {
    grid-column: 1 / -1;
  }

  .service-group:not(.has-figure) > div {
    max-width: 52rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2rem;
  }

  .service-group.has-figure {
    grid-template-columns: 1fr 13rem;
    align-items: start;
  }
}

/* ---------- Ab Desktop ---------- */

@media (min-width: 60em) {
  .header-inner {
    flex-wrap: nowrap;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .brand img {
    width: 210px;
  }

  .main-nav {
    order: 2;
    width: auto;
    margin-left: auto;
  }

  .header-call {
    order: 3;
  }

  .main-nav ul {
    gap: 0.5rem;
  }

  .main-nav a {
    padding: 0.6rem 0.8rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
  }

  .page-head {
    padding: 2.5rem 0 3rem;
  }

  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
  }

  .portrait-original {
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .member-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-group.has-figure {
    grid-template-columns: 1fr 16rem;
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header .main-nav,
  .header-call,
  .skip-link,
  .subnav,
  .cta-box .btn-row {
    display: none;
  }

  .site-footer {
    background: none;
    color: #000;
  }

  .site-footer a {
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
