/* Augenarztpraxis Koyuncu – Layout: Header, Footer, Grundraster, Hero */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 249, 0.78);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(201, 228, 226, 0.6);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--color-background);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.9rem;
  min-height: 72px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-header__brand:hover {
  color: var(--color-primary-dark);
}

.site-header__logo {
  height: 50px;
  width: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
}

.site-header__brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  font-size: 1.05rem;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.main-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-3);
}

.main-nav__list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4em 0.2em;
  border-bottom: 2px solid transparent;
}

.main-nav__list a:hover {
  color: var(--color-primary-dark);
}

.main-nav__list a[aria-current="page"] {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55em 0.9em;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle__icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}
.nav-toggle__icon::before {
  top: -6px;
}
.nav-toggle__icon::after {
  top: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-footer {
  background: #12292b;
  color: #dceeed;
  margin-top: var(--space-6);
}

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

.site-footer__inner {
  padding-block: var(--space-5) var(--space-4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.site-footer__brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
}

.site-footer__brand p {
  color: #a9c7c4;
  font-size: 0.95rem;
  margin: 0;
  max-width: 26em;
}

.site-footer__location {
  display: grid;
  gap: 0.3em;
}

.site-footer__location p {
  margin: 0 0 0.3em;
  font-size: 0.98rem;
  color: #cfe6e4;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--space-3);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: #a9c7c4;
}

.site-footer__bottom-inner p {
  margin: 0;
}

.legal-links {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

main {
  display: block;
}

.section {
  padding-block: var(--space-5);
}

.section--tight {
  padding-block: var(--space-4);
}

.section--tint {
  background: var(--color-surface-tint);
}

.section-head {
  max-width: 46em;
  margin-bottom: var(--space-4);
}

.section-head p {
  color: var(--color-text-muted);
}

.section-head__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5em;
}

.breadcrumbs {
  padding-block: var(--space-2);
  font-size: 0.88rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.breadcrumbs li:not(:last-child)::after {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--color-text-muted);
  border-right: 1.5px solid var(--color-text-muted);
  transform: rotate(45deg);
  opacity: 0.55;
}

/* VideoHero */

.video-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 88vh;
  overflow: hidden;
  background: #0d2f31;
  color: #fff;
}

@media (max-width: 640px) {
  .video-hero {
    aspect-ratio: auto;
    min-height: 560px;
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .video-hero {
    aspect-ratio: 21 / 9;
  }
}

/* Jede Folie füllt den Hero komplett; Video läuft nativ und dauerhaft (autoplay/loop),
   JavaScript blendet ausschließlich zwischen den Folien um – keine Play/Pause-Logik nötig. */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 1s ease;
}

.hero-slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Beide Hero-Videos: Hauptmotiv liegt rechts von der Bildmitte –
   auf schmalen (mobilen) Zuschnitten sonst außerhalb des sichtbaren Bereichs. */
.hero-slide[data-slide="0"] .hero-slide__video,
.hero-slide[data-slide="1"] .hero-slide__video,
.video-hero__noscript-img {
  object-position: 68% 48%;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 33, 35, 0.55) 0%,
    rgba(9, 33, 35, 0.35) 40%,
    rgba(9, 33, 35, 0.78) 100%
  );
}

.video-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: var(--space-5) var(--space-6);
}

.video-hero__eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #b9ece7;
  margin-bottom: 0.7em;
}

.video-hero h1,
.video-hero__headline {
  color: #fff;
  max-width: 18em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}

.video-hero__lede {
  max-width: 40em;
  font-size: 1.15rem;
  color: #eaf3f2;
}

.video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.video-hero__controls {
  position: absolute;
  z-index: 3;
  right: var(--space-3);
  bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.video-hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(9, 33, 35, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.video-hero__arrow:hover {
  background: rgba(9, 33, 35, 0.6);
}

.video-hero__dots {
  display: flex;
  gap: 0.5em;
}

.video-hero__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.video-hero__dot.is-active {
  background: #fff;
}

.video-hero__noscript-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grids */

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

@media (max-width: 860px) {
  .site-header__logo {
    height: 42px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
  }

  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 0 var(--space-4) var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--color-border);
    z-index: 200;
    gap: 0;
  }

  .main-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .main-nav__list a {
    display: block;
    padding: 0.9em 0.2em;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-close {
    display: none;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-text);
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 33, 35, 0.45);
    /* Muss unter dem z-index von .site-header (100) liegen: der Header
       bildet einen eigenen Stacking-Context, in dem .main-nav lebt.
       Ein höherer z-index hier würde über .main-nav liegen und Klicks
       auf die Menüpunkte blockieren. */
    z-index: 90;
  }

  .nav-backdrop[data-open="true"] {
    display: block;
  }

  .site-footer__location {
    grid-column: span 1;
  }
}

@media (min-width: 861px) {
  .nav-close,
  .nav-backdrop {
    display: none;
  }
}
