/* Sternen Welle - Styles
   Palette: Ocean Trust (SEED % 5 = 1)
*/

:root {
  --primary: #1e3a5f;
  --secondary: #2d5a8a;
  --accent: #7fb3d5;
  --background: #f5f8fb;
  --text: #152638;
  --white: #ffffff;
  --gray-light: #e8eef3;
  --gray: #94a3b8;
  --shadow: rgba(30, 58, 95, 0.1);
  --shadow-hover: rgba(30, 58, 95, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--white);
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.lead {
  font-size: 1.2rem;
  color: var(--secondary);
  line-height: 1.8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: var(--primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo:hover {
  color: var(--accent);
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 100px 0;
  color: var(--white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.page-hero.compact {
  padding: 50px 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--secondary);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--white);
}

.btn-link {
  color: var(--secondary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: var(--primary);
}

/* Sections */
.content-section,
.intro-section,
.programs-preview,
.products-preview,
.info-section,
.related-programs,
.related-articles {
  padding: 80px 0;
}

.alt-bg {
  background: var(--background);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.intro-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--secondary);
}

/* Grids */
.intro-grid,
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.intro-image img,
.content-image img {
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

/* Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 24px;
}

.card-content h3 {
  margin-bottom: 0.75rem;
}

.card-content p {
  color: var(--text);
  margin-bottom: 1rem;
}

/* Product Cards */
.product-card .product-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Programs */
.programs-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.program-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.program-card .program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card .program-content {
  padding: 40px 40px 40px 0;
}

.program-highlights {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.program-highlights li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  list-style: none;
}

.program-highlights li::before {
  content: "✓";
  position: absolute;
  left: -1rem;
  color: var(--accent);
  font-weight: bold;
}

/* Program Detail */
.program-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 0;
  color: var(--white);
}

.program-tagline {
  font-size: 1.2rem;
  opacity: 0.9;
}

.program-detail {
  padding: 60px 0;
}

.program-detail-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
}

.program-main h2 {
  margin-top: 2rem;
}

.program-main h2:first-of-type {
  margin-top: 0;
}

.program-main h3 {
  margin-top: 1.5rem;
  color: var(--secondary);
}

.program-hero-image {
  border-radius: 12px;
  margin-bottom: 2rem;
}

.program-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.program-info-card,
.program-elements-card,
.program-cta-card {
  background: var(--background);
  padding: 24px;
  border-radius: 12px;
}

.program-info-list {
  list-style: none;
}

.program-info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.program-info-list li:last-child {
  border-bottom: none;
}

.program-elements-card ul {
  padding-left: 1.5rem;
}

.program-elements-card li {
  position: relative;
  padding: 0.3rem 0;
  list-style: none;
}

.program-elements-card li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: var(--accent);
}

.program-cta-card {
  background: var(--primary);
  color: var(--white);
}

.program-cta-card h3 {
  color: var(--white);
}

.program-cta-card p {
  opacity: 0.9;
}

/* Articles */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.article-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .article-content {
  padding: 40px 40px 40px 0;
}

.article-category {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-card h2 {
  font-size: 1.5rem;
}

.article-card h2 a {
  color: var(--primary);
}

.article-card h2 a:hover {
  color: var(--secondary);
}

/* Article Detail */
.article-detail {
  padding: 60px 0;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.article-header h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.article-meta {
  color: var(--gray);
}

.article-hero-image {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 12px;
}

.article-body {
  max-width: 750px;
  margin: 0 auto;
}

.article-body h2 {
  margin-top: 2.5rem;
}

.article-body h3 {
  margin-top: 2rem;
  color: var(--secondary);
}

.article-footer {
  max-width: 750px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
  text-align: center;
}

/* Testimonials */
.testimonials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-meta strong {
  display: block;
  color: var(--primary);
}

.testimonial-meta span {
  font-size: 0.9rem;
  color: var(--gray);
}

.testimonial-content p {
  color: var(--text);
  line-height: 1.8;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Center Features */
.center-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.feature {
  text-align: center;
}

.feature img {
  border-radius: 12px;
  margin-bottom: 1.5rem;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-card {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
}

.info-card h3 {
  margin-bottom: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
}

.contact-form-wrapper h2 {
  margin-bottom: 1rem;
}

.contact-form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--background);
  padding: 24px;
  border-radius: 12px;
}

.contact-info-item {
  margin-bottom: 1rem;
}

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

.contact-info-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.opening-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.order-form .form-group {
  margin-bottom: 1rem;
}

.order-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
}

.order-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  z-index: 3000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-content a {
  color: var(--accent);
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.cookie-buttons .btn-primary {
  padding: 10px 20px;
}

.cookie-buttons .btn-secondary {
  padding: 10px 20px;
  border-color: var(--white);
  color: var(--white);
}

.cookie-buttons .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* Thank You Page */
.thank-you-container {
  max-width: 600px;
  margin: 100px auto;
  padding: 60px 40px;
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--shadow);
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 auto 2rem;
}

.thank-you-container h1 {
  margin-bottom: 1rem;
}

.thank-you-note {
  color: var(--secondary);
  margin-bottom: 2rem;
}

/* Legal Pages */
.legal-content {
  padding: 60px 0;
}

.legal-text {
  max-width: 800px;
  margin: 0 auto;
}

.legal-text h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.legal-text h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-text h3 {
  margin-top: 1.5rem;
  color: var(--secondary);
}

.legal-text ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-text li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

.legal-date {
  margin-top: 3rem;
  color: var(--gray);
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col p {
  opacity: 0.85;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255,255,255,0.85);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container,
  .intro-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .content-grid.reverse {
    direction: ltr;
  }
  
  .card-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .program-card,
  .article-card {
    grid-template-columns: 1fr;
  }
  
  .program-card .program-content,
  .article-card .article-content {
    padding: 30px;
  }
  
  .program-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-list a {
    display: block;
    padding: 15px 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .card-grid,
  .products-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid,
  .center-features {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }
  
  .page-hero {
    padding: 50px 0;
  }
  
  .content-section,
  .intro-section,
  .programs-preview,
  .products-preview {
    padding: 50px 0;
  }
  
  .modal-content {
    padding: 30px 20px;
  }
}
