/*-- FILE: style.css (vollständig, original + mobile/touch enhancements) --*/

/* Basis-Reset & Variablen */
:root{
  --max-width:1100px;
  --accent: #0b76d1;
  --muted: #6b7280;
  --bg: #ffffff;
  --card: #f7f7f9;
}

/* ---- Basis ---- */
*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color:#111;
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-text-size-adjust:100%; /* verhindert iOS Zoom bei Textgröße */
}

/* Container */
.container{max-width:var(--max-width);margin:0 auto;padding:1.25rem}

/* Header */
.site-header{background:#fff;border-bottom:1px solid #0056b3}
.site-header .container{display:flex;align-items:center;justify-content:space-between; color: #0056b3}
.brand{font-weight:700;text-decoration:none;color:var(--accent)}
.main-nav a{margin-left:1rem;text-decoration:none;color: #0056b3}
.nav-toggle{display:none;background:none;border:0;font-size:1.25rem; color: #0056b3}
.hero{padding:2rem 0}

/* Hero Grid */
.hero-grid{
  display:grid;
  grid-template-columns: 1fr; /* statt 1fr 420px */
  gap:2rem;
  align-items:center;
}

/* Intro */
.intro {
  padding: 10px 0 20px;
}
.intro-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

/* Two columns */
.two-columns{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 10px 0 24px;
}

@media (max-width: 900px){
  .two-columns{ grid-template-columns: 1fr; }
}

.two-columns .column p { margin: 0 0 12px; }
.two-columns .column ul{
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 16px;
}
.bigger{ font-size: 1.1rem; }

/* Dates */
.dates,
.dates ul,
.dates ol {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dates li {
  list-style-type: none;
  padding: 6px 10px;
  background: #fff3c4;   /* gelblicher Hintergrund */
  color: #ff8c00;        /* orange Schrift */
  border-radius: 6px;
  font-weight: 700;
}

/* App photos */
.app-photos{
  display: grid;
  grid-template-columns: 1fr 1fr; /* links/rechts */
  grid-auto-rows: 1fr;
  gap: 6px;
}

.app-photos img{
  width: 100%;
  height: auto;
  object-fit: contain; 
  display: block;
  border-radius: 6px;
}

/* erstes Bild links oben, quer */
.app-photos a:nth-child(1),
.app-photos img:nth-child(1){
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 16 / 9;
}

/* zweites Bild links unten, quer */
.app-photos a:nth-child(2),
.app-photos img:nth-child(2){
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 16 / 9;
}

/* drittes Bild rechts, quadratisch über beide Reihen */
.app-photos img:nth-child(3){
  grid-column: 2;
  grid-row: 1 / span 2;
  aspect-ratio: 1 / 1;
}

/* Notice */
.notice{ 
  margin: 8px auto 24px;
}
.notice p{ margin: 0 0 10px; }

/* Kontaktbereich */
.contact-section{
  background: #f0f0f0;   /* grau */
  color: #0056b3;        /* blau */
  padding: 36px 0;
}

.contact-section h2{
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 18px;
}

.contact-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px){
  .contact-columns{ grid-template-columns: 1fr; }
}

.dashed{
  border: 0; 
  border-top: 2px dashed #000; /* schwarze, gestrichelte Linie */
  margin: 14px 0;
}

.contact-columns ul{
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 14px;
}

/* Button Abstände */
.contact-columns .cta{ margin-top: 6px; }

/* Hero image/layout */
.hero img{width:100%;height:auto;border-radius:8px;object-fit:cover}
.lead{color:var(--muted)}
.cta{display:inline-block;margin-top:0.75rem;padding:0.6rem 1rem;background:var(--accent);color:#fff;border-radius:6px;text-decoration:none}
.cards{display:flex;gap:1rem;flex-wrap:wrap}
.card{background:var(--card);padding:1rem;border-radius:8px;flex:1;min-width:220px}
.contact-grid{display:flex;gap:1rem}
.contact-grid-full{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
footer.site-footer{border-top:1px solid #0056b3;padding:1rem 0;margin-top:2rem}
.footer-grid{display:flex;justify-content:space-between;align-items:center;color: #0056b3}
.more{margin-top:0.75rem}

/* Responsive rules */
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .nav-toggle{display:block}
  .main-nav{display:none}
  .main-nav.open{display:flex;flex-direction:column;gap:0.5rem;margin-top:0.5rem}
  .contact-grid{flex-direction:column}
  .contact-grid-full{grid-template-columns:1fr}
}

/* Formular */
input,textarea{width:100%;padding:0.5rem;margin-top:0.25rem;margin-bottom:0.75rem;border:1px solid #ddd;border-radius:6px}
button{background:var(--accent);color:#fff;border:none;padding:0.6rem 1rem;border-radius:6px}
.checkbox{display:flex;align-items:center;gap:0.5rem}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3; /* gleiche Höhe für alle Bilder */
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox Overlay */
.lightbox {
  display: none; /* unsichtbar bis aktiviert */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  padding: 10px 20px;
}

.lightbox .close {
  top: 20px;
  right: 30px;
}

.lightbox .prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}






























/* Team-Seite Layout */
.team-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* Team-Seite Layout */
.team-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: center;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 2; /* Quadratisches Bildformat */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.team-member h3 {
  margin-top: 12px;
  font-size: 1.2rem;
}

.vita {
  list-style-type: disc;
  margin: 10px 0 0 20px;
  padding: 0;
  color: #0056b3;
  font-size: 15px;
  line-height: 1.5;
  text-align: left; /* Das sorgt dafür, dass die Liste linksbündig bleibt */
  align-self: flex-start; /* Zwingt die Liste, linksbündig unter dem Bild zu beginnen */
}

.team-group {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-group img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr; /* Ärzte untereinander auf mobilen Geräten */
  }
}




























/* Logo */
.logo {
  height: 80px;
  width: auto;
  display: block;
}

/* Brand block */
.brand {
  display: flex;
  align-items: center;
  gap: 30px;
  text-decoration: none;
  color: inherit;
}

.brand-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Vita */
.vita {
  list-style-type: disc;
  margin: 10px 0 0 20px;
  padding: 0;
  color: #0056b3;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.vita li {
  margin-bottom: 4px;
}

/* Zentrierte Überschriften */
.center-title {
  text-align: center;
  color: #0056b3;
  margin: 40px 0 20px 0;
}

/* Drei Spalten Layout */
.services-section {
  background-color: #fff;
  color: #0056b3;
  padding: 30px 20px;
}

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr;
  gap: 30px;
  align-items: flex-start;
}

/* Vertikaler Strich */
.vertical-line {
  width: 4px;
  background-color: orange;
  align-self: stretch;
}

/* Jede Spalte */
.service-column {
  /* Diese Regel ist hier nicht mehr nötig, da sie durch Grid-Layout ersetzt wird */
}

.service-column h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-column ul {
  list-style-type: disc;
  padding-left: 20px;
}

.service-column ul li {
  margin-bottom: 8px;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}

/* Info section */
.info-section {
  background-color: #f0f0f0;
  color: #0056b3;
  padding: 40px 20px;
}

.center-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Links */
a {
  color: rgb(255, 136, 0);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Main */
main {
  color: #0056b3;
  background: #fff;
}

/* Leistungen page */
.leistungen-section {
  background: #fff;
  color: #004080;
  padding: 40px 20px;
  text-align: center;
}

.leistungen-section h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

/* Hier wurde die Regel von .leistungen-columns entfernt, da .service-columns jetzt alles regelt. */

/* Mobile Fixes (Konsolidierung der doppelten Regeln) */
@media (max-width: 900px) {
  .service-columns {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .service-column {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .vertical-line {
    display: none;
  }

  .leistungen-divider {
    display: none;
  }
}

/* Leistungen-Seite: mobile Fixes */
@media (max-width: 1024px) {
  .leistungen-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .leistungen-divider {
    display: none;
  }
}

.leistungen-column {
  padding: 0 20px;
}

.leistungen-column h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.leistungen-column ul {
  list-style-type: disc;
  margin-left: 20px;
}

.leistungen-divider {
  width: 3px;
  background: orange;
  margin: 0 auto;
}

.leistungen-section-alt {
  background: #f0f0f0;
  color: #004080;
  padding: 40px 20px;
  text-align: center;
}

.leistungen-section-alt h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.leistungen-section-alt p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}
































/* Cookie Banner */
.cc-banner{
  position: fixed; left:0; right:0; bottom:0;
  display:flex; flex-wrap:wrap; gap:14px;
  align-items:center; justify-content:space-between;
  padding:16px 20px; background:#fff; color:#0056b3;
  border-top:2px solid #0056b3; box-shadow:0 -6px 18px rgba(0,0,0,.08);
  z-index:9999;
}
.cc-banner .cc-text a{ color: rgb(255,136,0); text-decoration: underline; }
.cc-actions{ display:flex; gap:8px; margin-left:auto; }
.cc-btn{
  border:none; border-radius:8px; padding:10px 14px; cursor:pointer;
  font-weight:600;
}
.cc-primary{ background:#0056b3; color:#fff; }
.cc-secondary{ background:#eef4ff; color:#0056b3; }
.cc-outline{ background:#fff; color:#0056b3; border:2px solid #0056b3; }
.cc-btn:hover{ opacity:.92; }

/* Modal */
/*
.cc-modal{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center; z-index:10000;
}
*/

.cc-modal{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center; z-index:10000;
  overflow-y: auto;  /* NEU: ermöglicht Scrollen bei langem Inhalt */
  padding: 20px;     /* NEU: Abstand zum Rand */
}

/*
.cc-modal__dialog{
  width:min(680px, 92vw); background:#fff; color:#0056b3;
  border:2px solid #0056b3; border-radius:14px; padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
}
*/
.cc-modal__dialog{
  width:min(540px, 90vw); /* schmaler */
  max-height: 80vh;       /* maximale Höhe */
  overflow-y: auto;       /* falls Inhalt länger ist, scrollt nur innen */
  background:#fff; color:#0056b3;
  border:2px solid #0056b3; border-radius:14px; padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
}




.cc-modal h2{ margin:0 0 6px; font-size:1.5rem; }
.cc-fieldset{ border:1px solid #e5e7eb; border-radius:10px; padding:12px 14px; margin:12px 0; }
.cc-fieldset legend{ font-weight:700; padding:0 6px; }
.cc-help{ margin:6px 0 10px; font-size:.95rem; color:#335f9e; }
.cc-modal__actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:14px; }

/* Toggle-Switch */
.cc-switch{ position:relative; display:inline-block; width:54px; height:30px; }
.cc-switch input{ display:none; }
.cc-slider{
  position:absolute; cursor:pointer; inset:0; background:#d1d5db; border-radius:16px; transition:.2s;
}
.cc-slider:before{
  content:""; position:absolute; height:22px; width:22px; left:4px; top:4px;
  background:#fff; border-radius:50%; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.cc-switch input:checked + .cc-slider{ background: #0056b3; }
.cc-switch input:checked + .cc-slider:before{ transform: translateX(24px); }

/* Reopen link in Footer optional hervorheben */
#cc-reopen{ color: rgb(255,136,0); }
#cc-reopen:hover{ text-decoration: underline; }

/* Mobile cookie banner tweaks */
@media (max-width:700px){
  .cc-banner{ align-items:flex-start; }
  .cc-actions{ width:100%; justify-content:flex-end; flex-wrap:wrap; }
}

/* Divider */
.divider {
  display: inline-block;
  width: 1px;
  height: 1em; /* genau so hoch wie Text */
  background: #ccc;
  margin: 0 0.5rem;
  vertical-align: middle;
}

/* Hide when not needed */
.cc-banner[hidden], .cc-modal[hidden] {
  display: none; /* oder flex/block wie vorher */
  pointer-events: none; /* verhindert Klicks auf versteckte Elemente */
}

/* Kontaktformular Style */
.contact-form {
  background: var(--card);   /* hellgrauer Kasten */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.contact-form h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--accent);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #0056b3;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11,118,209,0.15);
}

.contact-form .checkbox {
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-form .checkbox input {
  margin-top: 0.2rem;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #094f9b;
}

/* Datenschutz-Tabelle optimiert */
.table-scroll { 
  overflow-x: auto; 
  margin: 16px 0 24px; 
  background: #f8f9fa; /* hellgrauer Hintergrundblock */
  padding: 12px;
  border-radius: 8px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.policy-table th,
.policy-table td {
  padding: 12px 14px;
  border: 1px solid #ccc;
  vertical-align: top;
  text-align: left;
  line-height: 1.6;
}

.policy-table thead th {
  background: #0056b3; /* kräftiges Blau für Header */
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.policy-table tbody tr:nth-child(odd) {
  background: #f2f5f8; /* leichtes Zebra-Muster */
}

.policy-table tbody tr:hover {
  background: #e9f1fb; /* Hover-Effekt */
}

@media (max-width: 720px) {
  .policy-table th, 
  .policy-table td { 
    font-size: 0.95rem; 
    padding: 8px 10px; 
  }
}

/* Map */
.map-section {
  background: #f9f9f9;
  padding: 40px 0;
  text-align: center;
}

.map-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 100%;
}

.map-wrapper iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: 2px solid #0056b3;
  border-radius: 8px;
}

/* End of original CSS area */


/* =========================
   ENHANCEMENTS (nicht destruktiv)
   - Alle Ergänzungen sind so gestaltet, dass das Desktop-Design
     unangetastet bleibt. Änderungen greifen primär in Media-Queries
     oder sind minimale Accessibility / Touch-Verbesserungen.
   - Kommentare markieren "ADDED" für schnelle Orientierung.
   ========================= */

/* Basis-Fixes / Accessibility (ADDED) */
html { font-size: 16px; } /* Grundgröße für konsistente Rem-Berechnung */
body { line-height: 1.45; } /* lesefreundlicher */
img, svg { max-width:100%; height:auto; display:block; } /* global responsive images */

/* Fokus-Styles (ADDED) */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid rgba(11,118,209,0.15);
  outline-offset: 2px;
  -webkit-outline-offset: 2px;
}

/* Touch-optimierte Buttons (ADDED) */
button, .cta, .cc-btn {
  min-height: 44px;             /* Fingerfreundlichkeit */
  padding: .6rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cookie-Banner: safe-area support (ADDED) */
.cc-banner {
  padding: calc(16px + env(safe-area-inset-bottom)) 20px 16px;
}

/* Header: mobile wrapping improvements (ADDED) */
.site-header .container { gap:12px; }

/* Nav toggle styling (ADDED) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #0056b3;
  font-size: 1.5rem;
  line-height:1;
  padding: 8px;
}

/* Main nav touch area (ADDED) */
.main-nav a {
  padding: 8px 6px;
  border-radius:6px;
}
.main-nav a:active { background: rgba(11,118,209,0.04); }

/* Ensure .brand image + text stack nicely on small screens (ADDED) */
.brand img { display:block; height:80px; width:auto; }
@media (max-width: 700px) {
  .brand { gap:12px; align-items:flex-start; }
  .brand-text { display:block; }
  .brand-text p { font-size:13px; line-height:1.3; }
}

/* Improve layout for small screens: global breakpoint rules (ADDED) */
@media (max-width: 900px) {
  /* Nav */
  .nav-toggle { display:block; }
  .main-nav { display:none; }
  .main-nav.open { display:flex; flex-direction:column; gap:.5rem; padding: .5rem 0; background:#fff; width:100%; }
  /* Header spacing */
  .site-header .container { padding: .5rem 1rem; }
  /* Adjust hero spacing */
  .hero { padding: 1rem 0; }
  /* Date-pill sizing */
  .dates li { padding: 8px 12px; font-size: .95rem; }
  /* Footer grid wraps */
  .footer-grid { flex-direction:column; gap:8px; align-items:flex-start; }
}

/* Enhance spacing and sizing on phones (ADDED) */
@media (max-width: 480px) {
  .container { padding: .75rem; }
  .intro-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .hero { padding: .75rem 0; }
  .contact-section { padding: 20px 0; }
  .contact-columns { gap: 18px; }
  .cta, button, .cc-btn { padding: .6rem .9rem; font-size: 1rem; min-height:44px; }
  .logo { height: 64px; }
  .policy-table th, .policy-table td { font-size: .95rem; padding: 8px; }
  .map-wrapper iframe { height: 300px; }
}

/* Improve table contrast for small screens (ADDED) */
.policy-table thead th { letter-spacing: .02em; font-size: .95rem; }

/* Ensure cookie modal fits on small screens (ADDED) */
@media (max-width: 420px) {
  .cc-modal__dialog { width: calc(100vw - 24px); padding: 12px; border-radius:10px; }
  .cc-modal__actions { flex-direction: column; gap: 8px; }
  .cc-modal__actions button { width:100%; }
}

/* Buttons in form full width on small (ADDED) */
@media (max-width: 520px) {
  .contact-form button, .contact-columns .cta { width: 100%; }
}

/* Gallery: smaller gaps on very small screens (ADDED) */
@media (max-width: 420px) {
  .gallery { gap:8px; grid-template-columns: repeat(2, 1fr); }
}

/* Accessibility: increase focus ring visibility (ADDED) */
:focus { outline-color: rgba(11,118,209,0.25); }

/* Minor visual polish: subtle card hover (ADDED) */
.card:hover { transform: translateY(-3px); transition: transform .18s ease; }

/* Preserve original color tokens (safety) - no color drift (ADDED) */
:root {
  --primary-blue: #0056b3;
  --accent-orange: rgb(255,136,0);
}

/* Use primary tokens where suitable (non-destructive) */
.site-header { border-bottom-color: var(--primary-blue); }
.footer-grid { color: var(--primary-blue); }
a { color: var(--accent-orange); }

/* Final: ensure no layout element has unintended overflow on mobile (ADDED) */
html, body { overflow-x: hidden; }

/* END OF ENHANCEMENTS */






