/* ==========================================================================
   Education for Bondali - Static Site Styles
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #464646;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: #00a9ff;
  transition: color 0.3s ease;
}

a:hover {
  color: #0088cc;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
  color: #030303;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p {
  margin-bottom: 15px;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

/* ---------- Layout ---------- */
.boxed-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- Header ---------- */
#page-header {
  position: relative;
  background: #000;
}

.header-banner {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
}

.header-logo {
  display: inline-block;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.header-logo img {
  max-width: 120px;
  display: block;
  border-radius: 50%;
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #030303;
  margin-top: 10px;
}

.site-title a {
  color: #030303;
}

.site-title a:hover {
  color: #00a9ff;
}

/* ---------- Navigation ---------- */
#main-nav {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#main-nav .boxed-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

#main-menu li {
  position: relative;
}

#main-menu li a {
  display: block;
  padding: 18px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  transition: color 0.3s ease;
}

#main-menu li a:hover,
#main-menu li a.active {
  color: #00a9ff;
}

/* Language Switcher */
.lang-switch {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.lang-switch a {
  color: #888;
  transition: color 0.3s ease;
}

.lang-switch a:hover {
  color: #00a9ff;
}

.lang-active {
  color: #00a9ff;
  font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 15px 0;
  color: #000;
}

/* ---------- Featured Slider ---------- */
.featured-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.slider-item {
  position: relative;
  display: block;
}

.slider-item img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  text-align: center;
}

.slider-overlay .category-tag {
  display: inline-block;
  background: #00a9ff;
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.slider-overlay h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 15px;
}

.slider-overlay h2 a {
  color: #fff;
}

.slider-overlay h2 a:hover {
  opacity: 0.8;
}

.slider-overlay .read-more-btn {
  display: inline-block;
  padding: 8px 25px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.slider-overlay .read-more-btn:hover {
  background: #fff;
  color: #333;
}

/* ---------- Page Content ---------- */
.page-content {
  padding: 40px 0;
}

.content-area {
  display: flex;
  gap: 40px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* ---------- Blog Grid ---------- */
.blog-post {
  margin-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 40px;
}

.blog-post:last-child {
  border-bottom: none;
}

.post-thumbnail {
  margin-bottom: 20px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  transition: transform 0.5s ease;
}

.post-thumbnail:hover img {
  transform: scale(1.03);
}

.post-header {
  text-align: center;
  margin-bottom: 20px;
}

.post-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00a9ff;
  margin-bottom: 10px;
}

.post-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.post-title a {
  color: #030303;
}

.post-title a:hover {
  color: #00a9ff;
}

.post-meta {
  font-size: 12px;
  color: #a1a1a1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-meta span + span::before {
  content: " | ";
}

.post-excerpt {
  text-align: center;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  padding: 8px 25px;
  background: #333333;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: #00a9ff;
  color: #ffffff;
}

/* ---------- About Section (Homepage) ---------- */
.about-section {
  padding: 50px 0;
  text-align: center;
}

.about-section h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 15px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 270px;
  flex-shrink: 0;
}

.widget {
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid #e8e8e8;
}

.widget:last-child {
  border-bottom: none;
}

.widget-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #030303;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

/* Newsletter Widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e8e8e8;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus {
  border-color: #00a9ff;
}

.newsletter-form button {
  padding: 10px 20px;
  background: #333333;
  color: #ffffff;
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #00a9ff;
}
.newsletter-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-message {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.form-message.success {
  color: #28a745;
}
.form-message.error {
  color: #dc3545;
}

/* Spenden Widget */
.spenden-info {
  font-size: 14px;
  line-height: 1.8;
}

.spenden-info p {
  margin-bottom: 8px;
}

.spenden-info strong {
  font-weight: 600;
  color: #030303;
}

/* Social Widget */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f6f6f6;
  color: #464646;
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #00a9ff;
  color: #fff;
}

/* Partner Widget */
.partner-logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.partner-logos a img {
  max-height: 60px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.partner-logos a:hover img {
  opacity: 1;
}

/* Zertifikate Widget */
.zertifikate-link img {
  max-width: 150px;
  border: 1px solid #e8e8e8;
  padding: 5px;
  transition: border-color 0.3s;
}

.zertifikate-link:hover img {
  border-color: #00a9ff;
}

/* ---------- Single Post ---------- */
.single-post-content {
  max-width: 800px;
}

.single-post-content .post-header {
  margin-bottom: 30px;
}

.single-post-content .post-title {
  font-size: 28px;
}

.single-post-content .post-body {
  margin-bottom: 30px;
}

.single-post-content .post-body p {
  margin-bottom: 18px;
  line-height: 1.8;
}

.single-post-content .post-body img {
  margin: 20px auto;
  max-width: 100%;
}

/* Share Buttons */
.post-share {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f6f6f6;
  color: #464646;
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s;
}

.post-share a:hover {
  background: #00a9ff;
  color: #fff;
}

/* Related Posts */
.related-posts {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e8e8e8;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 16px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.related-post-item {
  text-align: center;
}

.related-post-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.related-post-item h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.related-post-item h5 a {
  color: #030303;
}

.related-post-item h5 a:hover {
  color: #00a9ff;
}

.related-post-item .date {
  font-size: 12px;
  color: #a1a1a1;
}

/* ---------- Footer ---------- */
#page-footer {
  border-top: 1px solid #e8e8e8;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0;
}

.footer-widget .widget-title {
  font-size: 14px;
}

.footer-copyright {
  background: #f6f6f6;
  padding: 20px 0;
  text-align: center;
}

.footer-copyright-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo img {
  max-height: 50px;
}

.copyright-info {
  font-size: 13px;
  color: #a1a1a1;
}

/* Scroll to Top */
.scrolltop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a1a1a1;
  transition: color 0.3s;
  background: none;
  border: none;
  font-family: 'Open Sans', sans-serif;
}

.scrolltop:hover {
  color: #00a9ff;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 15px 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner a {
  color: #00a9ff;
}

.cookie-btn {
  padding: 8px 20px;
  background: #00a9ff;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-btn:hover {
  background: #0088cc;
}

/* ---------- Pages (Datenschutz etc.) ---------- */
.page-content-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content-text h1 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.page-content-text h2 {
  font-size: 20px;
  margin: 30px 0 15px;
}

.page-content-text h3 {
  font-size: 16px;
  margin: 25px 0 10px;
}

.page-content-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ---------- Footer Menu ---------- */
.footer-menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-menu a {
  font-size: 12px;
  color: #a1a1a1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-menu a:hover {
  color: #00a9ff;
}

/* ---------- Responsive ---------- */
@media (max-width: 979px) {
  .content-area {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .related-posts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .slider-item img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  #main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  #main-menu.open {
    display: flex;
  }

  #main-nav .boxed-wrapper {
    flex-direction: column;
  }

  .lang-switch {
    position: static;
    transform: none;
    padding: 10px 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .slider-item img {
    height: 250px;
  }

  .slider-overlay h2 {
    font-size: 18px;
  }

  .post-title {
    font-size: 18px;
  }

  .single-post-content .post-title {
    font-size: 22px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-copyright-inner {
    flex-direction: column;
    text-align: center;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
}
