/* =========================================================
   Dr. med. Stefanie Schwieren – Custom Styles
   Hauptfarbe orientiert an der Visitenkarte: #7FCCBC
   ========================================================= */

:root {
  --brand: #7FCCBC;
  --brand-dark: #5FA394;
  --brand-darker: #487A70;
  --brand-light: #EAF6F3;
  --text-on-brand: #FFFFFF;
  --text-dark: #24312E;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: #ffffff;
}

a {
  color: var(--brand-darker);
}

a:hover {
  color: var(--brand-dark);
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ---------- Navbar ---------- */
.site-navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow .3s ease;
}

.site-navbar .navbar-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brand-darker);
  letter-spacing: .5px;
}

.site-navbar .navbar-brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .5px;
  color: var(--text-dark);
  opacity: .7;
}

.site-navbar .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  margin: 0 .25rem;
}

.site-navbar .nav-link.active,
.site-navbar .nav-link:hover {
  color: var(--brand-darker);
}

.site-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: .1rem;
  right: .1rem;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--text-on-brand);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 15%, rgba(255,255,255,.10) 0%, transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(255,255,255,.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-monogram {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin: 0 auto 1.75rem;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  animation: logoIn 1s ease-out both;
}

.hero-logo {
  width: 128px;
  height: auto;
  margin: 0 auto 1.75rem;
  border-radius: 22%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  animation: logoIn 1s ease-out both;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 1px;
  animation: fadeUp .9s ease-out .15s both;
}

.hero-subtitle {
  color: rgba(255, 255, 255, .95);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeUp .9s ease-out .3s both;
}

.hero-qualifications {
  animation: fadeUp .9s ease-out .45s both;
}

.hero-qualifications .badge {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-weight: 500;
  font-size: .82rem;
  padding: .55em 1em;
  margin: .25rem;
}

.hero-scroll {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  color: #fff;
  opacity: .85;
  animation: bounce 2s infinite;
  text-decoration: none;
}

.hero-scroll:hover {
  color: #fff;
  opacity: 1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ---------- Section headings ---------- */
.section-eyebrow {
  color: var(--brand-darker);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .82rem;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-dark);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--brand);
  margin: .85rem auto 0;
  border-radius: 3px;
}

.section-title.text-start::after {
  margin-left: 0;
}

/* ---------- Über mich / Profilbild ---------- */
.profile-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--brand-light);
  box-shadow: 0 14px 34px rgba(36, 49, 46, .16);
}

.profile-intro {
  border-bottom: 1px solid #eef2f1;
  padding-bottom: 3rem;
}

/* ---------- Generic scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Über mich / Qualifikationen ---------- */
.qualification-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.qualification-item .dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: .4rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: var(--brand-light);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px #fff;
  transition: background .3s ease;
}

.timeline-item.in-view .timeline-dot {
  background: var(--brand);
}

.timeline-card {
  background: #fff;
  border: 1px solid #eef2f1;
  border-radius: .6rem;
  padding: 1.1rem 1.35rem;
  box-shadow: 0 4px 18px rgba(36, 49, 46, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(36, 49, 46, .1);
}

.timeline-year {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: var(--brand-darker);
  border-radius: 999px;
  padding: .2rem .85rem;
  font-size: .8rem;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--text-dark);
}

.timeline-card p {
  margin-bottom: 0;
  color: #4b5a56;
  font-size: .95rem;
}

/* Desktop: centered line, alternating sides */
@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
  }

  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
    left: auto;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
  }

  .timeline-item:nth-child(odd) .timeline-year {
    margin-left: auto;
  }
}

/* ---------- Kontakt ---------- */
.contact-section {
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: var(--text-on-brand);
}

.contact-section .section-title {
  color: #fff;
}

.contact-section .section-title::after {
  background: #fff;
}

.contact-section .section-eyebrow {
  color: rgba(255, 255, 255, .85);
}

.contact-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .75rem;
  padding: 1.75rem;
  height: 100%;
  color: #fff;
}

.contact-card .icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-card a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .5);
}

.contact-card a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.btn-brand-light {
  background: #fff;
  color: var(--brand-darker);
  font-weight: 600;
  border: none;
}

.btn-brand-light:hover {
  background: var(--brand-light);
  color: var(--brand-darker);
}

.map-wrapper {
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  line-height: 0;
  height: 100%;
  min-height: 260px;
}

.map-image-link {
  position: relative;
  display: block;
  height: 100%;
}

.map-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  filter: saturate(.95);
  transition: transform .4s ease;
}

.map-image-link:hover .map-image {
  transform: scale(1.04);
}

.map-image-badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(36, 49, 46, .85);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, .75);
}

.site-footer a {
  color: rgba(255, 255, 255, .9);
}

.site-footer a:hover {
  color: var(--brand);
}

/* ---------- Impressum page ---------- */
.legal-page {
  padding-top: 4rem;
}

.legal-hero {
  background: var(--brand);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}

.legal-hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--brand-darker);
  margin-top: 2.25rem;
  margin-bottom: .85rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  color: var(--text-dark);
}

.legal-content p,
.legal-content li {
  color: #45524e;
}

.legal-content hr {
  margin: 2.5rem 0;
  border-color: #e5ebe9;
}

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

  .hero-monogram,
  .hero-name,
  .hero-subtitle,
  .hero-qualifications,
  .hero-scroll {
    animation: none !important;
  }

  .timeline-item,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
