/* ============================================
   BASE SETUP
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
  --primary: #1A96D3;
  --primary-dark: #0d79ad;
  --text: #1f1f1f;
  --text-light: #fff;
  --bg-light: #2c9ad5;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--text);
  background: white;
  letter-spacing: 0.1px;
}



/* ============================================
   GLOBAL ELEMENTS
   ============================================ */

a, a:visited {
  color: var(--primary);
  text-decoration: none;
  transition: 0.15s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

p {
  line-height: 1.6;
  margin: 0 0 1.4rem;
}

h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--text);
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }

/* ============================================
   LAYOUT / STRUCTURE
   ============================================ */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

/* Abstand zwischen Content-Sektionen */
section, .content-block {
  margin-bottom: 3.5rem;
}

html {
  min-height: 100%;
  position: relative;
}

/* Platz nach unten für den Footer, damit er nichts überlappt */
body {
  margin-bottom: 120px; /* ggf. auf 100px/110px anpassen */
}


/* ============================================
   HEADER
   ============================================ */

header {
  padding: 1rem 0;
  text-align: center;
  border-bottom: 4px solid var(--primary);
  margin-bottom: 2.5rem;
}

header img {
  max-width: 240px;
  height: auto;
}

.logo-image {
  height:100px;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  margin-top: 1rem;
}

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

nav ul li {
  display: inline-block;
  margin: 0 0.7rem;
}

nav a {
  font-weight: 400;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav .selected {
  border-color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  text-align: center;
  padding: 0;
  
  color: var(--text);
  font-size: 0.95rem;
  margin-top: 3rem;

  position: absolute;
  bottom: 0;
  width: 100%;
}

.footer-links {
  padding-bottom:1.5rem;
}

.footer-links a {
  color:var(--text);
  margin: 0 20px;
}

/* ============================================
   BUTTONS (falls im Theme vorhanden)
   ============================================ */

button, .btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.15s ease;
}

button:hover, .btn:hover {
  background: var(--primary-dark);
}

/* ============================================
   IMAGES
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ============================================
   HERO-BEREICH (optional, wenn du später ein Bild nutzt)
   ============================================ */
.hero {
  height: 200px;
  margin-bottom: 3rem;

  background-color: #000;
  background-image:
    url('/saarchirurgen/data/files/hero.jpg');

  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: top, bottom, center;
  background-size: contain;
}

.hero.faded {
  opacity:0.7;
}
.hero.fadein {  
  background-image:
    linear-gradient(to bottom, #fff, transparent),
    linear-gradient(to top,   #fff, transparent),
    url('/saarchirurgen/data/files/hero.jpg');
  background-size: 100% 8px, 100% 8px, contain;  
}


/* ============================================
   Jahrestagungs-Karte
   ============================================ */
.subside-content {
  background: #fff;                     /* statt hellblau */
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 680px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 2rem 1.2rem; }
  nav ul li { display: block; margin: 0.6rem 0; }
  
  /* Hero mobil: Bild füllt den Bereich, keine schwarzen Balken */
  .hero {
    background-color: transparent; /* kannst du auch auf transparent setzen, ist mit cover eh unsichtbar */
  }  
}

/* ============================================
   Summernote Editor: Buttons nicht vom Theme übernehmen
   ============================================ */

/* Toolbar-Buttons im Editor sollen wie Bootstrap/Summernote aussehen,
   nicht wie unsere großen Theme-Buttons. */
.note-editor .btn,
.note-toolbar .btn {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.42857143;
  box-shadow: none;
}

/* Hover-Zustand, dezent wie Standard-UI */
.note-editor .btn:hover,
.note-toolbar .btn:hover {
  background-color: #e6e6e6;
  color: #333;
}


/* ============================================
   Dropdown für Unterseiten (nur Desktop)
   ============================================ */
@media (min-width: 681px) {

  .nav > li.subpage-nav {
    position: relative;
  }

  /* Submenü: schlicht wie das Hauptmenü */
  .nav > li.subpage-nav > .subPageDropdown {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 2.2rem;

    /* schlicht statt „Karte“ */
    background: inherit;          /* gleicher Hintergrund wie Menü */
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.4rem 0 0.2rem;
    min-width: 160px;
    z-index: 500;
  }

  /* dünner Trennstrich oben */
  .nav > li.subpage-nav > .subPageDropdown li:first-child {
    border-top: 1px solid #e0e0e0;
    margin-top: 0.1rem;
  }

  .nav > li.subpage-nav > .subPageDropdown li {
    display: block;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  .nav > li.subpage-nav > .subPageDropdown a {
    display: block;
    padding: 0.4rem 0.8rem;
    color: var(--primary);        /* normaler Link */
    font-weight: 300;
    background: transparent;
  }

  .nav > li.subpage-nav > .subPageDropdown a:hover {
    background: var(--bg-light);  /* leicht hinterlegt */
    color: var(--primary-dark);   /* besserer Kontrast */
    text-decoration: none;
  }

  /* Dropdown nur auf Desktop anzeigen */
  .nav > li.subpage-nav:hover > .subPageDropdown {
    display: block;
  }
}

@media (min-width: 681px) {

  /* Entfernt die untere Linie vom Hauptpunkt beim Hover */
  .nav > li.subpage-nav:hover > a,
  .nav > li.subpage-nav > a.selected {
    border-bottom-color: transparent;
  }

  /* Hintergrund und Trennlinie */
  .nav > li.subpage-nav > .subPageDropdown {
    background: #f8f8f8; /* explizit heller Hintergrund */
    border-top: 1px solid #e0e0e0;
  }

  .nav > li.subpage-nav > .subPageDropdown li:first-child {
    border-top: none;
    margin-top: 0;
  }

  .nav > li.subpage-nav > .subPageDropdown li a {
    border-bottom: none; /* entfernt unnötige Unterstreichung */
  }

  .nav > li.subpage-nav > .subPageDropdown a {
    padding: 0.6rem 1rem;
    color: var(--text);              /* dunkler Text */
    background-color: #f8f8f8;       /* konsistenter Hintergrund */
  }

  .nav > li.subpage-nav > .subPageDropdown a:hover {
    background-color: var(--bg-light);
    color: var(--text-light);
  }
}

.kliniken-liste {
    max-width: 800px;
    margin: 0 auto;
}

.klinik {
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
}

.institution {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.institution a {
    color: #2c3e50;
    text-decoration: none;
}

.institution a:hover {
    text-decoration: underline;
}

.department {
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.head {
    font-style: italic;
    margin-bottom: 10px;
}


.address, .contact {
    margin:0; /* Vorher war hier 10px */
    font-size: 0.95em;
}
.contact p {
    margin: 2px 0;
}

.comment {
    background-color: #f9f9f9;
    padding: 10px;
    border-left: 3px solid #ddd;
    font-size: 0.85em;
    color: #555;
}

/* --- Erweiterung für Vorstandsliste --- */

/* Layout für Bild + Text Container */
.vorstand-item {
    display: flex;
    gap: 20px; /* Abstand zwischen Bild und Text */
    align-items: flex-start;
}

/* Bild Styling */
.member-photo img {
    width: 120px;        /* Feste Breite für Einheitlichkeit */
    height: auto;
    border-radius: 4px;  /* Leicht abgerundete Ecken sehen moderner aus */
    object-fit: cover;   /* Verhindert Verzerrung */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Leichter Schatten */
}

/* Text-Bereich nimmt den restlichen Platz ein */
.member-info {
    flex: 1;
}

/* Neue Klasse für die Rolle (z.B. 1. Vorsitzender) */
.role {
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    color: #888;
    font-weight: bold;
    margin-bottom: 0px;
}

.contact p {
    margin: 0;          /* Entfernt den Abstand oben/unten komplett */
    line-height: 1.3;   /* Optional: Sorgt für einen kompakten, aber lesbaren Zeilenabstand */
}


/* Responsive: Auf kleinen Bildschirmen untereinander */
@media (max-width: 600px) {
    .vorstand-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .member-photo img {
        width: 150px;
        margin-bottom: 15px;
    }
}

  /* Minimales Styling für die Controls */
  .klinik-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #f4f4f4;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }

  .klinik-search {
    flex-grow: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
  }

  .klinik-btn-group {
    display: flex;
    gap: 5px;
  }

  .klinik-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
  }

  .klinik-btn:hover {
  }
  
  .hidden-klinik {
    display: none !important;
  }
  
  
  .navbar-toggle {
    
    color:black;
  }