/* Theme CSS for ev-schornsheim-udenheim.de */
/* Primary: Teal | Accent: Rose Gold */

:root {
  --primary: #008080;
  --primary-dark: #006666;
  --accent: #b76e79;
  --accent-light: #d4a5ad;
  --text-dark: #222222;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #1a1a2e;
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Onest', sans-serif !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--text-dark) !important;
  background-color: var(--bg-light) !important;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Onest', sans-serif !important;
  font-weight: 700 !important;
  color: var(--primary-dark) !important;
  margin-bottom: 1rem !important;
}

h1 {
  font-size: 2.5rem !important;
}

h2 {
  font-size: 2rem !important;
  padding-top: 1.5rem !important;
}

h3 {
  font-size: 1.5rem !important;
  padding-top: 1rem !important;
}

p {
  font-size: 18px !important;
  margin-bottom: 1.2rem !important;
}

/* Navbar */
.navbar {
  background-color: var(--primary) !important;
  padding: 1rem 0 !important;
}

.navbar-item,
.navbar-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  list-style: none !important;
}

.navbar-item::before,
.navbar-item::after,
.navbar-link::before,
.navbar-link::after {
  display: none !important;
  content: none !important;
}

.navbar-menu {
  list-style: none !important;
}

.navbar-menu li {
  list-style: none !important;
}

.navbar-menu li::before,
.navbar-menu li::after {
  display: none !important;
  content: none !important;
}

.navbar-item:hover,
.navbar-link:hover {
  background-color: var(--primary-dark) !important;
  color: var(--text-light) !important;
}

.navbar-burger span {
  background-color: var(--text-light) !important;
}

.navbar-brand .navbar-item:hover {
  background-color: transparent !important;
}

.brand-logo {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.brand-name {
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  color: var(--text-light) !important;
}

/* CTA Buttons in Nav */
.navbar .button.is-accent {
  background-color: var(--accent) !important;
  color: var(--text-light) !important;
  border: none !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.navbar .button.is-accent:hover {
  background-color: var(--accent-light) !important;
  color: var(--text-dark) !important;
}

/* Hero Section */
.hero {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
}

.hero::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(0, 128, 128, 0.9) 0%, rgba(0, 102, 102, 0.85) 100%) !important;
  z-index: 1 !important;
}

.hero-body {
  position: relative !important;
  z-index: 2 !important;
  padding: 4rem 1.5rem !important;
}

.hero .title {
  color: var(--text-light) !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

.hero .subtitle {
  color: var(--text-light) !important;
  font-size: 1.2rem !important;
  opacity: 0.95 !important;
  max-width: 700px !important;
}

.hero .button.is-primary {
  background-color: var(--accent) !important;
  color: var(--text-light) !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  white-space: nowrap !important;
}

.hero .button.is-primary:hover {
  background-color: var(--accent-light) !important;
  transform: translateY(-2px) !important;
}

/* Table of Contents */
.toc-section {
  background-color: #fff !important;
  padding: 2rem 0 !important;
}

.toc-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  justify-content: center !important;
}

.toc-buttons .button {
  background-color: transparent !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.toc-buttons .button:hover {
  background-color: var(--primary) !important;
  color: var(--text-light) !important;
}

/* Sections */
.section {
  padding: 3rem 1.5rem !important;
}

.section:nth-child(even) {
  background-color: #fff !important;
}

.section:nth-child(odd) {
  background-color: var(--bg-light) !important;
}

/* Cards */
.card {
  background-color: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 128, 128, 0.15) !important;
}

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

.card-content {
  padding: 1.5rem !important;
}

/* Lists */
ul, ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 1.5rem !important;
}

.content ul li,
.content ol li,
section ul li,
section ol li {
  position: relative !important;
  padding-left: 1.5rem !important;
  margin-bottom: 0.75rem !important;
  font-size: 18px !important;
}

.content ul li::before,
section ul li::before {
  content: '\2014' !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.content ol {
  counter-reset: list-counter !important;
}

.content ol li::before,
section ol li::before {
  counter-increment: list-counter !important;
  content: counter(list-counter) '.' !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* Navbar and Footer lists override */
.navbar ul,
.navbar ol,
.navbar li,
.footer ul,
.footer ol,
.footer li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.navbar li::before,
.navbar li::after,
.footer li::before,
.footer li::after {
  display: none !important;
  content: none !important;
}

/* Tables */
.table-container {
  overflow-x: auto !important;
  margin: 1.5rem 0 !important;
  border-radius: 8px !important;
}

table {
  width: 100% !important;
  border-collapse: collapse !important;
  background-color: #fff !important;
  font-size: 16px !important;
}

table th {
  background-color: var(--primary) !important;
  color: var(--text-light) !important;
  padding: 1rem !important;
  text-align: left !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

table td {
  padding: 1rem !important;
  border-bottom: 1px solid #e0e0e0 !important;
  color: var(--text-dark) !important;
}

table tr:hover {
  background-color: rgba(0, 128, 128, 0.05) !important;
}

/* Images */
.content-image {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 1.5rem 0 !important;
}

figure {
  margin: 1.5rem 0 !important;
}

figure img {
  border-radius: 8px !important;
}

/* Buttons */
.button {
  font-family: 'Onest', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
}

.button.is-primary {
  background-color: var(--primary) !important;
  color: var(--text-light) !important;
  border: none !important;
}

.button.is-primary:hover {
  background-color: var(--primary-dark) !important;
}

.button.is-accent {
  background-color: var(--accent) !important;
  color: var(--text-light) !important;
  border: none !important;
}

.button.is-accent:hover {
  background-color: var(--accent-light) !important;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  padding: 3rem 1.5rem !important;
  text-align: center !important;
}

.cta-section .title {
  color: var(--text-light) !important;
}

.cta-section .button {
  background-color: var(--accent) !important;
  color: var(--text-light) !important;
  font-size: 1.1rem !important;
}

/* Footer */
.footer {
  background-color: var(--bg-dark) !important;
  padding: 3rem 1.5rem 2rem !important;
}

.footer,
.footer p,
.footer span,
.footer a {
  color: var(--text-light) !important;
}

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

.footer-title {
  color: var(--accent) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  font-size: 1.1rem !important;
}

.footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer li {
  margin-bottom: 0.5rem !important;
  list-style: none !important;
}

.footer li::before,
.footer li::after {
  display: none !important;
  content: none !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  margin-top: 2rem !important;
  padding-top: 1.5rem !important;
  text-align: center !important;
}

.footer-bottom p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px !important;
}

/* Icons */
.fa, .fas, .far, .fab {
  color: var(--primary) !important;
}

.icon-accent {
  color: var(--accent) !important;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes wave {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(5px) translateY(-5px); }
  50% { transform: translateX(0) translateY(0); }
  75% { transform: translateX(-5px) translateY(-5px); }
  100% { transform: translateX(0) translateY(0); }
}

.animate-float {
  animation: float 3s ease-in-out infinite !important;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite !important;
}

.animate-wave {
  animation: wave 4s ease-in-out infinite !important;
}

/* Decorative Elements */
.decoration-square {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--accent);
  opacity: 0.3;
  animation: float 4s ease-in-out infinite;
}

.decoration-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

/* Responsive */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--primary) !important;
    padding: 1rem !important;
  }

  .navbar-menu.is-active {
    display: block !important;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.6rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  .hero .title {
    font-size: 2rem !important;
  }

  .hero .subtitle {
    font-size: 1rem !important;
  }

  .toc-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .columns.is-multiline .column {
    width: 100% !important;
  }
}

/* Utility Classes */
.has-text-primary {
  color: var(--primary) !important;
}

.has-text-accent {
  color: var(--accent) !important;
}

.has-bg-primary {
  background-color: var(--primary) !important;
}

.has-bg-accent {
  background-color: var(--accent) !important;
}

.mb-2 {
  margin-bottom: 1rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mt-2 {
  margin-top: 1rem !important;
}

.mt-3 {
  margin-top: 1.5rem !important;
}
