/* ============================================
   Dr. Monika Raussen - Dermatologie Praxis
   Modernes Redesign 2026
   Farbwelt aus dem Logo: Mauve, Pflaume, Gruen
   ============================================ */

/* --- Reset & Basis --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* === Original-Farbschema Dr. Raussen === */
  /* Primaer */
  --pflaume: #663366;
  --pflaume-dark: #663333;
  --mauve: #AA8899;
  --mauve-light: #d4b8c8;
  --mauve-bg: #f5eff2;
  --rosa: #CC6699;

  /* Akzent warm */
  --bordeaux: #990033;
  --orange: #CC9966;
  --goldgelb: #EE9900;

  /* Akzent kuehl */
  --gruen: #CCCC99;
  --gruen-lime: #CCCC33;
  --gruen-light: #e2e2cc;

  /* CI-Farbe Drucksachen (Visitenkarte) */
  --mint: #BFDAD1;
  --mint-light: #d8ebe6;

  /* Neutral */
  --sand: #EEDDCC;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --bg-warm: #faf8f6;
  --border: #e8e0e4;
  --shadow: rgba(102, 51, 102, 0.08);
  --radius: 8px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-warm);
}

a {
  color: var(--pflaume);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo img {
  width: 500px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-doctolib {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0596de;
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-doctolib:hover {
  background: #047ab8;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-doctolib img {
  height: 18px;
  width: auto;
}

.btn-doctolib svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--pflaume);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Navigation --- */
.main-nav {
  border-top: 1px solid var(--border);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.main-nav a, .main-nav span.active {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.main-nav a {
  color: var(--text-light);
}

.main-nav a:hover {
  color: var(--pflaume);
  background: var(--mauve-bg);
}

.main-nav span.active {
  color: var(--pflaume);
  border-bottom: 3px solid var(--pflaume);
  background: var(--mauve-bg);
}

/* Sub-Navigation (Leistungen) */
.sub-nav {
  background: var(--mauve-bg);
  border-bottom: 1px solid var(--border);
}

.sub-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sub-nav a, .sub-nav span.active {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
}

.sub-nav a {
  color: var(--mauve);
}

.sub-nav a:hover {
  color: var(--pflaume);
}

.sub-nav span.active {
  color: var(--pflaume);
  border-bottom: 2px solid var(--pflaume);
}

/* --- Hero / Page Header --- */
.hero {
  background: linear-gradient(to right, var(--pflaume) 0%, rgba(102, 51, 102, 0.6) 30%, rgba(153, 204, 180, 0.4) 70%, rgba(153, 204, 180, 0.7) 100%);
  padding: 50px 24px;
}

.hero-with-image {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 0 0 420px;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.page-header {
  background: var(--mint);
  padding: 40px 24px;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.page-header img {
  width: 320px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--rosa);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text);
  font-size: 16px;
}

.page-header-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.page-header-link {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid var(--mauve);
  color: var(--pflaume);
  transition: background 0.2s, color 0.2s;
}

a.page-header-link:hover {
  background: var(--pflaume);
  color: var(--white);
  border-color: var(--pflaume);
}

.page-header-link.active {
  background: var(--pflaume);
  color: var(--white);
  border-color: var(--pflaume);
  cursor: default;
}

/* --- Main Content --- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

/* --- Teaser Cards (Startseite) --- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.teaser-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(102, 51, 102, 0.14);
  color: inherit;
}

.teaser-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.teaser-card-body {
  padding: 24px;
}

.teaser-card h2 {
  font-size: 20px;
  color: var(--pflaume);
  margin-bottom: 8px;
}

.teaser-card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mauve);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.teaser-card:hover .teaser-link {
  color: var(--pflaume);
}

.teaser-link::after {
  content: "\2192";
  transition: transform 0.2s;
}

.teaser-card:hover .teaser-link::after {
  transform: translateX(4px);
}

/* --- Info Box (Kontakt auf Startseite) --- */
.info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.info-item h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mauve);
  margin-bottom: 8px;
}

.info-item p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.info-item a {
  color: var(--pflaume);
}

/* --- Akkordeon (Leistungen) --- */
.accordion {
  margin-top: 24px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--white);
}

.accordion-item input[type="checkbox"] {
  display: none;
}

.accordion-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--pflaume);
  transition: background 0.2s;
}

.accordion-label:hover {
  background: var(--mauve-bg);
}

.accordion-label::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--mauve);
  transition: transform 0.3s;
}

.accordion-item input[type="checkbox"]:checked + .accordion-label::after {
  content: "\2212";
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item input[type="checkbox"]:checked ~ .accordion-content {
  max-height: 600px;
}

.accordion-content-inner {
  padding: 0 20px 20px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

/* --- Leistungen: Hover-Container (wie Original) --- */
.service-list {
  list-style: none;
  margin-top: 24px;
}

.service-item {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: var(--pflaume);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.service-link::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mauve);
  flex-shrink: 0;
  transition: background 0.2s;
}

.service-link:hover {
  background: var(--mauve-bg);
  color: var(--pflaume-dark);
}

.service-link:hover::before {
  background: var(--pflaume);
}

.service-detail {
  display: none;
  background: var(--sand);
  border: 1px solid var(--gruen);
  border-left: 4px solid var(--rosa);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 0 20px 12px 38px;
  box-shadow: 0 4px 16px var(--shadow);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item:hover .service-detail,
.service-item.active .service-detail {
  display: block;
}

.service-detail p {
  margin-bottom: 8px;
}

.service-detail p:last-child {
  margin-bottom: 0;
}

/* Wrapper fuer Leistungsseite mit Intro */
.service-intro {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--shadow);
}

.service-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.services-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 0;
  box-shadow: 0 4px 20px var(--shadow);
}

/* --- Team Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
}

.team-card-body {
  padding: 20px;
}

.team-card h3 {
  font-size: 17px;
  color: var(--pflaume);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 13px;
  color: var(--mauve);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* --- Sprechstunden Grid --- */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.schedule-grid .content-section {
  margin-bottom: 0;
}

/* --- Tabelle (Sprechstunden) --- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.schedule-table th {
  background: var(--pflaume);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.schedule-table tr:nth-child(even) td {
  background: var(--mauve-bg);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

/* --- Content Sections --- */
.content-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--shadow);
}

.content-section h2 {
  font-size: 22px;
  color: var(--pflaume);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mauve-light);
}

.content-section h3 {
  font-size: 18px;
  color: var(--pflaume);
  margin: 20px 0 8px;
}

.content-section p {
  margin-bottom: 12px;
}

.content-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-section li {
  margin-bottom: 6px;
}

/* --- Footer --- */
.site-footer {
  background: var(--mint);
  color: var(--text);
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--rosa);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  font-size: 14px;
  line-height: 1.8;
}

.footer-col a {
  color: var(--pflaume);
}

.footer-col a:hover {
  color: var(--rosa);
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-legal {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(102, 51, 102, 0.15);
  font-size: 13px;
  text-align: center;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a, .main-nav span.active {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav span.active {
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--pflaume);
  }

  .sub-nav ul {
    flex-direction: column;
  }

  .hero {
    padding: 32px 24px;
    background: linear-gradient(to bottom, var(--pflaume) 0%, var(--pflaume) 35%, var(--mint) 100%);
  }

  .hero-with-image {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .info-box {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-header-inner {
    flex-direction: column;
    text-align: center;
  }

  .page-header img {
    width: 100%;
    max-width: 400px;
  }

  .header-top {
    padding: 12px 0;
  }

  .logo img {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .btn-doctolib span {
    display: none;
  }

  .hero h1 {
    font-size: 20px;
  }

  .teaser-card img {
    height: 160px;
  }
}
