﻿:root {
  --color-primary: #1c4f8a;
  --color-primary-dark: #123659;
  --color-primary-light: #e8eef8;
  --color-accent: #c9973f;
  --color-accent-dark: #a97c2c;
  --color-ink: #1b2430;
  --color-muted: #445164;
  --color-bg: #faf8f4;
  --color-white: #ffffff;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(18, 54, 89, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--color-primary-dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--color-muted); }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

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

.section { padding: 90px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-bottom: 0.6em;
}
.section-eyebrow-light { color: var(--color-accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 54, 89, 0.08);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 86px;
  width: auto;
}

.footer-logo-box {
  display: inline-block;
  background: var(--color-white);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.footer-logo-box .logo-img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover { color: var(--color-accent-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(18, 54, 89, 0.25);
  border-radius: 20px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-primary-dark);
}

.lang-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(201, 151, 63, 0.35);
}
.btn-accent:hover { background: var(--color-accent-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); }

.btn-small { padding: 9px 18px; font-size: 0.82rem; }
.header-cta { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 60px 24px;
  overflow: hidden;
  background: #123659;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  background-image: url('../img/hero-eye.jpg');
  background-size: cover;
  background-position: 62% 32%;
  animation: hero-bg-breathe 14s ease-in-out infinite;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,54,89,0.92) 0%, rgba(18,54,89,0.75) 35%, rgba(18,54,89,0.35) 70%, rgba(18,54,89,0.25) 100%),
    radial-gradient(circle at 80% 35%, rgba(201,151,63,0.2), transparent 55%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  width: 100%;
}

@keyframes hero-bg-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

.hero-eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Services */
.services { background: var(--color-white); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 54, 89,0.06);
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover .card-image img { transform: scale(1.05); }

.card-body { padding: 24px; }

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.card p { font-size: 0.94rem; margin-bottom: 0; }

/* About */
.about-practice { background: var(--color-white); }
.about {
  position: relative;
  background:
    linear-gradient(rgba(232, 238, 248, 0.9), rgba(232, 238, 248, 0.9)),
    url('../img/about-bg-painting.jpg');
  background-size: cover;
  background-position: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}

.doctor-card {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--color-white);
  box-shadow: var(--shadow);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 4px solid var(--color-accent);
}
.doctor-card strong { color: var(--color-primary-dark); font-family: var(--font-head); }
.doctor-card span { color: var(--color-muted); font-size: 0.9rem; }

.doctor-card-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.doctor-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  transition: background 0.15s ease, color 0.15s ease;
}
.doctor-card-links a:hover { background: var(--color-primary); color: var(--color-white); }

/* Doctor byline (used on service detail pages) */
.doctor-byline {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
  margin-top: 40px;
  flex-wrap: wrap;
}
.doctor-byline img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}
.doctor-byline-text {
  flex: 1;
  min-width: 200px;
}
.doctor-byline-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  display: block;
  margin-bottom: 2px;
}
.doctor-byline strong {
  display: block;
  color: var(--color-primary-dark);
  font-family: var(--font-head);
}
.doctor-byline span.doctor-byline-title {
  color: var(--color-muted);
  font-size: 0.88rem;
}
.doctor-byline .doctor-card-links { margin-top: 0; }
.doctor-byline-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 220px;
}

/* Detail list (service detail pages) */
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.detail-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-accent);
}
.detail-item h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.detail-item p {
  font-size: 0.92rem;
  margin-bottom: 0;
}
.detail-section-title {
  margin-top: 56px;
}
.detail-section-title:first-of-type { margin-top: 0; }

.page-media {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.external-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

@media (max-width: 700px) {
  .detail-list { grid-template-columns: 1fr; }
}

/* Booking */
.booking {
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
}
.booking h2 { color: var(--color-white); }
.booking-intro { color: rgba(255,255,255,0.78); max-width: 620px; }

.booking-form {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 24px;
  box-shadow: var(--shadow);
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(18, 54, 89,0.18);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.booking-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 14px;
  margin-bottom: 0;
}

.booking-success {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-top: 24px;
  max-width: 720px;
  border-left: 5px solid var(--color-accent);
}
.booking-success h3 { color: var(--color-primary-dark); }
.booking-success p { margin-bottom: 0; }

/* Contact */
.contact { background: var(--color-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-list { margin: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
}
.contact-list a:hover { color: var(--color-primary); }

.hours-box {
  background: var(--color-primary-light);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  margin-top: 10px;
}
.hours-box h3 { font-size: 1rem; margin-bottom: 14px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(18, 54, 89,0.08);
  color: var(--color-muted);
}
.hours-row:last-child { border-bottom: none; }
.hours-row-open {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 24px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-top: 10px; }
.footer-address { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--color-accent); }

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin: 0 0 16px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a,
.footer-col span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.footer-col a:hover { color: var(--color-accent); }
.footer-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.footer-hours-row + .footer-hours-row { margin-top: 2px; }
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--color-accent); }

/* Mobile */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; text-align: left; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .logo-img { height: 62px; }
  .main-nav {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(18, 54, 89,0.08); }
  .main-nav a { display: block; padding: 14px 0; }
  .burger { display: flex; }
  .header-cta { display: none !important; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .booking-form { padding: 24px; }
}

/* Sub-page hero banner */
.page-hero {
  padding: 178px 24px 60px;
  text-align: center;
  background:
    linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
}

.page-hero-about {
  background:
    linear-gradient(160deg, rgba(18,54,89,0.62), rgba(28,79,138,0.5)),
    url('../img/iris-blue-orange.jpg');
  background-size: cover;
  background-position: center;
}

.page-hero-leistungen {
  background:
    linear-gradient(160deg, rgba(18,54,89,0.62), rgba(28,79,138,0.5)),
    url('../img/iris-brown.jpg');
  background-size: cover;
  background-position: center;
}

.page-hero-chirurgie {
  background:
    linear-gradient(160deg, rgba(18,54,89,0.72), rgba(28,79,138,0.62)),
    url('../img/swissparc-building.png');
  background-size: cover;
  background-position: center;
}

.page-hero-geraete {
  background:
    linear-gradient(160deg, rgba(18,54,89,0.68), rgba(28,79,138,0.58)),
    url('../img/adobestock-geraete.jpeg');
  background-size: cover;
  background-position: center 30%;
}

.page-hero-kinder {
  background:
    linear-gradient(160deg, rgba(18,54,89,0.68), rgba(28,79,138,0.58)),
    url('../img/adobestock-kinder.jpg');
  background-size: cover;
  background-position: center 62%;
}

.page-hero-untersuchungen {
  background:
    linear-gradient(160deg, rgba(18,54,89,0.68), rgba(28,79,138,0.58)),
    url('../img/adobestock-untersuchungen.jpeg');
  background-size: cover;
  background-position: center 20%;
}
.page-hero .section-eyebrow { color: var(--color-accent); margin-bottom: 14px; }
.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin-bottom: 18px;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* "Learn more" links under teaser sections */
.section-more {
  margin-top: 36px;
  text-align: center;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
}
.link-more:hover { color: var(--color-accent-dark); }
.card-body .link-more {
  margin-top: 14px;
  font-size: 0.88rem;
}
.link-more svg { transition: transform 0.15s ease; }
.link-more:hover svg { transform: translateX(3px); }

/* Homepage gallery teaser */
.gallery-teaser {
  background: var(--color-white);
}
.gallery-teaser-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.gallery-teaser-inner .btn { margin-top: 22px; }

/* Gallery page grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.gallery-tile {
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(28, 79, 138, 0.3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-muted);
  background: var(--color-primary-light);
}
.gallery-tile svg { color: var(--color-primary); opacity: 0.55; }
.gallery-tile span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sub-page bottom CTA */
.page-cta {
  background: var(--color-primary-light);
  text-align: center;
}
.page-cta-box {
  max-width: 620px;
  margin: 0 auto;
  padding: 44px 40px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
}
.page-cta-box h2 { margin-bottom: 10px; }
.page-cta-box .btn { margin-top: 18px; }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding-top: 140px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cards .reveal:nth-child(1) { transition-delay: 0s; }
.cards .reveal:nth-child(2) { transition-delay: .04s; }
.cards .reveal:nth-child(3) { transition-delay: .08s; }
.cards .reveal:nth-child(4) { transition-delay: .12s; }

.gallery-grid .reveal:nth-child(1) { transition-delay: 0s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: .03s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: .06s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: .09s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: .12s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

