/* ============================================================
   Urologische Wahlarztordination
   Priv.-Doz. Dr. med. Susanne Deininger, MSc
   Farbkonzept: Salbeigrün, passend zur Einrichtung der Ordination
   ============================================================ */

/* Lokal eingebundene Schriftarten (kein Laden von Google-Servern
   mehr - vermeidet Übertragung der Besucher-IP an Dritte) */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/lato-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/lato-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/lora-latin-700-normal.woff2') format('woff2');
}

:root {
  --sage: #84A98E;
  --sage-light: #E3EEE5;
  --sage-lighter: #F2F8F3;
  --sage-dark: #527A5C;
  --sage-darker: #487055;
  --sage-darkest: #34563F;
  --cream: #FAF8F3;
  --text-dark: #33362F;
  --text-muted: #6B6F63;
  --white: #FFFFFF;
  --border: #DCE2D6;
  --shadow: 0 4px 20px rgba(68, 82, 56, 0.08);
  --radius: 6px;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Segoe UI', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#werdegang {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--sage-darker);
  line-height: 1.25;
  letter-spacing: 0.3px;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: 2.8rem; }

@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
}
h2 { font-size: 2.1rem; margin-bottom: 0.6em; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a {
  color: var(--sage-dark);
  text-decoration: none;
}
a:hover { color: var(--sage-darker); text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / Navigation ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}
.brand-group .logo-mark {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage-darker);
  line-height: 1.2;
  min-width: 0;
}
.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 3px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--text-dark);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.header-book-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--sage-light);
  color: var(--sage-darker);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--cream) 70%);
  padding: 64px 0 56px;
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero > .container { width: 100%; }

.hero.has-photo .hero-watermark { display: none; }

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  height: 160%;
  width: auto;
  max-width: none;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 420px; }
.hero-photo { flex: 0 0 300px; }

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.button {
  display: inline-block;
  background: var(--sage-darker);
  color: var(--white) !important;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  margin-top: 10px;
  transition: background 0.15s ease;
}
.button:hover {
  background: var(--sage-darkest);
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  border: 1.5px solid var(--sage-darker);
  color: var(--sage-darker) !important;
}
.button.secondary:hover { background: var(--sage-light); }

/* ---------- Placeholder boxes for images ---------- */
.placeholder {
  background: var(--white);
  border: 1.5px dashed var(--sage);
  border-radius: var(--radius);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  padding: 24px;
  line-height: 1.5;
}

.placeholder.portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 50% / 12%;
  border-radius: var(--radius);
}

.placeholder.wide {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.hero-portrait-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.placeholder .ph-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
}

a.placeholder {
  transition: background 0.15s ease, border-color 0.15s ease;
}
a.placeholder:hover {
  background: var(--sage-lighter);
  border-color: var(--sage-dark);
  text-decoration: none;
}
a.placeholder small {
  color: var(--text-muted);
}

/* ---------- Generic sections ---------- */
section {
  padding: 60px 0;
}
section.alt {
  background: var(--sage-lighter);
}

.section-intro {
  max-width: 62ch;
  margin-bottom: 36px;
}
.section-intro .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid > * { min-width: 0; }

/* ---------- Photo gallery ---------- */
.gallery-item {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--sage-lighter);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-size: 0.85rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(28, 36, 22, 0.82) 0%, rgba(28, 36, 22, 0) 100%);
  line-height: 1.35;
}
.gallery-item { cursor: pointer; }

/* ---------- Gallery lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 20, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-overlay.is-open { display: flex; }

body.lightbox-open { overflow: hidden; }

.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #10140f;
}
.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 14px;
  font-size: 0.98rem;
  max-width: 70ch;
  padding: 0 12px;
}
.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 1001;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 620px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.05rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 1.3rem; }
  .lightbox-caption { font-size: 0.88rem; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px;
  box-shadow: var(--shadow);
}

a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.card-link:hover {
  box-shadow: 0 10px 30px rgba(68, 82, 56, 0.16);
  transform: translateY(-2px);
  text-decoration: none;
}
.card-link-hint {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
}
a.card-link:hover .card-link-hint {
  color: var(--sage-darker);
  text-decoration: underline;
}
.card h3 {
  margin-top: 0;
  color: var(--sage-darker);
}
.card h3 .icon { margin-right: 8px; }

.card.card-photo {
  padding: 0;
  overflow: hidden;
}
.card.card-photo img.card-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.card.card-photo .card-photo-body {
  padding: 22px 24px 26px;
}
.card.card-photo h3 {
  margin-bottom: 8px;
}

/* ---------- Timeline (Werdegang) ---------- */
.timeline {
  border-left: 2px solid var(--sage);
  margin-left: 6px;
  padding-left: 28px;
}
.timeline-item {
  position: relative;
  margin-bottom: 26px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--sage-dark);
  border-radius: 50%;
  border: 2px solid var(--cream);
}
.timeline-item .date {
  font-weight: 600;
  color: var(--sage-dark);
  font-size: 0.88rem;
  letter-spacing: 0.3px;
}
.timeline-item h4 {
  margin: 2px 0 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}
.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- Tags (memberships) ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tag-list li {
  background: var(--sage-light);
  color: var(--sage-darker);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
}
.tag-list li a {
  color: inherit;
  text-decoration: none;
}
.tag-list li a:hover {
  color: var(--sage-darker);
  text-decoration: underline;
}

/* ---------- Info box / notice ---------- */
.notice {
  background: var(--white);
  border-left: 4px solid var(--sage-dark);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.notice strong { color: var(--sage-darker); }

/* ---------- Opening hours table ---------- */
table.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.hours th, table.hours td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}
table.hours td:first-child, table.hours th:first-child {
  white-space: nowrap;
}
table.hours th {
  background: var(--sage-light);
  color: var(--sage-darker);
  font-weight: 600;
}
table.hours tr:last-child td { border-bottom: none; }
table.hours td.status-open { color: var(--sage-dark); font-weight: 600; }
table.hours td.status-planned { color: var(--text-muted); font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
.contact-grid > div {
  min-width: 0;
}
.contact-item {
  margin-bottom: 18px;
}
.contact-item .label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 44px; }
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--sage-darkest);
}
.faq-item p { margin: 0; color: var(--text-dark); }
.faq-item p + p { margin-top: 8px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--sage-darker);
  color: var(--sage-light);
  padding: 40px 0 28px;
  font-size: 0.9rem;
}
footer.site-footer a { color: var(--white); }
footer.site-footer .footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
footer.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  h1 { font-size: 2.2rem; }
  .hero-inner { flex-direction: column-reverse; }
  .hero-photo { width: 60%; min-width: 220px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main-nav ul { gap: 2px; }
  nav.main-nav a { padding: 7px 11px; font-size: 0.88rem; }
  .header-book-btn { padding: 8px 14px; font-size: 0.82rem; }
}
