/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

:root {
  --peach: #FFECD2;
  --peach-dark: #F5D5B3;
  --forest: #1B4332;
  --forest-light: #2D6A4F;
  --magenta: #FF006E;
  --magenta-light: #FF4D94;
  --cyan: #7EC8C8;
  --cyan-muted: #A8DEDE;
  --white: #FFFAF5;
  --shadow: rgba(27,67,50,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--peach);
  color: var(--forest);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--magenta); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--forest-light); }

img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 20px var(--shadow);
}
.site-logo {
  font-size: 1.6rem; font-weight: 900; color: var(--peach);
  letter-spacing: 3px; text-transform: uppercase;
}
.site-logo span { color: var(--magenta); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  width: 30px; height: 24px; justify-content: center;
}
.nav-toggle-label span {
  display: block; height: 3px; background: var(--peach);
  border-radius: 3px; transition: all 0.3s;
}

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  color: var(--peach); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 1px; text-transform: uppercase;
  position: relative; padding-bottom: 2px;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--magenta);
  transition: width 0.3s;
}
.site-nav a:hover { color: var(--cyan); }
.site-nav a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: var(--forest); flex-direction: column;
    padding: 5rem 2rem 2rem; gap: 1.5rem;
    transition: right 0.4s ease; z-index: 200;
  }
  .nav-toggle:checked ~ .site-nav { right: 0; }
  .nav-close {
    position: absolute; top: 1rem; right: 1rem;
    font-size: 2rem; color: var(--peach); cursor: pointer;
    background: none; border: none; line-height: 1;
  }
}
@media (min-width: 769px) {
  .nav-close { display: none; }
  .nav-toggle-label { display: none; }
}

/* === HERO DIAGONAL === */
.hero-diagonal {
  position: relative; min-height: 85vh;
  background: linear-gradient(155deg, var(--forest) 0%, var(--forest-light) 50%, var(--cyan) 100%);
  overflow: hidden; display: flex; align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding: 3rem 1.2rem 6rem;
}
.hero-diagonal::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 70%);
  opacity: 0.15; border-radius: 50%;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.3); opacity: 0.25; }
}

.hero-content {
  max-width: 900px; margin: 0 auto; position: relative; z-index: 2;
}
.hero-tag {
  display: inline-block; background: var(--magenta);
  color: var(--white); padding: 0.4rem 1.2rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; border-radius: 30px;
  margin-bottom: 1.5rem;
  animation: slideInLeft 0.8s ease-out;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900; color: var(--peach);
  line-height: 1.1; margin-bottom: 1.5rem;
  transform: rotate(-3deg); transform-origin: left center;
  animation: heroTitleIn 1s ease-out;
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: rotate(-8deg) translateY(40px); }
  to { opacity: 1; transform: rotate(-3deg) translateY(0); }
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--cyan-muted);
  max-width: 550px; line-height: 1.8;
  animation: fadeUp 1.2s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CASCADE INTRO === */
.cascade-intro {
  max-width: 1100px; margin: -3rem auto 0; padding: 0 1.2rem;
  position: relative; z-index: 10;
}
.cascade-block {
  background: var(--white); border-radius: 16px;
  padding: 2rem 2.5rem; margin-bottom: 1.2rem;
  box-shadow: 0 8px 30px var(--shadow);
  border-left: 5px solid var(--magenta);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: cascadeIn 0.8s ease-out backwards;
}
.cascade-block:nth-child(1) { animation-delay: 0.2s; margin-left: 0; }
.cascade-block:nth-child(2) { animation-delay: 0.4s; margin-left: 3%; }
.cascade-block:nth-child(3) { animation-delay: 0.6s; margin-left: 6%; }
.cascade-block:hover { transform: translateX(8px); box-shadow: 0 12px 40px var(--shadow); }

@keyframes cascadeIn {
  from { opacity: 0; transform: translateY(30px) translateX(-20px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

/* === STAGGERED WAVE GRID === */
.wave-grid {
  max-width: 1200px; margin: 3rem auto; padding: 0 1.2rem;
  display: grid; grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 769px) {
  .wave-grid { grid-template-columns: 2fr 1fr; gap: 2.5rem; }
}
@media (min-width: 1024px) {
  .wave-grid { grid-template-columns: 5fr 3fr; }
}

.wave-main { display: flex; flex-direction: column; gap: 2rem; }
.wave-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.wave-card {
  background: var(--white); border-radius: 16px;
  padding: 2rem; position: relative; overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s;
}
.wave-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 16px 48px var(--shadow);
}
.wave-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
}

.wave-card h2 {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem;
  color: var(--forest); line-height: 1.3;
}
.wave-card h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem;
  color: var(--forest-light);
}
.wave-card p { margin-bottom: 0.8rem; color: var(--forest); }

/* === SIDEBAR CARDS === */
.sidebar-card {
  background: var(--forest); color: var(--peach);
  border-radius: 16px; padding: 1.5rem;
  transition: transform 0.3s;
}
.sidebar-card:hover { transform: scale(1.03); }
.sidebar-card h3 { color: var(--magenta-light); font-size: 1.1rem; margin-bottom: 0.6rem; }
.sidebar-card p { color: var(--peach-dark); font-size: 0.9rem; line-height: 1.6; }
.sidebar-card a { color: var(--cyan); }

.sidebar-quote {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
  color: var(--white); border-radius: 16px; padding: 1.8rem;
  font-style: italic; font-size: 1.05rem; line-height: 1.7;
  position: relative;
}
.sidebar-quote::before {
  content: '„'; font-size: 4rem; position: absolute;
  top: -10px; left: 10px; opacity: 0.3; font-style: normal;
}
.sidebar-quote cite {
  display: block; margin-top: 0.8rem;
  font-style: normal; font-weight: 700; font-size: 0.85rem;
  opacity: 0.85;
}

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: linear-gradient(135deg, var(--cyan-muted), var(--cyan));
  border-radius: 16px; padding: 2rem;
  color: var(--forest); position: relative; overflow: hidden;
}
.highlight-box::after {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--magenta); opacity: 0.15;
}
.highlight-box h3 { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 800; }

/* === FEATURE CARDS ROW === */
.feature-row {
  max-width: 1200px; margin: 3rem auto; padding: 0 1.2rem;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 600px) { .feature-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr 1fr; } }

.feature-card {
  background: var(--white); border-radius: 20px;
  padding: 2rem; text-align: center;
  box-shadow: 0 6px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 4px solid var(--cyan);
}
.feature-card:hover {
  transform: translateY(-8px); box-shadow: 0 14px 40px var(--shadow);
}
.feature-icon {
  font-size: 2.8rem; margin-bottom: 1rem;
  display: block;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }

/* === SECTION DIVIDER === */
.section-divider {
  max-width: 1200px; margin: 2.5rem auto;
  padding: 0 1.2rem; display: flex; align-items: center; gap: 1rem;
}
.section-divider span {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.section-divider em {
  color: var(--magenta); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 3px; text-transform: uppercase;
  white-space: nowrap;
}

/* === CTA BANNER === */
.cta-banner {
  max-width: 1200px; margin: 3rem auto; padding: 0 1.2rem;
}
.cta-inner {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  border-radius: 20px; padding: 3rem 2rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--magenta); opacity: 0.2;
}
.cta-inner h2 { color: var(--peach); font-size: 1.8rem; margin-bottom: 0.8rem; }
.cta-inner p { color: var(--cyan-muted); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.subscribe-form { display: flex; gap: 0.8rem; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.subscribe-form input[type="email"] {
  flex: 1; min-width: 200px; padding: 0.9rem 1.2rem;
  border: 2px solid var(--cyan); border-radius: 50px;
  background: var(--white); color: var(--forest);
  font-size: 0.95rem; outline: none;
  transition: border-color 0.3s;
}
.subscribe-form input[type="email"]:focus { border-color: var(--magenta); }
.subscribe-form button {
  padding: 0.9rem 2rem; background: var(--magenta);
  color: var(--white); border: none; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  min-height: 44px;
}
.subscribe-form button:hover { background: var(--magenta-light); transform: scale(1.05); }

/* === ARTICLE CARDS === */
.articles-section {
  max-width: 1200px; margin: 3rem auto; padding: 0 1.2rem;
}
.articles-section h2 {
  font-size: 1.8rem; font-weight: 900; margin-bottom: 2rem;
  text-align: center;
}
.articles-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 769px) { .articles-grid { grid-template-columns: 1fr 1fr 1fr; } }

.article-preview {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-preview:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 14px 40px var(--shadow);
}
.article-preview-img {
  height: 180px; background: linear-gradient(135deg, var(--cyan-muted), var(--forest-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.article-preview-body { padding: 1.5rem; }
.article-preview-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; }
.article-preview-body p { font-size: 0.85rem; color: var(--forest-light); margin-bottom: 0.8rem; }
.article-preview-body a {
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px;
}

/* === FOOTER === */
.site-footer {
  background: var(--forest); color: var(--peach);
  padding: 3rem 1.2rem 1.5rem; margin-top: 3rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { max-width: 300px; }
.footer-brand h3 { font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 0.5rem; }
.footer-brand h3 span { color: var(--magenta); }
.footer-brand p { font-size: 0.8rem; color: var(--cyan-muted); line-height: 1.6; }

.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--peach-dark); font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--magenta-light); }

.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,236,210,0.15);
  text-align: center; font-size: 0.75rem; color: var(--cyan-muted);
  line-height: 1.8;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 1rem; right: 1rem; left: 1rem;
  max-width: 420px; z-index: 500;
  background: var(--forest); color: var(--peach);
  border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  font-size: 0.85rem; line-height: 1.6;
  transition: transform 0.4s, opacity 0.4s;
}
#cookie-dismiss:checked ~ .cookie-banner { display: none; }
.cookie-banner p { margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-actions label,
.cookie-actions a {
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.8rem; cursor: pointer;
  text-align: center; min-height: 44px;
  display: inline-flex; align-items: center;
  transition: transform 0.2s;
}
.cookie-accept { background: var(--magenta); color: var(--white); border: none; }
.cookie-reject { background: transparent; color: var(--peach); border: 1px solid var(--peach); }
.cookie-actions a { color: var(--cyan); font-size: 0.75rem; }
.cookie-accept:hover, .cookie-reject:hover { transform: scale(1.05); }

/* === PAGE CONTENT (articles, legal, etc.) === */
.page-hero {
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  padding: 4rem 1.2rem 3rem; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.page-hero h1 { color: var(--peach); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
.page-hero p { color: var(--cyan-muted); margin-top: 0.8rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.page-content {
  max-width: 800px; margin: 2rem auto; padding: 0 1.2rem;
}
.page-content h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 1rem; color: var(--forest); }
.page-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.8rem; color: var(--forest-light); }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }

/* === SUCCESS PAGE === */
.success-container {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.2rem;
}
.success-box {
  background: var(--white); border-radius: 24px; padding: 3rem;
  box-shadow: 0 12px 40px var(--shadow); max-width: 500px;
}
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-box h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 0.8rem; color: var(--forest); }
.success-box p { margin-bottom: 1.5rem; color: var(--forest-light); }
.btn-home {
  display: inline-block; padding: 0.9rem 2rem;
  background: var(--magenta); color: var(--white);
  border-radius: 50px; font-weight: 700;
  transition: transform 0.3s, background 0.3s;
  min-height: 44px;
}
.btn-home:hover { background: var(--forest); transform: scale(1.05); color: var(--peach); }

/* === 404 === */
.error-container {
  min-height: 60vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 3rem 1.2rem;
}
.error-box h1 { font-size: 6rem; font-weight: 900; color: var(--magenta); line-height: 1; }
.error-box h2 { font-size: 1.5rem; margin: 1rem 0; color: var(--forest); }
.error-box p { margin-bottom: 1.5rem; color: var(--forest-light); }
.error-links { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.error-links a { font-weight: 600; }

/* === LEGAL PAGES === */
.legal-section { margin-bottom: 2rem; }
.legal-section h2 {
  font-size: 1.15rem; font-weight: 700;
  padding-bottom: 0.5rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--cyan);
}
.legal-section p { font-size: 0.9rem; line-height: 1.7; }

/* === STAGGER ANIMATIONS === */
.stagger-1 { animation: waveIn 0.6s ease-out 0.1s backwards; }
.stagger-2 { animation: waveIn 0.6s ease-out 0.25s backwards; }
.stagger-3 { animation: waveIn 0.6s ease-out 0.4s backwards; }
.stagger-4 { animation: waveIn 0.6s ease-out 0.55s backwards; }
.stagger-5 { animation: waveIn 0.6s ease-out 0.7s backwards; }

@keyframes waveIn {
  from { opacity: 0; transform: translateY(30px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* === IMAGE BLOCK === */
.image-block {
  border-radius: 16px; overflow: hidden; margin: 1rem 0;
  box-shadow: 0 6px 24px var(--shadow);
}
.image-block img { width: 100%; display: block; }
.image-caption {
  background: var(--forest); color: var(--peach);
  padding: 0.8rem 1.2rem; font-size: 0.8rem; font-style: italic;
}

/* === INLINE QUOTE === */
.inline-quote {
  background: var(--peach-dark); border-radius: 12px;
  padding: 1.5rem 2rem; margin: 1.5rem 0;
  border-left: 4px solid var(--magenta);
  font-style: italic; font-size: 1.05rem;
  position: relative;
}
.inline-quote cite { display: block; margin-top: 0.5rem; font-size: 0.8rem; font-style: normal; font-weight: 700; }

/* === TAG CHIPS === */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tag-chip {
  background: var(--cyan-muted); color: var(--forest);
  padding: 0.3rem 0.9rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}

/* === AUTHOR BYLINE === */
.author-byline {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 1rem 0; font-size: 0.85rem; color: var(--forest-light);
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 0.9rem;
}

/* === NUMBER CARD === */
.number-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 600px) { .number-cards { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.number-card {
  background: var(--white); border-radius: 12px; padding: 1.2rem;
  text-align: center; box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s;
}
.number-card:hover { transform: scale(1.05); }
.number-card .num { font-size: 2rem; font-weight: 900; color: var(--magenta); display: block; }
.number-card .label { font-size: 0.75rem; color: var(--forest-light); margin-top: 0.3rem; }

@media (max-width: 768px) {
  .hero-diagonal { min-height: 70vh; padding: 2rem 1rem 5rem; }
  .hero-title { font-size: 2rem; transform: rotate(-2deg); }
  .cascade-block { margin-left: 0 !important; padding: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .cookie-banner { left: 0.5rem; right: 0.5rem; }
}
