/* Copyright Prof. Dr. S. Klessinger 2026

/* =========================================================
   FARBEN
========================================================= */
:root {
  --primary: #2c5f7a;
  --secondary: #6fa3b8;
  --background: #f2f4f6;
  --card: #ffffff;
  --text: #243238;
  --success: #3a7d3a;
}

/* =========================================================
   BASIS
========================================================= */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

h1, h2, h3 {
  color: var(--primary);
  margin-top: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 1rem;
}

/* =========================================================
   Menüleiste
========================================================= */
nav {
  background-color: #f8f8f8;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  padding: 15px 20px;
  color: #333;
}

nav a:hover {
  background-color: #eee;
}

/* Dropdown */
nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .3s ease;
}

nav li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav .secondary {
  display: flex;
  align-items: center;
}

nav .secondary a {
  padding: 15px 10px;
  font-size: .9em;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
}

/* Mobile */
@media (max-width: 768px) {
  nav ul, nav .secondary {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav ul.show, nav .secondary.show {
    display: flex;
  }

  nav li ul {
    position: static;
    border: none;
    display: none;
    opacity: 1;
    transform: none;
  }

  nav li.open > ul {
    display: flex;
    flex-direction: column;
  }

  .burger {
    display: flex;
  }
}

/* =========================================================
   Hero
========================================================= */
.hero {
  background: var(--background);
}

.hero-image {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 24px;
}

/* Bild */
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* dunkler Verlauf für Lesbarkeit */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(36,50,56,0.75),
    rgba(36,50,56,0.15) 60%,
    rgba(36,50,56,0)
  );
}

/* Text */
.hero-text {
  position: absolute;
  left: 2.5rem;
  bottom: 2.5rem;
  color: white;
  z-index: 2;
  max-width: 80%;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
  color: white;
}

.hero-text p {
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.4;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {
  .hero-image {
    border-radius: 0;
    aspect-ratio: 3 / 4;
  }

  .hero-text {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 100%;
  }

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

/* =========================================================
   Container
========================================================= */
.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.card-image {
  padding: 1.25rem 1.25rem 0;
  text-align: center;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
  
.grid-2 img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  justify-self: center;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 > .card {
  align-self: stretch;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.quality-card {
  display: flex;
  flex-direction: column;
  border-left: 6px solid var(--primary);
  padding: 0;
}

.quality-card .card-image {
  padding: 1.25rem 1.25rem 0;
  text-align: center;
}

.quality-card .card-image img {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.quality-card .card-content {
  padding: 1.25rem;
}

.quality-card h3 {
  margin-top: 0;
}

.quality-card .card-image img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.quality-card.green { border-left-color: var(--success); }
.quality-card.blue  { border-left-color: var(--secondary); }
.quality-card.grey  { border-left-color: #515151; }

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: #243238;
  color: white;
  font-size: .9rem;
}

footer a {
  color: #a8d3e4;
}


/* =========================================================
   TEXTE Datenschutz und Impressum, Veröffentlichungen
========================================================= */
.legal {
  line-height: 1.7;
}

.legal p,
.legal li {
  max-width: 75ch;
}

.legal h2 {
  margin-top: 3rem;
}

.legal h3 {
  margin-top: 1.8rem;
}

.legal .source {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #666;
}

/* =========================================================
   Arztseite
========================================================= */

.arzt-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.arzt-header img {
  width: 100%;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .arzt-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .arzt-header img {
    max-width: 200px;
    margin: 0 auto;
  }
}

.schwerpunkte {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.schwerpunkte li::before {
  content: "• ";
  color: var(--secondary);
}

.kontakt {
  font-style: italic;
  margin: 1rem 0;
}

/* Button */
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.button.highlight {
  background: var(--secondary);
  color: white;
}

.button.highlight:hover {
  opacity: 0.9;
}

/* Vita */
.vita {
  padding-left: 1.2rem;
}

.vita li {
  margin-bottom: 0.6rem;
}

/* =========================================================
   Veröffentlichungen
========================================================= */

/* Zurück-Link oben */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--secondary);
}

.back-link:hover {
  text-decoration: underline;
}

/* Publikationsliste */
.publikationen {
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.publikationen li {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* Button unten */
.back-button {
  margin-top: 2rem;
}

/* =========================================================
   Team
========================================================= */

.team-card {
  max-width: 1100px;
}

.team-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.team-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.team-text h2 {
  margin-top: 0;
}

@media (min-width: 768px) {
  .team-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* =========================================================
   Sprechzeiten
========================================================= */

.sprechzeiten-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.tag {
  display: grid;
  grid-template-columns: 160px auto;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--background);
  border-radius: 12px;
}

.wochentag {
  color: var(--primary);
  font-weight: 600;
}

.zeit {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .tag {
    flex-direction: column;
    gap: .25rem;
  }
}

/* =========================================================
   Bildergalerie
========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  background: #fff;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

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

/* =========================================================
   Krankenhaus
========================================================= */

/* Bild im Text */
.content-image {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  margin-top: 1.5rem;
}

/* Adresskarte */
.address-card {
  background: #f9f9f9;
  border-left: 6px solid var(--primary);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-self: flex-start;
}

.address-card h3 {
  margin: 0 0 0.5rem 0;
}

.address-card p {
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

/* Logo */
.clinic-logo {
  width: 200px !important;
  height: auto;
  max-width: none;
  display: block;
}

/* =========================================================
   Praxis
========================================================= */


/* Einleitung */
.intro {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #444;
}

/* Leistungsübersicht */
.service-list {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.service-item {
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}

.service-item h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
}

.service-item p {
  margin: 0;
  line-height: 1.6;
}

/* Bilder */
.image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.image-row img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* =========================================================
   Kontakt
========================================================= */

/* Kontaktbereich */
.contact-box {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

/* Einzelne Kontaktzeile */
.contact-item {
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}

.contact-item h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
}

.contact-item p {
  margin: 0;
  font-size: 1.05rem;
}

/* Telefon hervorheben */
.contact-item.primary {
  border-left-width: 6px;
}

.contact-item.primary a {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Links ruhig halten */
.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* =========================================================
   Anfahrt
========================================================= */

.anfahrt {
  margin-top: 2rem;
}

.anfahrt-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .anfahrt-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: stretch;
  }
}

/* Karte als gleichwertige Kachel */
.map-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* =========================================================
   Downloads
========================================================= */

/* Highlight-Broschüre */
.download-feature {
  margin: 2rem 0;
  border-left: 6px solid var(--primary);
}

.download-feature-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.download-feature img {
  width: 180px;
  max-width: 100%;
  border-radius: 12px;
}

.download-feature-text h2 {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .download-feature-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-feature img {
    margin: 0 auto;
  }
}

.downloads {
  margin-top: 2rem;
}

.download-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 12px;
}

/* Wichtigste Kachel hervorheben */
.download-card.featured {
  border-left: 6px solid var(--primary);
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.download-list li {
  margin-bottom: 0.6rem;
}

.download-list a {
  text-decoration: none;
  font-weight: 500;
}

/* Buttons*/
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.button.secondary {
  background: var(--secondary);
}
