/*
Theme Name: Kurtsiefer
Theme URI: https://dres-kurtsiefer.de
Author: Kurtsiefer
Author URI: https://dres-kurtsiefer.de
Description: WordPress Theme für die Gemeinschaftspraxis Dres. Kurtsiefer – DSGVO-konform, SEO/AEO/GEO optimiert. Medical Elegance Design.
Version: 6.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kurtsiefer
*/

/* ==========================================================================
   SELF-HOSTED FONTS (DSGVO-konform)
   ========================================================================== */
@font-face { font-family:'Playfair Display'; font-weight:400; font-style:normal; font-display:swap; src:url('./assets/fonts/playfair-400.woff2') format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:400; font-style:italic; font-display:swap; src:url('./assets/fonts/playfair-400i.woff2') format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:600; font-style:normal; font-display:swap; src:url('./assets/fonts/playfair-600.woff2') format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:700; font-style:normal; font-display:swap; src:url('./assets/fonts/playfair-700.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-weight:300; font-style:normal; font-display:swap; src:url('./assets/fonts/dmsans-300.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-weight:400; font-style:normal; font-display:swap; src:url('./assets/fonts/dmsans-400.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-weight:500; font-style:normal; font-display:swap; src:url('./assets/fonts/dmsans-500.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-weight:600; font-style:normal; font-display:swap; src:url('./assets/fonts/dmsans-600.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-weight:700; font-style:normal; font-display:swap; src:url('./assets/fonts/dmsans-700.woff2') format('woff2'); }

/* ==========================================================================
   DESIGN TOKENS
   Kundenwunsch: Grundfarbe GRÜN, Buttons ROT
   ========================================================================== */
:root {
  /* Primary: Grün (Header, Akzente, Badges) */
  --primary: #809911;
  --primary-light: #a8c244;
  --primary-dark: #6b800e;

  /* Buttons & CTA: Rot */
  --btn: #C00707;
  --btn-hover: #9b0707;

  /* Accent: Teal (subtle, links, hover) */
  --accent: #68CCD1;
  --accent-light: #a8e4e7;
  --accent-dark: #4fb8be;

  --charcoal: #414345;
  --charcoal-light: #5a5c5e;
  --cream: #FAFAF7;
  --sand: #F0EDE8;
  --text: #4a4a4a;
  --text-light: #7a7a7a;
  --heading: #2a2a2a;
  --white: #fff;
  --border: rgba(0,0,0,0.06);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s ease; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); font-weight: 600; line-height: 1.15; margin-bottom: 0.5em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* For WordPress Customizer preview (no JS) */
.customize-partial-refreshing .reveal,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.section {
  padding: clamp(60px, 10vw, 120px) 0;
}

.section--tinted {
  background: var(--sand);
}

/* ==========================================================================
   DECORATIVE ELEMENTS
   ========================================================================== */
.accent-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  margin-bottom: 20px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--primary);
}

.section-label--center {
  justify-content: center;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

.btn--small {
  padding: 10px 22px;
  font-size: 0.78rem;
}

.btn--large {
  padding: 16px 38px;
  font-size: 0.9rem;
}

/* Info link (inline) */
.info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s var(--ease);
}
.info-link:hover { gap: 10px; color: var(--primary-dark); }
.info-link svg { width: 14px; height: 14px; }

/* ==========================================================================
   HEADER – Glassmorphism on Green
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 40px);
  transition: all 0.4s var(--ease);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(128, 153, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  transition: all 0.4s var(--ease);
  pointer-events: none;
}

/* Front page only: transparent header at top of hero, green when scrolled */
body.home .site-header:not(.scrolled)::before,
body.front-page .site-header:not(.scrolled)::before {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Text shadow on transparent header (only on front page before scroll) */
body.home .site-header:not(.scrolled) .main-nav__list li a,
body.home .site-header:not(.scrolled) .header-cta,
body.front-page .site-header:not(.scrolled) .main-nav__list li a,
body.front-page .site-header:not(.scrolled) .header-cta {
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body.home .site-header:not(.scrolled) .nav-toggle__bar,
body.front-page .site-header:not(.scrolled) .nav-toggle__bar {
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo img,
.site-logo .site-logo__img,
.site-logo .custom-logo {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}

.site-logo a {
  display: flex;
  align-items: center;
}

/* Navigation */
.main-nav__list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.main-nav__list li a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  display: block;
}

.main-nav__list li a:hover,
.main-nav__list li.current-menu-item a {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* Header CTA */
.header-cta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  padding: 10px 22px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.header-cta:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -8px 0 40px rgba(0,0,0,0.1);
    transition: right 0.4s var(--ease);
    padding: 100px 36px 36px;
    z-index: 1000;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .main-nav__list li a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--sand);
    border-radius: 0;
    color: var(--heading);
  }
  .main-nav__list li a:hover {
    background: none;
    color: var(--primary-dark);
    padding-left: 8px;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    backdrop-filter: blur(4px);
  }
  .nav-overlay.active { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6d9e10 0%, #809911 40%, #96ab2a 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* When hero has a background image, add a dark-green overlay for text readability */
.hero--has-image {
  background-color: #6b800e;
}

.hero--has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(107, 128, 14, 0.75) 0%,
    rgba(128, 153, 17, 0.65) 50%,
    rgba(107, 128, 14, 0.8) 100%);
  z-index: 1;
  width: auto; height: auto;
  border-radius: 0;
}

/* Decorative circles – only show when NO image (plain gradient background) */
.hero:not(.hero--has-image)::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128,153,17,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero:not(.hero--has-image)::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 130px 0 70px;
  width: 100%;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 3.4rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
}

.hero__address {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Floating Rezepte badge */
.floating-rezepte {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 900;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 8px 30px rgba(192,7,7,0.35);
  text-decoration: none;
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s var(--ease);
}
.floating-rezepte:hover { transform: scale(1.08); color: var(--white); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 767px) {
  .floating-rezepte { width: 96px; height: 96px; font-size: 0.6rem; bottom: 16px; right: 16px; }
  .hero__content { padding: 110px 0 50px; }
  .hero__title { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
  .hero__title em { display: block; margin-top: 4px; }
  .hero__label { font-size: 0.6rem; margin-bottom: 16px; }
  .hero__address { font-size: 0.85rem; margin-bottom: 24px; }
}

/* ==========================================================================
   ANNOUNCEMENTS (Praxis-Hinweise) – Medical Elegance card style
   ========================================================================== */
.hinweise-section {
  background: var(--cream);
  padding: 32px 0 0;
}

.hinweise-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hinweis {
  flex: 1 1 320px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hinweis:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Top accent gradient bar */
.hinweis::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

/* Icon bubble */
.hinweis__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hinweis__content { flex: 1; min-width: 0; }

.hinweis__label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.hinweis__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
  line-height: 1.3;
}

.hinweis__text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}

.hinweis__text p { margin-bottom: 0.3em; }
.hinweis__text p:last-child { margin-bottom: 0; }

.hinweis__dates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--sand);
  color: var(--text-light);
}

.hinweis__dates::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Type: Urlaub */
.hinweis--urlaub::before { background: linear-gradient(90deg, #E67E22, #F5A623); }
.hinweis--urlaub .hinweis__icon { background: #FDF5EC; }
.hinweis--urlaub .hinweis__label { color: #E67E22; }
.hinweis--urlaub .hinweis__dates::before { background: #E67E22; }

/* Type: Vertretung */
.hinweis--vertretung::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.hinweis--vertretung .hinweis__icon { background: #F3F6E8; }
.hinweis--vertretung .hinweis__label { color: var(--primary-dark); }
.hinweis--vertretung .hinweis__dates::before { background: var(--primary); }

/* Type: Wichtig */
.hinweis--wichtig::before { background: linear-gradient(90deg, var(--btn), #e53935); }
.hinweis--wichtig .hinweis__icon { background: #FEF5F5; }
.hinweis--wichtig .hinweis__label { color: var(--btn); }
.hinweis--wichtig .hinweis__dates::before { background: var(--btn); }

/* Type: Info (default) */
.hinweis--info::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.hinweis--info .hinweis__icon { background: #F3F6E8; }
.hinweis--info .hinweis__label { color: var(--primary); }
.hinweis--info .hinweis__dates::before { background: var(--primary); }

@media (max-width: 575px) {
  .hinweis { flex-basis: 100%; }
}

/* ==========================================================================
   WELCOME – Two-column asymmetric
   ========================================================================== */
.willkommen__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 767px) {
  .willkommen__grid { grid-template-columns: 1fr; }
}

.willkommen__text h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.willkommen__text p {
  font-size: 0.95rem;
  color: var(--text);
}

.willkommen__image {
  position: relative;
}

.willkommen__image img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.willkommen__image::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--primary);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.35;
}

/* Rezept banner */
.rezept-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 20px 28px;
  border-radius: 12px;
  margin-top: 28px;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.rezept-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 128, 14, 0.3);
  color: var(--white);
}

.rezept-banner__icon { font-size: 2rem; flex-shrink: 0; }
.rezept-banner__text { font-size: 0.9rem; line-height: 1.5; }
.rezept-banner__text strong {
  display: block;
  font-size: 1.4rem;
  font-family: var(--font-display);
  margin-top: 4px;
}

.rezept-tel { color: var(--btn); font-size: 0.9rem; margin-top: 12px; }
.rezept-tel strong { color: var(--btn); }

/* ==========================================================================
   INFO CARDS
   ========================================================================== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.info-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.02);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover::before { opacity: 1; }

.info-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.info-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 6px;
}

/* Legacy info-box support */
.info-box {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.info-box h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.info-box p { font-size: 0.9rem; margin-bottom: 6px; }

.btn--info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  margin-top: 12px;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--info:hover { background: var(--primary-dark); color: var(--white); }

/* ==========================================================================
   GALLERY – Masonry grid
   ========================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 8px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__item:nth-child(4) { grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover img { transform: scale(1.05); }

.gallery__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Placeholder for images */
.gallery__placeholder {
  width: 100%;
  height: 100%;
  background: var(--sand);
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
}

@media (max-width: 767px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item:nth-child(1), .gallery__item:nth-child(4) { grid-row: span 1; }
}

/* Gallery link + zoom icon */
.gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gallery__zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
  pointer-events: none;
  z-index: 3;
}

.gallery__item:hover .gallery__zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.kf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.kf-lightbox--open {
  pointer-events: auto;
  opacity: 1;
}

.kf-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

.kf-lightbox__content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kf-lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: opacity 0.2s ease;
}

.kf-lightbox__caption {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-align: center;
  letter-spacing: 0.02em;
}

.kf-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 8px;
}
.kf-lightbox__close:hover { opacity: 1; }

.kf-lightbox__prev,
.kf-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.kf-lightbox__prev { left: 20px; }
.kf-lightbox__next { right: 20px; }
.kf-lightbox__prev:hover,
.kf-lightbox__next:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

@media (max-width: 767px) {
  .kf-lightbox__prev { left: 8px; width: 40px; height: 40px; font-size: 1.2rem; }
  .kf-lightbox__next { right: 8px; width: 40px; height: 40px; font-size: 1.2rem; }
  .kf-lightbox__close { top: 10px; right: 12px; font-size: 2rem; }
  .kf-lightbox__img { max-width: 95vw; max-height: 75vh; border-radius: 4px; }
}

/* ==========================================================================
   SERVICES – Two columns with accent
   ========================================================================== */
.leistungen__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 767px) { .leistungen__grid { grid-template-columns: 1fr; } }

.leistungen__col h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leistungen__col h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.leistungen__col ul {
  list-style: none;
  padding: 0;
}

.leistungen__col ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease);
}

.leistungen__col ul li:hover { padding-left: 34px; }

.leistungen__col ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

/* ==========================================================================
   OPENING HOURS
   ========================================================================== */
.oeffnungszeiten__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 767px) { .oeffnungszeiten__grid { grid-template-columns: 1fr; } }

.opening-table {
  width: 100%;
  border-collapse: collapse;
}

.opening-table tr { border-bottom: 1px solid var(--border); }

.opening-table td {
  padding: 12px 0;
  font-size: 0.9rem;
  vertical-align: top;
}

.opening-table td:first-child {
  font-weight: 600;
  color: var(--heading);
  width: 120px;
}

.hours-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
}

.hours-card img {
  width: 100%;
  border-radius: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   EMERGENCY – Bold green section
   ========================================================================== */
.notfall {
  background: linear-gradient(135deg, #6d9e10, #809911, #96ab2a);
  padding: clamp(60px, 10vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

.notfall::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.notfall .container { position: relative; z-index: 2; }
.notfall__inner { text-align: center; max-width: 650px; margin: 0 auto; }
.notfall .section-label { color: rgba(255,255,255,0.5); justify-content: center; }
.notfall .section-label::before { background: rgba(255,255,255,0.3); }
.notfall .section-title { color: var(--white); }
.notfall p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.notfall strong { color: var(--white); }

.notfall-numbers {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.notfall-number {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 20px 36px;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.notfall-number:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: var(--white);
}

.notfall-number__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 4px; }
.notfall-number__value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.notfall-number__value a { color: var(--white); text-decoration: none; }

/* ==========================================================================
   CONTACT – Card grid (no form)
   ========================================================================== */
.contact { background: var(--sand); }

.contact__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 991px) { .contact__cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .contact__cards { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all var(--transition);
  display: block;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  border-color: var(--primary);
  color: var(--heading);
}

.contact-card--accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: transparent;
}
.contact-card--accent:hover { border-color: transparent; color: var(--white); }
.contact-card--accent .contact-card__icon svg { stroke: var(--white); }
.contact-card--accent .contact-card__label { color: rgba(255,255,255,0.6); }
.contact-card--accent .contact-card__value { color: var(--white); }

.contact-card__icon { margin-bottom: 14px; }
.contact-card__icon svg {
  width: 30px; height: 30px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto;
}

.contact-card__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  word-break: break-word;
}

.contact__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.contact__address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--heading);
}

.contact__address svg {
  width: 18px; height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .contact__bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #4a5a08;
  color: rgba(255,255,255,0.6);
  padding: 0;
}

.footer__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
}

.footer__main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px) 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.footer__brand .footer-logo img,
.footer__brand .footer-logo .site-logo__img,
.footer__brand .footer-logo .custom-logo-link img {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}

.footer-doctors {
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-doctors strong {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 20px; height: 2px;
  background: rgba(255,255,255,0.5);
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s ease;
}
.footer__links a:hover { color: var(--white); padding-left: 4px; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.footer__contact-item svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
}

.footer__contact-item a { color: rgba(255,255,255,0.5); transition: color 0.25s; }
.footer__contact-item a:hover { color: var(--white); }

.footer__bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
}

.footer__copyright { color: rgba(255,255,255,0.4); }

.footer__legal { display: flex; gap: 8px; }
.footer__legal a {
  color: rgba(255,255,255,0.65);
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.25s;
}
.footer__legal a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
}

@media (max-width: 575px) {
  .footer__bottom-bar { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   TEAM PAGE
   ========================================================================== */
.team-section { padding-top: 120px; }

.doctor-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.doctor-card:last-of-type { border-bottom: none; }

@media (max-width: 767px) {
  .doctor-card { grid-template-columns: 1fr; text-align: center; }
}

.doctor-card img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.doctor-card__subtitle {
  font-style: italic;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-size: 1rem;
}

.doctor-card__qualifications {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text);
}

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

@media (max-width: 991px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .staff-grid { grid-template-columns: 1fr; } }

.staff-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.staff-card img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.staff-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--heading); }
.staff-card__role { font-size: 0.8rem; color: var(--text-light); }

/* ==========================================================================
   WORDPRESS EDITOR CONTENT
   ========================================================================== */
.entry-content { max-width: 800px; margin-inline: auto; }
.entry-content h1, .entry-content h2, .entry-content h3 { margin-top: 1.5em; }
.entry-content h1:first-child, .entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content img { border-radius: 12px; }
.entry-content ul, .entry-content ol { margin-bottom: 1em; padding-left: 1.5em; }
.entry-content blockquote { border-left: 3px solid var(--primary); padding: 16px 20px; margin: 1.5em 0; background: var(--sand); border-radius: 0 12px 12px 0; font-style: italic; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--primary); }

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */
.page-content { padding-top: 120px; }
.page-content .container { max-width: 800px; }

/* ==========================================================================
   404, SEARCH, ARCHIVE
   ========================================================================== */
.error-404, .search-page, .archive-page {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 60vh;
}
