/* Praxis62 – minimal, ohne externe Ressourcen, ohne Cookies */

:root {
  --blau: #58acc4;        /* Logofarbe „Praxis“ */
  --blau-dunkel: #23708a; /* Links und Knopf, ausreichend Kontrast auf Weiß */
  --sand: #b39a77;        /* Logofarbe „62“ und Claim */
  --sand-dunkel: #7a6446; /* Sand für kleine Schrift */
  --sand-hell: #f3eee6;
  --tinte: #28363c;       /* Fließtext */
  --grau: #5d6b70;        /* Sekundärtext */
  --linie: #dde4e6;
  --band: #eef6f8;        /* heller Blauton für den Umzugsblock */

  --max: 40rem;
  --rand: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  font-family: "Arial Nova", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinte);
  background: #fff;
}

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

a { color: var(--blau-dunkel); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  max-width: calc(var(--max) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* ---------- Hero: aus dem alten Logo wird das neue ---------- */

.hero {
  padding: clamp(2.75rem, 9vh, 5.5rem) 0 clamp(2.75rem, 8vh, 4.5rem);
}

.hero p {
  margin: 0;
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  color: var(--grau);
}

.hero .alt-logo {
  width: clamp(11rem, 52vw, 15rem);
  margin: 0.6rem 0 1.4rem;
  /* Einziger animierter Moment: das alte Logo tritt zurück */
  animation: zuruecktreten 1.4s ease 0.8s both;
}

@keyframes zuruecktreten {
  from { filter: grayscale(0); opacity: 1; }
  to   { filter: grayscale(1); opacity: 0.45; }
}

.hero h1 {
  margin: 0.9rem 0 0;
  font-size: 1rem;
}

.hero .logo {
  width: min(100%, 29rem);
}

/* ---------- Inhalt ---------- */

main section {
  padding: clamp(2.75rem, 7vw, 4rem) 0;
}

.umzug { background: var(--band); }

/* Fachbereiche: Logos in gleichem Maßstab, Schriftoberkanten auf einer Linie */
.fachbereiche { border-top: 1px solid var(--linie); }

.fach {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  --k: 0.34px;
}

@media (min-width: 40rem) {
  .fach { grid-template-columns: repeat(3, minmax(0, 1fr)); --k: 0.4px; }
}

.fach img {
  height: calc(var(--h) * var(--k));
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left top;
  /* Unterlänge (z. B. „p“ in Nephro62) ragt nach unten, Beschriftungen bleiben bündig */
  margin-bottom: calc((64.5 - var(--h)) * var(--k));
}

.fach span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--grau);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 4.5vw, 1.8rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--tinte);
}

p { margin: 0 0 1rem; }

/* Umzug: zwei Stationen in zeitlicher Reihenfolge */
.stationen {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.stationen li {
  position: relative;
  padding: 0 0 1.75rem 2rem;
}

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

.stationen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--band);
  border: 2px solid var(--grau);
}

.stationen li.neu::before {
  background: var(--blau);
  border-color: var(--blau);
}

/* Verbindungslinie vom ersten zum zweiten Punkt */
.stationen li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1.35rem;
  bottom: -0.45rem;
  width: 2px;
  background: #c4d3d8;
}

.stationen .wann {
  display: block;
  font-size: 0.95rem;
  color: var(--grau);
}

.stationen .neu .wann {
  display: inline-block;
  color: var(--sand-dunkel);
  font-weight: 700;
  background: var(--sand-hell);
  padding: 0.05em 0.5em;
  border-radius: 3px;
}

.stationen address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.stationen .neu address { font-weight: 700; }

.stationen .hinweis {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--grau);
}

/* Kontakt */
.kontakt {
  margin: 0 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem 1.5rem;
}

.kontakt dt {
  font-size: 0.95rem;
  color: var(--grau);
  margin-top: 0.75rem;
}

.kontakt dd {
  margin: 0;
  font-size: 1.15rem;
}

.kontakt dd a { text-decoration: none; border-bottom: 1px solid var(--linie); }
.kontakt dd a:hover { border-bottom-color: var(--blau-dunkel); }

@media (min-width: 34rem) {
  .kontakt { grid-template-columns: 7rem 1fr; align-items: baseline; }
  .kontakt dt,
  .kontakt dd { margin-top: 0.6rem; }
}

.knopf {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--blau-dunkel);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.knopf:hover { background: #1a5a6f; }

/* zweitrangiger Knopf, z. B. „Zur bisherigen Website“ */
.knopf-zweit {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--blau-dunkel);
  border-radius: 6px;
  background: #fff;
  color: var(--blau-dunkel);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.knopf-zweit:hover { background: var(--band); }

/* Lageplan */
.karte {
  margin: 2rem 0 0;
}

.karte img {
  width: 100%;
  border: 1px solid #d6e2e6;
  border-radius: 8px;
}

.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--grau);
}

.route .knopf-zweit { margin-top: 0; }

.klein {
  font-size: 0.95rem;
  color: var(--grau);
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */

.kopf {
  border-bottom: 1px solid var(--linie);
  padding: 1rem 0;
}

.kopf img { height: 2.6rem; width: auto; }

.text {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.text h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
}

.text h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.2rem;
}

.text address { font-style: normal; margin: 0 0 1rem; }

.text ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.text li { margin-bottom: 0.3rem; }

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

footer {
  border-top: 1px solid var(--linie);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--grau);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

footer nav { display: flex; gap: 1.25rem; }
footer a { color: var(--grau); }
footer .copy { margin-left: auto; }

@media (max-width: 30rem) {
  footer .copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .alt-logo { animation: none; filter: grayscale(1); opacity: 0.45; }
}

@media (max-width: 30rem) {
  .route span { flex-basis: 100%; }
}
