:root {
  --color-primary: #2E6B4A;
  --color-primary-dark: #1F5136;
  --color-secondary: #F6FAF3;
  --color-accent: #E8C547;
  --color-text: #253028;
  --color-muted: #5F6A61;
  --color-bg: #FAFAF5;
  --color-white: #FFFFFF;
  --color-border: #DDE7D8;
  --shadow-soft: 0 20px 60px rgba(46, 107, 74, 0.12);
  --radius: 24px;
  --container: 1400px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
}

.skip-link:focus {
  top: 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;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--color-text);
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  line-height: 1.2;
}

.main-nav ul {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--color-secondary);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px auto;
}

/* Allgemein */

.section {
  padding: 88px 0;
}

.hero h1,
.section h2 {
  line-height: 1.15;
  margin: 0 0 22px;
  letter-spacing: -0.025em;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 700;
  max-width: 780px;
}

.section h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
  max-width: 1000px;
}

.location-section h2 {
  max-width: none;
}

h3 {
  font-size: 1.35rem;
  margin-top: 32px;
}

.eyebrow {
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin-top: 14px;
  background: var(--color-accent);
  border-radius: 10px;
}

.center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* Hero */

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      135deg,
      rgba(120, 155, 122, 0.78),
      rgba(164, 190, 146, 0.72)
    ),
    url("../img/hero.jpg") center / cover no-repeat;
  color: var(--color-white);
}

.hero .eyebrow,
.hero .hero-text,
.hero h1 {
  color: var(--color-white);
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 640px;
  opacity: 0.96;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: center;
}

.hero-logo-wrapper {
  width: 280px;
  height: 280px;

  display: flex;
  justify-content: center;
  align-items: center;

  justify-self: start;
  align-self: start;

  margin-left: -300px;
  margin-top: -100px;

  background: var(--color-white);
  border-radius: 50%;
  padding: 38px;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  border: 8px solid rgba(255, 255, 255, 0.9);
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;

  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transform: none;
}

/* Standortbereiche */

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

.location-section {
  background: var(--color-white);
}

.location-section.alt {
  background: var(--color-secondary);
}

#garzweiler {
  background: var(--color-white);
}

#hochneukirch {
  background: #f4f8f3;
}

.location-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--color-secondary);
}

.media-column {
  display: grid;
  gap: 24px;
}

/* Buttons */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.center-buttons {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-secondary {
  background: var(--color-accent);
  color: #1f2a22;
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: #d8b53f;
  color: #1f2a22;
}

/* Karten */

.news-card,
.contact-card,
.map-consent {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.news-card time {
  color: var(--color-muted);
  font-weight: 700;
}

.contact-card strong {
  color: var(--color-primary-dark);
}
.recipe-note {
  grid-column: 1 / -1;
  margin: 16px 0 0;
}
/* Leistungen */

.services-grid-one{
    display:block;
    margin-top:2rem;
}

.services-grid-one .service-column{
    max-width:900px;
}

.service-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.service-list li::marker {
  color: var(--color-primary);
}
.services-area {
  margin-top: 56px;
  margin-bottom: 72px;
}

.services-area > h3 {
  margin-bottom: 28px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.service-column {
  padding: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.service-column-private {
  background: rgba(247, 244, 216, 0.45);
}

.service-column h4 {
  margin: 0 0 28px;
  padding-bottom: 16px;
  color: var(--color-primary);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  border-bottom: 3px solid var(--color-accent);
}

.service-column h5 {
  margin: 30px 0 12px;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  line-height: 1.4;
}

.service-column h5:first-of-type {
  margin-top: 0;
}

.service-column .service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-column .service-list li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 30px;
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border);
}

.service-column .service-list li:last-child {
  border-bottom: 0;
}

.service-column .service-list li::before {
  content: "✓";
  position: absolute;
  top: 9px;
  left: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
}

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

  .service-column {
    padding: 24px;
  }
}
/* Team */

.team-section {
  margin-top: 60px;
}
.team-section + .contact-card {
  margin-top: 48px;
}
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

#hochneukirch .doctor-grid {
  grid-template-columns: repeat(2, 1fr);
}

.doctor-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

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

.doctor-content {
  padding: 24px;
}

.doctor-content h4 {
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

.doctor-content p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Galerie */
.gallery-section {
  margin-top: 64px;
  margin-bottom: 56px;
}

.gallery-section h3 {
  margin-bottom: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--color-secondary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.04);
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 81, 54, 0.88);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
}
.gallery-button{
    display:block;
    width:100%;
    height:100%;
    padding:0;
    border:none;
    background:none;
    cursor:pointer;
}

.gallery-button img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.35s;
}

.gallery-button:hover img,
.gallery-button:focus-visible img{
    transform:scale(1.04);
}

.gallery-button:focus-visible{
    outline:4px solid var(--color-accent);
    outline-offset:4px;
}

/* ---------- Lightbox ---------- */

.lightbox{
    position:fixed;
    inset:0;
    z-index:5000;
}

.lightbox-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.82);
}

.lightbox-content{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    max-width:95vw;
    max-height:95vh;
    margin:auto;
    inset:0;
}

.lightbox img{
    max-width:90vw;
    max-height:82vh;
    border-radius:18px;
    box-shadow:0 20px 60px rgba(0,0,0,.45);
}

#lightbox-caption{
    margin-top:18px;
    color:#fff;
    font-size:1rem;
}

.lightbox-close{
    position:absolute;
    top:16px;
    right:16px;

    width:48px;
    height:48px;

    border:none;
    border-radius:50%;
    background:#fff;
    color:#1f2a22;

    font-size:2rem;
    line-height:1;
    cursor:pointer;

    box-shadow:0 8px 20px rgba(0,0,0,.3);
}

.lightbox-close:focus-visible{
    outline:4px solid #fff;
}

/* Google Maps */

.map-consent iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 18px;
}

.map-consent button {
  margin-top: 16px;
}

/* CTA */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
}

.cta-section .eyebrow,
.cta-section h2,
.cta-section p,
.cta-section a {
  color: var(--color-white);
}

.cta-section .btn-secondary {
  color: #1f2a22;
}

/* Footer */

.site-footer {
  background: #102016;
  color: var(--color-white);
  padding: 56px 0 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.footer-logo {
  width: 90px;
  margin-bottom: 16px;
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  font-weight: 800;
  cursor: pointer;
}

.accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.accordion-panel {
  padding: 8px 16px 22px;
  color: #dfe9df;
}

.accordion-panel a {
  color: var(--color-accent);
}

.copyright {
  margin-top: 36px;
  color: #c7d4c8;
}
.contact-grid{
    display:grid;
    grid-template-columns:1.2fr 0.8fr;
    gap:40px;
    align-items:start;
}

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

.opening-hours td{
    padding:10px 0;
    border-bottom:1px solid var(--color-border);
    vertical-align:top;
}

.opening-hours td:first-child{
    font-weight:700;
    width:110px;
    color:var(--color-primary-dark);
}

/* Mobile Schnellbuttons */

.mobile-actions {
  display: none;
}

/* Tablet */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }

  .hero-logo {
    width: 300px;
    height: 300px;
  }

  .doctor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #hochneukirch .doctor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */

@media (max-width: 900px) {
  :root {
    --header-height: 78px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }

  .gallery-wide,
  .gallery-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 16px auto 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    text-align: center;
    gap: 36px;
  }

  .hero h1,
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .button-row {
    justify-content: center;
  }

  .hero-logo-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    padding: 28px;
    justify-self: center;
    align-self: center;
  }

  .hero-logo {
    width: 220px;
    height: 220px;
    padding: 22px;
    margin: 0 auto;
    transform: none;
  }

  .location-image {
    aspect-ratio: 4 / 3;
  }

.mobile-actions{
    display:flex;
    flex-direction:column;

    position:fixed;
    left:0;
    right:0;
    bottom:0;

    background:#fff;
    border-top:1px solid var(--color-border);
    box-shadow:0 -6px 20px rgba(0,0,0,.15);

    padding:14px;

    gap:10px;

    z-index:9999;
}

.mobile-actions .btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.75rem;

    width:100%;
    margin:0;
    padding:14px 18px;

    border-radius:999px;
}

.mobile-actions .btn i{
    font-size:1.1rem;
    flex-shrink:0;
}

body{
    padding-bottom:280px;
}
}
.mobile-buttons .btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
}

.mobile-buttons .btn i{
    font-size:1.05rem;
    line-height:1;
}
/* Smartphone */

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .section h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .news-card,
  .contact-card,
  .map-consent {
    padding: 22px;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .doctor-grid,
  #hochneukirch .doctor-grid {
    grid-template-columns: 1fr;
  }
}

