/*
  Übergangsseite Ergotherapie-Zentrum Ammerland
  Rein statisches CSS ohne externe Ressourcen
*/

:root {
  --blue: #205068;
  --blue-dark: #173d50;
  --blue-soft: #eaf0f3;
  --green: #818f55;
  --green-dark: #59643b;
  --green-soft: #f2f4ed;
  --terracotta: #c0745c;
  --terracotta-dark: #8e4f3d;
  --white: #ffffff;
  --text: #183746;
  --muted: #536872;
  --border: #d7e0e3;
  --focus: #8e4f3d;
  --page-width: 48rem;
  --radius-large: 1.5rem;
  --radius-small: 0.75rem;
  --font-sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

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

html {
  color-scheme: light;
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background:
    linear-gradient(var(--green-soft), var(--green-soft)) top / 100% 0.375rem no-repeat,
    var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

a:focus-visible,
summary:focus-visible,
.skip-link:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.25rem;
  border-radius: 0.25rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--page-width));
  margin-inline: auto;
  padding: clamp(2.25rem, 6vw, 4.75rem) 0 2rem;
}

.intro {
  text-align: center;
}

.praxislogo {
  width: min(72vw, 23rem);
  margin-inline: auto;
}

.intro-text {
  max-width: 42rem;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
}

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

h1 {
  max-width: 38rem;
  margin-right: auto;
  margin-bottom: 0.65rem;
  margin-left: auto;
  color: var(--blue-dark);
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.opening-date {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 0.18rem solid var(--terracotta);
  color: var(--green-dark);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
}

.contact-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.4vw, 1.12rem);
}

.contact-card {
  position: relative;
  margin-top: clamp(1.75rem, 5vw, 3rem);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  overflow: hidden;
  border: 0.0625rem solid rgba(89, 100, 59, 0.25);
  border-radius: var(--radius-large);
  background: var(--green-soft);
}

.contact-card::before {
  position: absolute;
  top: 0;
  left: 2rem;
  width: 4.5rem;
  height: 0.3rem;
  border-radius: 0 0 0.3rem 0.3rem;
  background: var(--green);
  content: "";
}

.contact-card > h2 {
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.3;
}

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

.contact-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.38fr) minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-top: 0.0625rem solid rgba(32, 80, 104, 0.16);
}

.contact-row:first-child {
  border-top: 0;
}

.contact-row h3 {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.contact-row p {
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.contact-row strong {
  font-weight: 700;
}

.legal-footer {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

.legal-panels {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-small);
  background: var(--white);
}

summary {
  padding: 0.9rem 1rem;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
}

summary::marker {
  color: var(--green-dark);
}

details[open] summary {
  border-bottom: 0.0625rem solid var(--border);
  background: var(--blue-soft);
}

.legal-content {
  padding: 1.1rem 1rem 1.25rem;
  color: #314d5a;
  font-size: 0.875rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.legal-content h2 {
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-size: 1.2rem;
  line-height: 1.3;
}

.legal-content h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--blue-dark);
  font-size: 0.95rem;
  line-height: 1.4;
}

.legal-content h3:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 0.9rem;
}

.placeholder {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.25rem 0.45rem;
  border: 0.0625rem solid var(--terracotta-dark);
  border-radius: 0.35rem;
  background: #fbf2ef;
  color: #653629;
  font-weight: 750;
}

.legal-status {
  margin-top: 1.4rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.copyright {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 34rem) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--page-width));
    padding-top: 1.75rem;
  }

  .praxislogo {
    width: min(78vw, 17rem);
  }

  .contact-card {
    border-radius: 1.15rem;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .contact-row h3 {
    font-size: 0.9rem;
  }

  summary {
    padding: 0.85rem 0.9rem;
  }

  .legal-content {
    padding-inline: 0.9rem;
  }
}

@media (min-width: 64rem) {
  .page-shell {
    padding-top: 4.25rem;
  }

  .praxislogo {
    width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .skip-link {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  details {
    break-inside: avoid;
  }

  details > .legal-content {
    display: block;
  }
}
