/* ============================================
   Urologie am Rheinfall — Site Styles
   Brand: sage #666c57, dark text #2d2e2c
   ============================================ */

:root {
  --brand: #666c57;
  --brand-dark: #525847;
  --brand-light: #eeefed;
  --accent: #c89856;          /* warm honey gold — used for primary CTAs */
  --accent-dark: #a87b3f;
  --text: #2d2e2c;
  --text-soft: #5e5f5d;
  --line: #e3e2dc;
  --bg: #ffffff;
  --bg-soft: #faf9f6;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(40, 42, 36, 0.05), 0 2px 6px rgba(40, 42, 36, 0.04);
  --shadow-md: 0 4px 12px rgba(40, 42, 36, 0.06), 0 12px 32px rgba(40, 42, 36, 0.06);
  --maxw: 1180px;
  --gutter: 24px;
  --font-serif: "Cormorant Garamond", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}
.brand__sub {
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--brand-light); color: var(--text); }
.nav a.is-active { color: var(--brand-dark); background: var(--brand-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(168, 123, 63, 0.2);
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(168, 123, 63, 0.25); }
.btn--ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--brand);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

/* Brand strip — full-width white section showcasing the wide logo */
.brand-strip {
  background: var(--bg);
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.brand-strip img {
  max-width: min(820px, 80vw);
  height: auto;
  margin: 0 auto;
  display: block;
}
.brand-strip__claim {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-soft);
  margin-top: 16px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(38, 42, 32, 0.45) 0%, rgba(38, 42, 32, 0.25) 60%, rgba(38, 42, 32, 0.55) 100%),
    url("../images/hero-rheinfall.jpg") center/cover no-repeat;
  background-color: #4a5040;
  color: #fff;
  padding: clamp(80px, 14vw, 180px) 0;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.2em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.6em;
}
.hero__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== Sections ===== */
section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-soft { background: var(--bg-soft); }
.section-brand {
  background: var(--brand);
  color: #fff;
}
.section-brand h1, .section-brand h2, .section-brand h3 { color: #fff; }
.section-brand a { color: #fff; }

.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
}
.section__head p { color: var(--text-soft); font-size: 1.08rem; }

/* Intro split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split--reverse > :first-child { order: 2; }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px;
  background: var(--brand-light);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--brand-dark);
}
.card ul { padding-left: 1.1em; margin: 0; }
.card ul li { margin-bottom: 4px; color: var(--text-soft); }
.card h3 a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.15s;
}
.card h3 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.card h3 a::after {
  content: "↗";
  font-size: 0.7em;
  color: var(--brand);
  opacity: 0.6;
  transition: transform 0.15s, opacity 0.15s;
}
.card h3 a:hover::after { opacity: 1; transform: translate(2px, -2px); }
.card .partner-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 18px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card .partner-logo:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(40, 42, 36, 0.08);
  transform: translateY(-1px);
}
.card .partner-logo img {
  max-width: 100%;
  max-height: 96px;
  width: auto;
  height: auto;
  display: block;
}

/* Service list (angebot) */
.service-block { margin-bottom: 40px; }
.service-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-light);
}
.service-block h3::before {
  content: "";
  width: 8px; height: 22px;
  background: var(--brand);
  border-radius: 2px;
  display: inline-block;
}
.service-block ul { padding-left: 0; list-style: none; }
.service-block ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-soft);
}
.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.65;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.person {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.person__photo {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  background: var(--brand-light);
}
.person__body { padding: 20px 22px 24px; }
.person__role {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 600;
  margin-bottom: 6px;
}
.person h3 { margin: 0 0 8px; font-size: 1.25rem; }
.person p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.55; }

/* Person feature (Dr. Harms big) */
.person-feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.person-feature__photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}
.person-feature h2 { margin-top: 0; }
.person-feature .role {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Contact info block */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.contact-card {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  min-width: 110px;
  font-weight: 600;
}
.contact-list .value { color: var(--text); flex: 1; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.media-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* CTA banner — soft cream background with olive CTA */
.cta-banner {
  text-align: center;
  padding: clamp(48px, 7vw, 88px) 0;
}
.section-brand.cta-banner {
  background: linear-gradient(135deg, #f3f1e8 0%, #e6e3d6 100%);
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-brand.cta-banner h2 { color: var(--text); margin-bottom: 12px; }
.section-brand.cta-banner p { color: var(--text-soft); max-width: 600px; margin: 0 auto 28px; }
.section-brand.cta-banner a:not(.btn) { color: var(--brand-dark); }

/* Olive button modifier — same look as the header button */
.btn--olive {
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 2px rgba(82, 88, 71, 0.2);
}
.btn--olive:hover {
  background: var(--brand-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(82, 88, 71, 0.28);
}

/* Page header (smaller hero for inner pages) */
.page-header {
  background:
    linear-gradient(180deg, rgba(38, 42, 32, 0.55) 0%, rgba(38, 42, 32, 0.55) 100%),
    url("../images/hero-rheinfall.jpg") center/cover no-repeat;
  background-color: #4a5040;
  color: #fff;
  padding: clamp(70px, 9vw, 130px) 0 clamp(50px, 7vw, 90px);
  text-align: center;
}
.page-header h1 {
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.page-header .breadcrumb {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.92);
  padding: 60px 0 24px;
  font-size: 0.95rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-serif); margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,0.92); }
.site-footer__logo {
  max-width: 320px;
  height: auto;
  display: block;
  margin-bottom: 32px;
  /* Convert sage source logo to white for use on dark sage footer */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

/* Map / Lageplan */
.lageplan {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: #fff;
  padding: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .btn { margin-top: 8px; justify-content: center; }
  .split, .person-feature, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .person-feature__photo { max-width: 360px; margin: 0 auto; }
}

/* Header button override — olive green, with crisp white text (overrides body honey-gold) */
.site-header .nav .btn {
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 2px rgba(82, 88, 71, 0.2);
}
.site-header .nav .btn:hover {
  background: var(--brand-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(82, 88, 71, 0.28);
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero { padding: 90px 0; }
}

/* small util */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
