/* ==========================================================================
   Ambulantes PflegeTeam – Ubergangsseite
   Umsetzung des Figma-Designs "Ubergangsseite – Desktop" (1440 x 775)
   Basis: Bootstrap 5.3.3 (lokal eingebunden)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schrift (lokal gehostet, kein Google-CDN -> DSGVO-konform)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  --apt-orange: #f39200;
  --apt-text: #2b2b2b;
  --apt-text-muted: #616161;
  --apt-text-legal: #4a4a4a;
  --apt-footer-bg: #5b5855;
  --apt-hairline: #e7e4e1;

  /* Aussenabstand: 120px bei 1440px Viewport, darunter proportional kleiner */
  --apt-gutter: clamp(20px, 8.3333vw, 120px);

  /* Bootstrap-Variablen auf das Design umstellen */
  --bs-body-font-family: 'Open Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-color: var(--apt-text);
  --bs-body-bg: #fff;
  --bs-link-color: var(--apt-text);
  --bs-link-hover-color: var(--apt-orange);
  --bs-border-color: var(--apt-hairline);
}

/* --------------------------------------------------------------------------
   Grundgeruest
   -------------------------------------------------------------------------- */
body {
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

:focus-visible {
  outline: 2px solid var(--apt-orange);
  outline-offset: 3px;
}

/* Inhaltsbreite: max. 1200px Inhalt mit 120px Aussenabstand bei 1440px */
.container-apt {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--apt-gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--apt-text);
  padding: 12px 20px;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Hero / Ubergangsseite
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero__inner {
  position: relative;
  padding-block: 64px 72px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero__title {
  margin: 0;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--apt-text);
  overflow-wrap: break-word;
}

.hero__intro {
  margin: 24px 0 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--apt-text-muted);
}

.hero__divider {
  width: 64px;
  height: 2px;
  margin: 24px 0 0;
  border: 0;
  border-radius: 1px;
  background: var(--apt-orange);
  opacity: 1;
}

.hero__contact {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--apt-text);
}

.hero__contact p {
  margin: 0 0 6px;
}

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

.hero__contact-label {
  font-weight: 700;
}

.hero__contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
}

/* Telefonnummer bleibt antippbar, aber optisch wie im Design ohne Unterstrich */
.hero__contact a[href^='tel:'] {
  text-decoration: none;
}

.hero__contact a:hover,
.hero__contact a:focus-visible {
  color: var(--apt-orange);
}

/* Logo als dezentes Wasserzeichen – Mobile: unterhalb des Inhalts */
.hero__logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 48px 0 0;
  opacity: 0.31;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  background: var(--apt-footer-bg);
  color: #fff;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-block: 24px;
  font-size: 14px;
  line-height: 1.35;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer a[aria-current='page'] {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Rechtsseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.page-header {
  border-bottom: 1px solid var(--apt-hairline);
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.page-header__logo img {
  display: block;
  width: 56px;
  height: 56px;
}

.page-header__back {
  font-size: 15px;
  color: var(--apt-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.page-header__back:hover,
.page-header__back:focus-visible {
  color: var(--apt-orange);
}

.legal {
  padding-block: 56px 72px;
}

.legal__inner {
  max-width: 760px;
}

.legal h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--apt-text);
}

.legal__divider {
  width: 64px;
  height: 2px;
  margin: 24px 0 40px;
  border: 0;
  border-radius: 1px;
  background: var(--apt-orange);
  opacity: 1;
}

.legal h2 {
  margin: 48px 0 16px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--apt-text);
}

.legal h3 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--apt-text);
}

.legal h4 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--apt-text);
}

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

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--apt-text-legal);
}

.legal p {
  margin: 0 0 16px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--apt-text-legal);
  text-decoration: underline;
  text-underline-position: from-font;
  overflow-wrap: anywhere;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--apt-orange);
}

.legal address {
  margin: 0 0 16px;
  font-size: 16px;
  font-style: normal;
  line-height: 1.7;
  color: var(--apt-text-legal);
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

/* >= 576px */
@media (min-width: 576px) {
  .hero__logo {
    width: 280px;
  }
}

/* >= 768px */
@media (min-width: 768px) {
  .hero__inner {
    padding-block: 88px 104px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__intro {
    font-size: 18px;
  }

  .hero__logo {
    width: 340px;
    margin-top: 56px;
  }

  .legal {
    padding-block: 80px 96px;
  }

  .legal h1 {
    font-size: 38px;
  }

  .legal h2 {
    font-size: 24px;
  }

  .page-header__logo img {
    width: 64px;
    height: 64px;
  }
}

/* >= 992px: Logo wird zum freigestellten Wasserzeichen rechts */
@media (min-width: 992px) {
  .hero__inner {
    padding-block: 100px 150px;
  }

  .hero__content {
    max-width: 520px;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__logo {
    position: absolute;
    z-index: 1;
    top: 180px;
    right: var(--apt-gutter);
    width: 360px;
    height: 360px;
    margin: 0;
  }
}

/* >= 1200px: Design-Werte aus Figma (1:1 bei 1440px Viewport) */
@media (min-width: 1200px) {
  .hero {
    min-height: 700px;
  }

  .hero__inner {
    padding-block: 120px 185px;
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__title {
    font-size: 44px;
  }

  .hero__logo {
    /* Figma: x 863 / y 217, 440 x 440 im 1440er Frame */
    top: 217px;
    right: calc(var(--apt-gutter) + 17px);
    width: 440px;
    height: 440px;
  }

  .site-footer__inner {
    padding-block: 28px;
  }

  .legal__inner {
    max-width: 800px;
  }
}

/* --------------------------------------------------------------------------
   Druck
   -------------------------------------------------------------------------- */
@media print {
  .hero__logo,
  .page-header__back,
  .skip-link {
    display: none;
  }

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

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

/* --------------------------------------------------------------------------
   Reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
