/*
Theme Name: Lichtblick
Theme URI: https://ghs-lichtblick.de
Author: Konstantin Kissler
Author URI: https://ghs-lichtblick.de
Description: Custom Theme für Lichtblick
Version: 1.0
Text Domain: lichtblick
Domain Path: /languages
*/

/* === BASE & RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #FFF8F0;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito Sans', sans-serif;
  color: #2E2E2E;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* === CONTAINER === */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* === ACCESSIBILITY === */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* === HEADER === */
.site-header {
  background: transparent;
  padding: 1rem 0;
  position: relative;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

/* === NAVIGATION === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

.main-navigation ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #D17C49;
  outline: none;
}

/* === PAGE TITLE VERSTECKEN === */
.page-header,
.page-title {
  display: none !important;
}

.home .page-header,
.home .page-title {
  display: none !important;
}

/* === HERO SECTION === */
.hero {
  background: #E8F6F3;
  border-radius: 12px;
  padding: 3rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.hero-text {
  flex: 1 1 300px;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
  color: #555;
}

.hero-text .btn {
  background: #D17C49;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease;
}

.hero-text .btn:hover {
  background: #B86A3E;
}

.hero-img {
  flex: 1 1 300px;
}

.hero-img img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

/* === SECTION TITLES === */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2E2E2E;
}

/* === WER WIR SIND SECTION === */
.about-section {
  margin: 3rem 0;
}

.about-content {
  background: #E8F6F3;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-text {
  flex: 1 1 300px;
}

.about-text p {
  color: #555;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 80%;
  border-radius: 8px;
}

.offer-callout {
  flex: 1 1 300px;
  background: #FFFBF7;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-callout h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.offer-callout p {
  font-size: 0.9rem;
  color: #555;
}

/* === ANGEBOT SECTION === */
.offer-section {
  margin: 3rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: #FFFFFF;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #2E2E2E;
  font-size: 1.2rem;
}

.card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* === TAGESABLAUF & AKTUELLES === */
.schedule-news-section {
  margin: 3rem 0;
}

.schedule-news {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.schedule {
  flex: 1 1 300px;
  background: #FFF1C2;
  padding: 2rem;
  border-radius: 12px;
}

.schedule h3 {
  margin-bottom: 1.5rem;
}

.time-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.time-item:last-child {
  margin-bottom: 0;
}

.time-item .clock {
  font-size: 1.4rem;
  margin-right: 1rem;
}

.news {
  flex: 1 1 300px;
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.news h3 {
  margin-bottom: 1.5rem;
}

.news-item {
  margin-bottom: 1rem;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.news-item .date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.news-item p {
  font-size: 0.85rem;
  color: #555;
}

/* === KONTAKT SECTION === */
.contact-section {
  margin: 3rem 0;
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.contact-section h3 {
  margin-bottom: 1rem;
}

.contact-section p {
  color: #555;
  margin-bottom: 0.5rem;
}

/* === FOOTER === */
.site-footer {
  background: #2E2E2E;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #D17C49;
}

/* === WORDPRESS BLOCK OVERRIDES === */
.wp-block-columns {
  margin: 0 !important;
}

.wp-block-column {
  margin: 0 !important;
}

.wp-block-image {
  margin: 0 !important;
}

.wp-block-heading {
  margin-bottom: 1rem !important;
}

.wp-block-button .wp-block-button__link {
  background: #D17C49 !important;
  color: #fff !important;
  padding: 0.8rem 1.4rem !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
  font-weight: bold !important;
  text-decoration: none !important;
  transition: background 0.3s ease !important;
}

.wp-block-button .wp-block-button__link:hover {
  background: #B86A3E !important;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 1rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFF8F0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
  }

  .main-navigation.toggled {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .main-navigation li {
    border-bottom: 1px solid #eee;
  }

  .main-navigation a {
    display: block;
    padding: 1rem 0;
  }

  .hero {
    flex-direction: column;
    padding: 2rem;
  }

  .about-content {
    flex-direction: column;
    padding: 1.5rem;
  }

  .schedule-news {
    flex-direction: column;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.5rem;
  }

  .about-content {
    padding: 1rem;
  }

  .schedule,
  .news,
  .contact-section {
    padding: 1.5rem;
  }
}
