/* === Modern responsive styles for lerndidaktiker.net === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --layout-max-width: 1100px;
  --content-max-width: 1100px;
  --layout-padding-desktop: 20px;
  --layout-padding-mobile: 12px;
  --color-primary: #ea812b;
  --color-primary-dark: #c86a24;
  --color-primary-light: #eef0f8;
  --color-accent: #2e9abe;
  --color-accent-hover: #247d9b;
  --color-bg: #f0f2f5;
  --color-surface: #ffffff;
  --color-border: #e0e4e8;
  --color-text: #2c3e50;
  --color-text-muted: #7f8c9b;
  --color-text-light: #95a1ad;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Fixed width wrapper --- */

.container-fluid {
  width: var(--layout-max-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--layout-padding-desktop);
}

footer.footer .container {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
}

/* --- Header / Logo --- */

#header {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-surface);
  border-bottom: none;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

#header img.logo-img {
  max-width: 100%;
  height: auto;
  /* max-height: 120px; removed to show full size */
  transition: transform 0.2s;
}

#header img.logo-img:hover {
  transform: scale(1.02);
}

/* --- Store Finder --- */

#clinic-finder {
  position: relative;
  background: var(--color-surface);
  padding: 0;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* --- Search Form --- */

#clinic-finder-form {
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, #ea812b 0%, #d0712a 50%, #b86125 100%);
  color: #fff;
  margin-bottom: 0;
}

#clinic-finder-form label {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

#clinic-finder-form input#address {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#clinic-finder-form input#address:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

#clinic-finder-form #edit-submit {
  margin-top: 10px;
  padding: 12px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  background: linear-gradient(135deg, #fff 0%, #f0f4f8 100%);
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
  float: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

#clinic-finder-form #edit-submit:hover {
  background: linear-gradient(135deg, #f0f4f8 0%, #e4eaf0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

#clinic-finder-form #edit-submit:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* --- Map & Results Layout --- */

.finder-content {
  display: flex;
  flex-wrap: wrap;
  min-height: 520px;
}

#map_canvas {
  flex: 1 1 65%;
  min-height: 520px;
  border: none;
  float: none;
  width: auto;
  height: auto;
}

#results {
  flex: 1 1 35%;
  min-width: 280px;
  max-width: 100%;
  padding: 0;
  display: block;
  float: none;
  width: auto;
  min-height: auto;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
}

#results h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-primary-light);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

#results ol {
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: 465px;
  list-style: none;
}

/* Custom scrollbar */
#results ol::-webkit-scrollbar {
  width: 6px;
}
#results ol::-webkit-scrollbar-track {
  background: #f5f5f5;
}
#results ol::-webkit-scrollbar-thumb {
  background: #c0c8d0;
}
#results ol::-webkit-scrollbar-thumb:hover {
  background: #a0a8b0;
}

#results ol li {
  padding: 14px 14px 14px 52px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
  list-style: none;
  background: url(../img/list-icon.png) no-repeat 12px 14px;
}

#results ol li:last-child {
  border-bottom: none;
}

#results ol li:hover {
  background-color: var(--color-primary-light);
}

#results ol li.active {
  background-color: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  padding-left: 49px;
}

#results ol li span.number {
  font-size: 15px;
  display: block;
  position: absolute;
  top: 16px;
  left: 22px;
  color: #fff;
  font-weight: 700;
}

#results ol li.double-digit span.number {
  left: 17px;
  font-size: 13px;
}

#results ol li .distance {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

#results ol li strong {
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

#results ol li span {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

#results ol li .products {
  position: absolute;
  bottom: 8px;
  right: 10px;
}

/* --- Direction Panel --- */

#direction {
  display: none;
  flex: 1 1 35%;
  min-width: 280px;
  padding: 18px;
  overflow-y: auto;
  max-height: 520px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
}

#direction input.orides-txt {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}

#direction input.orides-txt:focus {
  outline: none;
  border-color: var(--color-accent);
}

#direction .get-dir-button {
  margin-top: 12px;
}

#direction .get-dir-button input {
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
}

#direction table {
  width: 100%;
  border-collapse: collapse;
}

#direction table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

/* --- Info Section --- */

.info-section {
  width: 1100px;
  max-width: 100%;
  margin: 24px auto;
  padding: 36px 40px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  line-height: 1.8;
  color: #5a6577;
}

.info-section h6 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

.info-section a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.info-section a:hover {
  border-bottom-color: var(--color-primary);
}

/* --- Map Info Window / Popup --- */

.maps_popup {
  width: 320px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.maps_popup h1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 6px 0;
  padding: 0;
}

.maps_popup h2 {
  font-size: 14px;
  margin: 0 0 6px 0;
  padding: 0;
}

.maps_popup .img {
  float: right;
  padding: 3px;
  border: 1px solid #e0e4e8;
  margin: 0 0 8px 10px;
  background: #fff;
  max-width: 80px;
  height: auto;
}

.maps_popup p {
  margin: 6px 0;
}

/* --- Footer --- */

footer.footer {
  margin-top: 40px;
  padding: 0;
  background: transparent;
}

footer.footer .footer-wrapper {
  width: var(--content-max-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--layout-padding-desktop);
}

footer.footer .footer-content {
  background: linear-gradient(135deg, #ea812b 0%, #d0712a 50%, #b86125 100%);
  padding: 32px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

footer.footer .footer-text {
  color: rgba(255,255,255,0.95);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.6;
}

footer.footer .footer-text a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s ease;
}

footer.footer .footer-text a:hover {
  border-bottom-color: #fff;
}

footer.footer .footer-text abbr {
  text-decoration: none;
  border-bottom: none;
}

footer.footer .org-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

footer.footer .org-logos a img {
  height: 50px;
  width: auto;
  opacity: 0.85;
  transition: all 0.3s ease;
}

footer.footer .org-logos a img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* --- Responsive --- */

@media (max-width: 991px) {
  .finder-content {
    flex-direction: column;
  }

  #map_canvas {
    min-height: 380px;
    flex: 1 1 auto;
  }

  #results {
    flex: 1 1 auto;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  #results ol {
    max-height: 320px;
  }

  #direction {
    flex: 1 1 auto;
    border-left: none;
    border-top: 1px solid var(--color-border);
    max-height: 400px;
  }

  footer.footer .footer-content {
    padding: 28px 24px;
  }

  footer.footer .org-logos {
    gap: 20px;
  }

  footer.footer .org-logos a img {
    height: 44px;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding: 0 var(--layout-padding-mobile);
  }

  #header {
    padding: 16px 12px;
    margin-bottom: 12px;
  }

  #header img.logo-img {
    /* max-height removed to show full size */
  }

  #clinic-finder-form {
    padding: 18px 16px 16px;
  }

  #clinic-finder-form label {
    font-size: 12px;
  }

  #clinic-finder-form input#address {
    font-size: 15px;
    padding: 10px 12px;
  }

  #clinic-finder-form #edit-submit {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
  }

  #map_canvas {
    min-height: 280px;
  }

  #results h3 {
    padding: 12px 14px;
    font-size: 13px;
  }

  #results ol li {
    padding: 12px 10px 12px 46px;
    font-size: 13px;
  }

  #results ol li strong {
    font-size: 13px;
  }

  .info-section {
    margin: 12px 0;
    padding: 24px 18px;
    font-size: 14px;
  }

  .maps_popup {
    width: 260px;
    font-size: 13px;
  }

  footer.footer {
    margin-top: 20px;
  }

  footer.footer .footer-wrapper {
    padding: 0 var(--layout-padding-mobile);
  }

  footer.footer .footer-content {
    padding: 24px 18px;
  }

  footer.footer .footer-text {
    font-size: 13px;
    margin-bottom: 18px;
  }

  footer.footer .org-logos {
    gap: 16px;
  }

  footer.footer .org-logos a img {
    height: 38px;
  }
}

/* --- Misc / Overrides --- */

.clear-block::after {
  content: "";
  display: table;
  clear: both;
}

#wrapper2 { display: none; }

.alert-error { }
.flash_good { color: #198754; font-weight: 600; }

/* Google Maps InfoWindow — remove rounded corners */
.gm-style-iw,
.gm-style-iw-c,
.gm-style-iw-d,
.gm-style-iw-t,
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-tc,
.gm-style .gm-style-iw-tc::after {
  border-radius: 0 !important;
}

.gm-style-iw-chr button {
  border-radius: 0 !important;
}

/* All images — no rounded corners anywhere */
img,
.maps_popup img,
.maps_popup .img {
  border-radius: 0 !important;
}

/* Google Maps autocomplete dropdown */
.pac-container {
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  border-radius: 0;
}

.pac-item {
  padding: 8px 14px;
  font-size: 14px;
  border-bottom: 1px solid #f0f2f5;
}

.pac-item:hover {
  background: var(--color-primary-light);
}

/* === Info Section Redesign === */

.info-section {
  width: 100%;
  max-width: none;
  margin: 40px 0;
  padding: 0 var(--layout-padding-desktop);
  font-family: 'Inter', sans-serif;
}

.info-hero {
  text-align: center;
  padding: 40px 20px 30px;
}

.info-hero h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px;
}

.info-hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  max-width: 720px;
  margin: 0 auto 12px;
}

.leistungen-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ea812b;
  margin: 10px 0 24px;
  letter-spacing: 0.3px;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.leistung-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.leistung-card:hover {
  border-color: #ea812b;
  box-shadow: 0 4px 16px rgba(234,129,43,0.12);
  transform: translateY(-2px);
}

.leistung-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.leistung-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px;
}

.leistung-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.cta-text {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ea812b;
  margin: 0 0 6px;
}

.update-text {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
  margin: 0 0 36px;
}

.sister-sites {
  background: linear-gradient(135deg, #fdf6ef 0%, #fef9f4 100%);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.sister-sites h4 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 18px;
}

.sister-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.sister-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #e8e8e8;
  transition: all 0.25s ease;
}

.sister-link:hover {
  border-color: #ea812b;
  box-shadow: 0 4px 12px rgba(234,129,43,0.1);
  transform: translateY(-2px);
}

.sister-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #2c3e50;
  margin-bottom: 4px;
}

.sister-url {
  font-size: 0.8rem;
  color: #ea812b;
}

@media (max-width: 768px) {
  .leistungen-grid {
    grid-template-columns: 1fr;
  }
  .sister-links {
    grid-template-columns: 1fr;
  }
  .info-hero h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 400px) {
  footer.footer .footer-content {
    padding: 20px 14px;
  }

  footer.footer .footer-text {
    font-size: 12px;
    line-height: 1.5;
  }

  footer.footer .org-logos {
    gap: 12px;
  }

  footer.footer .org-logos a img {
    height: 32px;
  }
}

/* FAQ Section */
.info-section .faq-list {
  
  margin-top: 30px;
  
}
.info-section h3.faq-title {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 25px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::before {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: #c67a2e;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.faq-item[open] summary::before {
  content: "\2212";
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  padding: 0 20px 16px 52px;
  margin: 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .info-section .faq-list {
    margin: 25px auto;
  }
  .faq-item summary {
    font-size: 0.9rem;
    padding: 14px 16px;
  }
  .faq-item p {
    padding: 0 16px 14px 44px;
    font-size: 0.85rem;
  }
}

/* Fernstudium Link */
.fernstudium-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95rem;
  color: #5a6577;
}
.fernstudium-link a {
  color: #c67a2e;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(198,122,46,0.3);
  transition: border-color 0.2s;
}
.fernstudium-link a:hover {
  border-bottom-color: #c67a2e;
}

/* Impressum/Datenschutz Footer Links */
.footer-legal {
  margin: 8px 0 12px;
  font-size: 0.85rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.5);
}

/* Visually hidden but accessible + SEO */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
