/* ============================================
   Common CSS - Babykurse Oldenburg
   Navigation, Header, Footer, Grid, Kontakt
   ============================================ */

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background-color: #f8f5f2;
  color: #333;
  font-size: 18px;
  padding-top: 80px; /* Platz für sticky Header */
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #4a2d8b;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff7a7a;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: #4a2d8b;
  margin-top: 40px;
}

ul {
  list-style: disc;
  margin-left: 1.5em;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  width: 100%;
}

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

.logo a {
  font-size: 1.5em;
  font-weight: bold;
  color: #4a2d8b;
  text-decoration: none;
}

.logo a:hover {
  text-decoration: none;
  color: #4a2d8b;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2em;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: #4a2d8b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5em 0;
  position: relative;
}

.nav-menu a:hover {
  color: #ff7a7a;
  text-decoration: none;
}

.nav-menu a.active {
  color: #ff7a7a;
  border-bottom: 2px solid #ff7a7a;
}

.cta-nav-button {
  color: #4a2d8b;
  padding: 0.5em 0;
  font-weight: 600;
}

.cta-nav-button:hover {
  color: #ff7a7a;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  background: none;
  border: none;
  color: #4a2d8b;
  padding: 0.5em;
  line-height: 1;
}

.mobile-menu-toggle:focus {
  outline: 2px solid #4a2d8b;
  outline-offset: 2px;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 2em 2em 3em 2em;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 300px);
}

/* ===== FOOTER ===== */
footer {
  background-color: #ff9e9e;
  color: #fff;
  text-align: center;
  padding: 2em 0 3em 0;
  margin-top: 4em;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #fff;
  text-decoration: none;
}

footer p {
  margin: 0.5em 0;
}

/* ===== GRID SYSTEM ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== UTILITY CLASSES ===== */
.box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 2em;
  margin-bottom: 2em;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2em;
}

.mb-2 {
  margin-bottom: 2em;
}

/* ===== CONTACT BAR (Desktop) - ENTFERNT ===== */
.contact-bar {
  display: none;
}

/* ===== SCHWEBENDE RAND-ICONS (Desktop) ===== */
.contact-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding-right: 0;
}

.contact-sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-sidebar-item a {
  display: flex;
  align-items: center;
  gap: 0.8em;
  background-color: rgba(255, 255, 255, 0.95);
  color: #4a2d8b;
  text-decoration: none;
  font-weight: 500;
  padding: 0.8em 1.2em 0.8em 0.8em;
  border-radius: 30px 0 0 30px;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(calc(100% - 60px));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-right: 2px solid #ff9e9e;
  min-width: 60px;
}

.contact-sidebar-item a:hover {
  transform: translateX(0);
  background-color: #ffffff;
  color: #ff7a7a;
  text-decoration: none;
  box-shadow: -4px 4px 15px rgba(0,0,0,0.2);
}

.contact-sidebar-icon {
  font-size: 1.5em;
  min-width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.contact-sidebar-text {
  white-space: nowrap;
  font-size: 0.95em;
  padding-right: 0.5em;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.contact-sidebar-item a:hover .contact-sidebar-text {
  opacity: 1;
}

/* ===== CONTACT FLOATING (Mobile) ===== */
.contact-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.contact-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #4a2d8b;
  color: white;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-toggle:hover,
.contact-toggle.active {
  background-color: #3e2376;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.contact-toggle:focus {
  outline: 3px solid #ff7a7a;
  outline-offset: 3px;
}

.contact-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.contact-floating.active .contact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-btn {
  background-color: white;
  color: #4a2d8b;
  padding: 0.8em 1.2em;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #f8f5f2;
  color: #ff7a7a;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet */
@media screen and (max-width: 1024px) {
  .nav-menu {
    gap: 1.5em;
  }
  
  .contact-bar {
    gap: 1.5em;
    padding: 1em;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .main-nav {
    padding: 1em;
  }
  
  .logo a {
    font-size: 1.2em;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  .nav-menu.active {
    max-height: 500px;
    padding: 1em;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #f8f5f2;
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu a {
    display: block;
    padding: 1em;
    width: 100%;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  main {
    padding: 1em;
  }
  
  .box {
    padding: 1.5em;
  }
  
  .contact-bar {
    display: none;
  }
  
  .contact-floating {
    display: block;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  footer {
    padding: 1.5em 0 2.5em 0;
    margin-bottom: 100px; /* Platz für Mobile Kontakt-Buttons */
  }
}

/* Small Mobile */
@media screen and (max-width: 600px) {
  body {
    font-size: 16px;
  }
  
  .contact-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.3em;
    bottom: 15px;
    right: 15px;
  }
  
  .contact-options {
    bottom: 65px;
  }
  
  .contact-btn {
    font-size: 0.9em;
    padding: 0.6em 1em;
  }
}

/* Desktop only */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  .contact-sidebar {
    display: none;
  }
}

