/* ================================================
   DR. MED. STEFANIE SELM – HAUPTSTYLESHEET
   dr-selm.de
   ================================================ */

:root {
  --blue: #2B94FF;
  --dark: #1A1A2E;
  --gray: #666666;
  --light-blue: #E8F4FF;
  --white: #FFFFFF;
  --border: #e5e7eb;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1180px;
  --radius: 10px;
  --transition: 0.2s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: var(--font); line-height: 1.7; color: var(--dark); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { line-height: 1.3; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
p { color: var(--gray); margin-bottom: 1rem; font-size: 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--dark); font-weight: 600; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ---- Section Header ---- */
.section-label {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.section-title { margin-bottom: 0.85rem; }
.section-lead {
  font-size: 1.08rem;
  color: var(--gray);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.8;
}
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: #1a7fe0; border-color: #1a7fe0; color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-white:hover { background: var(--light-blue); }

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo img { width: 44px; height: 44px; }
.logo-name { font-weight: 700; color: var(--dark); font-size: 0.97rem; line-height: 1.2; display: block; }
.logo-sub { font-size: 0.75rem; color: var(--gray); line-height: 1.2; display: block; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-list > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-list > li > a:hover { color: var(--blue); background: var(--light-blue); text-decoration: none; }
.nav-list > li > a.active { color: var(--blue); }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: #1a7fe0 !important; color: var(--white) !important; }

/* Dropdown */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a::after { content: ' ▾'; font-size: 0.75rem; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 250px;
  padding: 0.4rem 0;
  z-index: 200;
}
.nav-item-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown a:hover { background: var(--light-blue); color: var(--blue); text-decoration: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 300;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: var(--transition); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.main-nav {
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 200;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .nav-list > li > a { padding: 1rem 0; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-list > li > a:hover { background: transparent; }
  .nav-item-dropdown > a::after { float: right; }
  .nav-dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--light-blue);
    border-radius: var(--radius);
    margin: 0.5rem 0 1rem;
    padding: 0.25rem 0;
  }
  .nav-dropdown a { padding: 0.65rem 1rem; }
  .nav-cta { margin-left: 0; margin-top: 1.5rem; width: 100%; text-align: center; }
}

/* ---- Hero (Startseite) ---- */
.hero {
  background: linear-gradient(135deg, var(--light-blue) 0%, #f0f8ff 50%, var(--white) 100%);
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.12rem; color: var(--gray); margin-bottom: 2rem; line-height: 1.85; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--gray); margin-top: 1.25rem; margin-bottom: 0; }
.hero-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.16);
}

/* ---- Page Hero (Unterseiten) ---- */
.page-hero { background: var(--light-blue); padding: 3.5rem 0 3rem; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lead { color: var(--gray); font-size: 1.08rem; margin: 0; max-width: 640px; }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--gray);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 0.5rem; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--blue); }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: 0.6rem; }

/* ---- Grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* ---- Checklist ---- */
.check-list { display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--gray); font-size: 0.97rem; }
.check-list li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 0.1em; }

/* ---- Info Box ---- */
.info-box {
  background: var(--light-blue);
  border-left: 4px solid var(--blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.info-box p { color: var(--dark); margin: 0; }

/* ---- Quote ---- */
.blockquote {
  border-left: 4px solid var(--blue);
  padding: 1.5rem 2rem;
  background: var(--light-blue);
  border-radius: 0 12px 12px 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.8;
  margin: 2rem 0;
}
.blockquote cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--gray); margin-top: 0.75rem; }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 2px; background: var(--light-blue); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.42rem;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-year { font-size: 0.82rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.timeline-title { font-weight: 600; color: var(--dark); margin-bottom: 0.2rem; font-size: 1rem; }
.timeline-text { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* ---- FAQ ---- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.faq-q { font-weight: 600; color: var(--dark); margin-bottom: 0.65rem; font-size: 1.02rem; }
.faq-a { color: var(--gray); margin: 0; line-height: 1.75; }

/* ---- Disease / Tag Grid ---- */
.tag-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.tag {
  background: var(--light-blue);
  color: var(--dark);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(43,148,255,0.15);
}

/* ---- Contact ---- */
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--light-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-label { font-size: 0.8rem; color: var(--gray); display: block; margin-bottom: 0.15rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.contact-value { color: var(--dark); font-weight: 500; }

/* ---- Form ---- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 0.45rem; font-size: 0.92rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 148, 255, 0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-group input[type="checkbox"] { width: auto; margin-top: 0.25em; flex-shrink: 0; cursor: pointer; }
.checkbox-group label { font-size: 0.9rem; color: var(--gray); font-weight: 400; margin: 0; cursor: pointer; }
.form-success { background: #d1fae5; border: 1px solid #6ee7b7; border-radius: var(--radius); padding: 1.25rem; color: #065f46; display: none; }

/* ---- Background variants ---- */
.bg-light { background: var(--light-blue); }
.bg-dark { background: var(--dark); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.72); }
.bg-dark .section-label { color: #7ec4ff; }

/* ---- Two-col layout ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col-60 { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }

/* ---- Image gallery ---- */
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.image-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border); margin: 2rem 0; border: none; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; font-weight: 700; }
.footer-col p, .footer-col address { color: rgba(255,255,255,0.6); font-style: normal; font-size: 0.9rem; line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; display: block; margin-bottom: 0.5rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--blue); text-decoration: none; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-logo img { width: 40px; height: 40px; opacity: 0.9; }
.footer-logo span { color: var(--white); font-weight: 700; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.82rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.45); font-size: 0.82rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--blue); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---- Notice Box ---- */
.notice {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #92400e;
  margin: 1.5rem 0;
}

/* ---- Impressum / Legal ---- */
.legal-content h2 { font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-content p, .legal-content li { color: var(--gray); font-size: 0.97rem; margin-bottom: 0.5rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col-60 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { order: -1; }
  .hero-image img { height: 320px; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .image-grid { grid-template-columns: 1fr; }
  .tag-grid { gap: 0.5rem; }
}
