:root {
  --bg: #f4f7f0;
  --bg-alt: #e9f0e4;
  --primary: #234838;
  --primary-light: #2f6f4f;
  --accent: #2f855a;
  --text: #1f2933;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --border-soft: #d3e0cf;
  --danger: #b91c1c;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-soft: 0 10px 30px rgba(15, 56, 37, 0.12);
}

/* Reset/Grundlayout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(211, 224, 207, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.logo-text {
  font-family: "Merriweather", serif;
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--primary);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile Nav Button */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}

.hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem);
  margin: 0 0 1rem;
  color: var(--primary);
}

.hero-subtitle {
  margin-bottom: 1.5rem;
  max-width: 30rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero visual placeholder */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: linear-gradient(135deg, #f9fdf8, #e3f0e5);
  border-radius: 1.8rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
  max-width: 320px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.doctor-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  border: 4px solid var(--accent);
  background:
    radial-gradient(circle at 30% 20%, #fff 0, #fff 30%, #f6d7c3 31%, #f6d7c3 45%, #f4f7f0 46%),
    radial-gradient(circle at 50% 70%, #9ad0b0 0, #9ad0b0 35%, #2f6f4f 36%, #2f6f4f 55%, transparent 56%);
  position: relative;
}

.doctor-coat {
  position: absolute;
  inset: 52% 12% 0;
  background: #ffffff;
  border-radius: 70% 70% 15% 15%;
  box-shadow: 0 6px 15px rgba(7, 54, 24, 0.12);
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.hero-card-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-family: "Merriweather", serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-soft);
}

.btn-ghost:hover {
  background: rgba(211, 224, 207, 0.5);
}

.btn-full {
  width: 100%;
}

/* Cards */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 25px rgba(15, 56, 37, 0.05);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: var(--primary);
}

/* Leistungen */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem 1.3rem;
  border: 1px solid var(--border-soft);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e0f1e5;
  margin-bottom: 0.9rem;
  font-size: 1.3rem;
}

/* Sprechzeiten */

.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

.schedule-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.schedule-list li {
  margin-bottom: 0.4rem;
}

.note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: #e3f2dc;
  font-size: 0.9rem;
}

.schedule-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.schedule-card-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Kontakt & Anfahrt */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.contact-visual {
  display: flex;
  justify-content: center;
}

/* Kleine illustrative "Praxis" aus CSS-Boxen */

.building {
  width: 240px;
  height: 200px;
  position: relative;
}

.building-roof {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 28%;
  height: 16px;
  background: #1f7a54;
  border-radius: 10px 10px 0 0;
}

.building-body {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 36%;
  bottom: 10%;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  border: 2px solid #2f6f4f;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
}

.building-sign {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: #e3f0e5;
  margin-bottom: 0.6rem;
}

.building-door {
  width: 28%;
  flex: 1;
  background: #e5efe9;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

.building-window {
  width: 40%;
  height: 18px;
  background: #b8e0c3;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.tree {
  position: absolute;
  bottom: 0;
  width: 40px;
  height: 80px;
  border-radius: 20px;
  background: #2f6f4f;
}

.tree::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 45%;
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: #3b4a3b;
}

.tree-left {
  left: 0;
}

.tree-right {
  right: 0;
}

/* Kontaktformular */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr);
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.5rem 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  background: #f9fafb;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #ffffff;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.form-success {
  font-size: 0.9rem;
  color: #166534;
  margin-top: 0.8rem;
}

/* Rechtliches */

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2rem;
}

.legal-cards {
  display: grid;
  gap: 1rem;
}

.legal-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px dashed var(--border-soft);
}

/* Aktuelles & Newsletter */

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
}

.news-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 0.9rem;
}

.news-item h3 {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.news-item p {
  margin: 0;
  font-size: 0.9rem;
}

.newsletter-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* Warum unsere Praxis */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.why-item {
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid var(--border-soft);
  text-align: left;
}

/* Footer */

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border-soft);
  background: #f2f5ee;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

/* Responsive Design */

@media (max-width: 900px) {
  .hero-grid,
  .schedule-grid,
  .contact-grid,
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .cards-3,
  .services-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, 100%);
  }

  .header-inner {
    padding-block: 0.5rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(244, 247, 240, 0.98);
    padding: 0.75rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(211, 224, 207, 0.9);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid {
    gap: 1.8rem;
  }

  .hero-card {
    max-width: 100%;
  }

  .cards-3,
  .services-grid,
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 2.4rem 0;
  }
}
