/* ubuntu-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Ubuntu Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ubuntu-sans-v4-latin-regular.woff2') format('woff2');
}

:root {
  --accent-gold: #e5b85d;
  --accent-gold-dark: #c79b45;
  --accent-green: #1da79a;
  --text-dark: #243338;
  --text-light: #ffffff;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Ubuntu Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: #111;
}

/* Seite mittig */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* Hero-Container mit Hintergrundbild */
.hero {
  position: relative;
  max-width: 1366px;
  width: 100%;
  aspect-ratio: 1366 / 768;
  background-image: url("../img/251113_sanfte-chiro_Webdesign_FS_pp.png");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-dark);
}

/* Logo oben links */
.hero__logo {
  position: absolute;
  top: 24px;
  left: 24px;
  height: 80px;
  width: auto;
  z-index: 3; /* über Claim-Hintergrund */
}

/* Abdunklung unten für bessere Lesbarkeit */
.hero::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 60, 60, 0.05),
    rgba(0, 60, 60, 0.75)
  );
  pointer-events: none;
}

/* Claim oben mittig (Desktop) */
.hero__claim {
  position: absolute;
  top: 70px;
  left: 44%;
  transform: translateX(-50%);
  width: min(750px, 82%);
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #147671;
  animation: fade-down 0.8s 0.1s ease-out both;
  z-index: 1;
}

/* Kontaktkasten Desktop (transparent, nur Text) */
.hero__contact {
  position: absolute;
  top: 200px;
  right: -19px;
  width: 280px;
  height: 105px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transform-origin: center;
  animation: float-in 0.7s 0.15s ease-out both;
}

.hero__contact-inner {
  padding: 10px 16px;
  color: #5a4a26;
  text-align: left;
  width: 100%;
}

.hero__contact-label {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.98;
}

.hero__contact-phone {
  display: inline-block;
  margin: 6px 0 7px;
  font-size: 24px;
  font-weight: 400;
  text-decoration: none;
  color: #4b3d1c;
}

.hero__contact-place {
  font-size: 15px;
  opacity: 0.98;
}

/* Headline unten */
.hero__headline {
  position: absolute;
  left: calc(26% + 40px);
  bottom: 50px;
  color: var(--text-light);
  z-index: 1;
  animation: slide-in 0.7s 0.2s ease-out both;
}

.hero__headline-main {
  font-size: 96px;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  line-height: 1.02;
  font-weight: 400;
}

.hero__headline-sub {
  margin-top: 10px;
  font-size: 32px;
  letter-spacing: 0.12em;
  text-transform: none;
  font-weight: 400;
}

/* Leistungs-Liste unten rechts */
.hero__services {
  position: absolute;
  right: 9%;
  bottom: 30px;
  list-style: none;
  color: var(--text-light);
  font-size: 20px;
  z-index: 1;
}

.hero__services li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 0;
  transform: translateX(8px);
  line-height: 1.4;
  animation: fade-right 0.4s ease-out forwards;
}

.hero__services li::before {
  content: "•";
  font-size: 24px;
  color: var(--accent-gold);
}

.hero__services li:nth-child(1) { animation-delay: 0.32s; }
.hero__services li:nth-child(2) { animation-delay: 0.44s; }
.hero__services li:nth-child(3) { animation-delay: 0.56s; }
.hero__services li:nth-child(4) { animation-delay: 0.68s; }
.hero__services li:nth-child(5) { animation-delay: 0.8s; }

/* --------------------
   Tablet / iPad (Portrait, inkl. 820px)
-------------------- */
@media (max-width: 1024px) and (min-width: 700px) {

  .page {
    padding: 0;
  }

  .hero {
    max-width: 100%;
    border-radius: 0;
    aspect-ratio: auto;
    min-height: 100vh;
    background-position: center top;
  }

  .hero__logo {
    top: 20px;
    left: 20px;
    height: 54px;
  }

  /* Claim zentriert, 50px weiter unten */
  .hero__claim {
    top: 80px;
    left: 0;
    right: 0;
    transform: none;
    margin: 0 auto;
    width: 90%;
    text-align: center;
    font-size: 18px;
  }

  /* Kontaktblock weiter unten, wie Mobile-Kasten */
  .hero__contact {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 200px auto 0;
    background: rgba(255, 248, 225, 0.88);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  }

  .hero__contact-inner {
    padding: 12px 16px 14px;
    text-align: center;
    color: #4b3d1c;
  }

  .hero__contact-phone {
    font-size: 22px;
  }

  .hero__headline {
    left: 10%;
    bottom: 140px;
  }

  .hero__headline-main {
    font-size: 64px;
    letter-spacing: 0.06em;
  }

  .hero__headline-sub {
    font-size: 24px;
    letter-spacing: 0.14em;
  }

  .hero__services {
    right: 8%;
    bottom: 80px;
    font-size: 18px;
  }

  .hero__services li::before {
    font-size: 22px;
  }
}

/* --------------------
   Kleinere Desktops / große Tablets (Fallback)
-------------------- */
@media (max-width: 900px) {
  .hero {
    border-radius: 0;
  }
}

/* --------------------
   Mobile Ansicht
-------------------- */
@media (max-width: 640px) {
  .page {
    padding: 0;
  }

  .hero {
    aspect-ratio: auto;
    min-height: 100vh;
    background-position: center top;
  }

  .hero::after {
    inset: 50% 0 0 0;
  }

  .hero__logo {
    top: 18px;
    left: 18px;
    height: 48px;
    z-index: 3;
  }

  /* Claim-Leiste höher + Claim etwas runter, Logo bleibt davor */
  .hero__claim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 70px 16px 18px;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
    font-size: 17px;
    color: #147671;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 2;
  }

  .hero__contact,
  .hero__headline,
  .hero__services {
    position: static;
    transform: none;
    animation: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 90px 18px 26px;
    text-align: center;
  }

  .hero__contact {
    width: 100%;
    max-width: 340px;
    height: auto;
    margin-bottom: 22px;
    background: rgba(255, 248, 225, 0.88);
    border-radius: 12px;
  }

  .hero__contact-inner {
    padding: 12px 16px 14px;
    text-align: center;
  }

  .hero__contact-label {
    font-size: 13px;
  }

  .hero__contact-phone {
    font-size: 22px;
  }

  .hero__contact-place {
    font-size: 14px;
  }

  .hero__headline {
    margin-bottom: 14px;
    color: var(--text-light);
  }

  .hero__headline-main {
    font-size: 34px;
    letter-spacing: 0.12em;
  }

  .hero__headline-sub {
    font-size: 16px;
    letter-spacing: 0.16em;
  }

  .hero__services {
    position: static;
    margin-top: 8px;
    font-size: 15px;
  }

  .hero__services li {
    opacity: 1;
    transform: none;
    justify-content: center;
  }

  .hero__services li::before {
    font-size: 18px;
  }
}

/* --------------------
   Overlay für Landscape auf kleinen Geräten
-------------------- */

/* Grundzustand: Overlay aus, Inhalt sichtbar */
.rotate-notice {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  font-size: 16px;
}

.rotate-notice__inner {
  max-width: 420px;
  line-height: 1.5;
}

/* Smartphones/kleine Tablets in Landscape */
@media (orientation: landscape) and (max-width: 900px) {
  .rotate-notice {
    display: flex;
  }

  .page {
    display: none;
  }
}

/* Basis-Animationen */
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fade-right {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}