/**
 * Custom Design Improvements
 * Dr. Erwin Schatz - Arztpraxis Website
 * 
 * Dieses CSS enthält moderne Design-Verbesserungen und Polishing
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary-color: #00695C;
  --primary-dark: #004D40;
  --primary-light: #80CBC4;
  --accent-color: #FF6F00;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
}

/* ===== IMPROVED TYPOGRAPHY ===== */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== BUTTON IMPROVEMENTS ===== */
.button,
.w-button {
  transition: all var(--transition-normal);
  border-radius: var(--border-radius) !important;
  position: relative;
  overflow: hidden;
}

.button:hover,
.w-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active,
.w-button:active {
  transform: translateY(0);
}

/* Primary Button Glow Effect */
.button.is-secondary:hover {
  box-shadow: 0 4px 20px rgba(0, 105, 92, 0.4);
}

/* ===== CARD IMPROVEMENTS ===== */
.kontakt_sektion_item,
.leistungen_item,
.team-card {
  transition: all var(--transition-normal);
  border-radius: var(--border-radius-lg);
}

.kontakt_sektion_item:hover,
.leistungen_item:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== LINK IMPROVEMENTS ===== */
.text-style-link {
  position: relative;
  transition: color var(--transition-fast);
}

.text-style-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.text-style-link:hover::after {
  width: 100%;
}

/* ===== IMAGE IMPROVEMENTS ===== */
img {
  transition: transform var(--transition-normal);
}

.uber-uns_team-sektion_image:hover,
.galerie_image:hover {
  transform: scale(1.05);
}

/* ===== NAVBAR IMPROVEMENTS ===== */
.navbar11_component {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar11_link {
  position: relative;
  transition: color var(--transition-fast);
}

.navbar11_link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.navbar11_link:hover::after,
.navbar11_link.w--current::after {
  width: 60%;
}

/* ===== FORM IMPROVEMENTS ===== */
.form_input,
.w-input {
  transition: all var(--transition-fast);
  border-radius: var(--border-radius) !important;
}

.form_input:focus,
.w-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.15) !important;
  outline: none;
}

/* ===== SECTION DIVIDERS ===== */
.section_home-simple-new_statistik-sektion,
.section_kontakt_sektion,
.section_home-simple-new_aktuelles-aus-der-praxis {
  position: relative;
}

/* ===== SCROLL INDICATOR ===== */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== LOADING ANIMATION ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== OPENSTREETMAP STYLING ===== */
#openstreetmap {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: inherit !important;
}

/* ===== NEWS SECTION STYLING ===== */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-item {
  background: white;
  padding: 1.75rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 105, 92, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-left-color: var(--primary-dark);
}

.news-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-item .news-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 105, 92, 0.08);
  border-radius: 50px;
}

.news-item .news-date::before {
  content: '📅';
  font-size: 0.9rem;
}

.news-item > div:last-child {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.news-item > div:last-child p {
  margin: 0;
}

/* Empty News State */
.news-container:empty::after,
.no-news {
  display: block;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
  font-style: italic;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

/* ===== HERO NOTICE / CMS HINWEIS STYLING ===== */
.hero-notice {
  display: none; /* Standardmäßig ausgeblendet, wird per JS eingeblendet */
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%) !important;
  border: 2px solid var(--primary-color) !important;
  border-left: 6px solid var(--primary-dark) !important;
  border-radius: var(--border-radius-lg) !important;
  padding: 1.5rem 2rem !important;
  margin-top: 1.5rem !important;
  box-shadow: 0 4px 15px rgba(0, 105, 92, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-notice::before {
  content: 'ℹ️';
  font-size: 2rem;
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  opacity: 0.25;
}

.hero-notice:empty {
  display: none !important;
}

.hero-notice p {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
  padding-right: 2.5rem;
}

/* Wenn Hinweis angezeigt wird */
.hero-notice[style*="block"] {
  display: block !important;
}

/* ===== HERO SECTION IMPROVEMENTS ===== */
.section_home-simple-new_statistik-sektion {
  background: linear-gradient(180deg, #f8fffe 0%, #ffffff 100%);
  position: relative;
}

.section_home-simple-new_statistik-sektion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
}

.home-simple-new_statistik-sektion_image-wrapper {
  position: relative;
}

.home-simple-new_statistik-sektion_image {
  border-radius: var(--border-radius-lg) !important;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.home-simple-new_statistik-sektion_image:hover {
  transform: scale(1.02);
}

.home-simple-new_statistik-sektion_content-right .heading-style-h2 {
  line-height: 1.2 !important;
}

.home-simple-new_statistik-sektion_content-right .text-span {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== AKTUELLES AUS DER PRAXIS SECTION ===== */
.section_home-simple-new_aktuelles-aus-der-praxis {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
  padding-bottom: 2rem;
}

.section_home-simple-new_aktuelles-aus-der-praxis .heading-style-h2 {
  position: relative;
  display: inline-block;
}

.section_home-simple-new_aktuelles-aus-der-praxis .heading-style-h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ===== TAG IMPROVEMENTS ===== */
.tag {
  border-radius: 50px;
  transition: all var(--transition-fast);
}

.tag:hover {
  transform: scale(1.05);
}

/* ===== FOOTER IMPROVEMENTS ===== */
.footer8_component {
  position: relative;
}

.footer8_link {
  transition: all var(--transition-fast);
}

.footer8_link:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 991px) {
  .button:hover,
  .w-button:hover {
    transform: none;
  }
  
  .kontakt_sektion_item:hover,
  .leistungen_item:hover {
    transform: none;
  }
}

@media (max-width: 767px) {
  #openstreetmap {
    height: 300px !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar11_component,
  .footer8_component,
  #openstreetmap {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* ===== TEAM PLACEHOLDER ===== */
.team-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e0e0e0 100%);
  border-radius: var(--border-radius);
  font-size: 4rem;
  color: #999;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== DARK MODE SUPPORT (Optional) ===== */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode
  :root {
    --bg-light: #1a1a1a;
    --text-dark: #f0f0f0;
    --text-light: #b0b0b0;
  }
  */
}
