/*
Theme Name: ELUVO
Theme URI: https://eluvo.at
Author: ELUVO GmbH
Description: Block-Theme fuer ELUVO - lokale KI aus Tirol. Alle Texte, Menues und Abschnitte sind im WordPress-Editor bearbeitbar.
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eluvo
Tags: block-theme, full-site-editing, business, one-column, dark
*/

/* ===== Grundlagen ===== */
:root {
  --e-ink: #232629;
  --e-ink-2: #1c1f21;
  --e-surface: #2a2d30;
  --e-surface-2: #33373a;
  --e-paper: #FBFAF8;
  --e-text-2: #A9AEB0;
  --e-text-3: #969C9F;
  --e-text-4: #868C8F;
  --e-text-5: #C4C8CA;
  --e-line: rgba(255,255,255,0.10);
  --e-line-soft: rgba(255,255,255,0.08);
  --e-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
* { box-sizing: border-box; }
a { text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.e-mono { font-family: var(--e-mono); }

/* ===== Header ===== */
.e-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(35,38,41,0.88);
  border-bottom: 1px solid var(--e-line-soft);
  padding: 16px 22px;
}
.e-header .wp-block-site-logo img { display: block; width: 28px; height: 28px; border-radius: 6px; }
.e-wordmark a, .e-wordmark {
  font-size: 19px; font-weight: 400; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--e-paper);
}
.e-brand { gap: 10px !important; }

/* Navigation (Desktop) */
.e-nav { font-size: 15px; }
.e-nav .wp-block-navigation-item__content { color: var(--e-text-2); }
.e-nav .wp-block-navigation-item__content:hover { color: var(--e-paper); }
.e-nav .wp-block-navigation__container { gap: 30px; }

/* Burger + Slide-Sidebar (Mobil) */
.e-nav .wp-block-navigation__responsive-container-open {
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  display: grid; place-items: center; color: var(--e-paper);
}
.e-nav .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed; inset: 0; padding: 0;
  background: rgba(12,14,15,0.68);
  display: block;
}
.e-nav .is-menu-open .wp-block-navigation__responsive-container-content {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  background: var(--e-ink);
  border-left: 1px solid rgba(255,255,255,0.09);
  padding: 74px 22px 28px;
  display: flex; flex-direction: column; align-items: stretch;
  overflow-y: auto;
  animation: eSlideIn 0.34s cubic-bezier(0.22,0.8,0.2,1);
}
.e-nav .is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; }
.e-nav .is-menu-open .wp-block-navigation-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.e-nav .is-menu-open .wp-block-navigation-item__content {
  display: block; padding: 16px 4px;
  font-size: 21px; font-weight: 600; color: var(--e-paper);
}
.e-nav .wp-block-navigation__responsive-container-close {
  top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--e-paper);
}
@keyframes eSlideIn { from { transform: translateX(102%); } to { transform: translateX(0); } }

/* ===== Abschnitte ===== */
.e-section { padding: clamp(56px, 7vw, 108px) 22px; }
.e-section--alt {
  background: var(--e-ink-2);
  border-top: 1px solid var(--e-line-soft);
  border-bottom: 1px solid var(--e-line-soft);
}
.e-section--hero { padding: clamp(48px, 7vw, 104px) 22px clamp(56px, 6vw, 96px); position: relative; }
.e-section--hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 12% 0%, rgba(251,250,248,0.05), transparent 60%);
  animation: eDrift 18s ease-in-out infinite;
}
@keyframes eDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
.e-strip { padding: 26px 22px; }
.e-strip p { font-family: var(--e-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--e-text-2); margin: 0; }

.e-eyebrow {
  font-family: var(--e-mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--e-paper); margin: 0 0 18px;
}
.e-eyebrow--muted { color: var(--e-text-5); }
.e-lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.62; color: var(--e-text-2); max-width: 56ch; }
.e-note { font-family: var(--e-mono); font-size: 12.5px; line-height: 1.7; color: var(--e-text-4); }
.e-body { font-size: 16px; line-height: 1.65; color: var(--e-text-2); }

/* Hero-Badge */
.e-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  font-family: var(--e-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--e-text-5); margin: 0;
}
.e-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--e-paper); animation: ePulse 2.4s ease-in-out infinite;
}
@keyframes ePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.e-h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 26px 0 0; }
.e-h1 u, .e-underline {
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 10px; text-decoration-color: rgba(251,250,248,0.4);
}
.e-h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0; max-width: 24ch; }
.e-h2--wide { max-width: none; }
.e-h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }

/* Buttons */
.wp-block-button.e-btn .wp-block-button__link {
  background: var(--e-paper); color: var(--e-ink);
  border-radius: 14px; padding: 17px 28px; font-weight: 700; font-size: 17px;
  transition: background 0.2s ease;
}
.wp-block-button.e-btn .wp-block-button__link:hover { background: #fff; }
.wp-block-button.e-btn--ghost .wp-block-button__link {
  background: transparent; color: var(--e-paper);
  border: 1px solid rgba(255,255,255,0.16); font-weight: 600;
  transition: border-color 0.2s ease;
}
.wp-block-button.e-btn--ghost .wp-block-button__link:hover { border-color: rgba(255,255,255,0.4); }
.e-nav .e-cta .wp-block-navigation-item__content,
.wp-block-navigation-item.e-cta > a {
  padding: 10px 18px; border-radius: 999px;
  background: var(--e-paper); color: var(--e-ink) !important; font-weight: 600;
}

/* ===== Karten ===== */
.e-card {
  border: 1px solid var(--e-line); border-radius: 18px; padding: 28px;
  background: var(--e-surface);
  transition: transform 0.4s cubic-bezier(0.22,0.8,0.2,1), border-color 0.4s ease;
}
.e-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.24); }
.e-card p:last-child { margin-bottom: 0; }
.e-num { font-family: var(--e-mono); font-size: 12px; color: var(--e-text-4); margin: 0 0 14px; }
.e-card p:not(.e-num) { font-size: 15.5px; line-height: 1.6; color: var(--e-text-2); }

/* Funktionsraster mit Haarlinien */
.e-features { gap: 1px !important; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.09); border-radius: 18px; overflow: hidden; margin: 0; }
.e-features .wp-block-column { background: var(--e-ink-2); padding: 30px 26px; }
.e-features h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; }
.e-features p { font-size: 15px; line-height: 1.6; color: var(--e-text-2); margin: 0; }

/* Ablauf-Schritte */
.e-step {
  border: 1px solid var(--e-line); border-radius: 16px; padding: 22px;
  background: var(--e-surface);
  transition: transform 0.4s cubic-bezier(0.22,0.8,0.2,1), border-color 0.4s ease;
}
.e-step:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.24); }
.e-step h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.e-step p { font-size: 15px; line-height: 1.6; color: var(--e-text-2); margin: 0; }
.e-step-no { font-family: var(--e-mono); font-size: 13px; color: var(--e-paper); margin: 0 0 8px; }

/* Serverstatus-Panel */
.e-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--e-line); border-radius: 20px;
  background: linear-gradient(180deg, var(--e-surface-2), var(--e-surface));
  padding: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
}
.e-panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--e-paper), transparent);
  animation: eScan 5s ease-in-out infinite;
}
@keyframes eScan {
  0% { top: 0; opacity: 0; } 12% { opacity: 0.85; }
  86% { opacity: 0.85; } 100% { top: 100%; opacity: 0; }
}
.e-panel-head {
  font-family: var(--e-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--e-text-4);
  padding-bottom: 14px; border-bottom: 1px solid var(--e-line-soft); margin-bottom: 16px;
}
.e-panel-head p { margin: 0; }
.e-row { padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,0.07); }
.e-row:last-child { border-bottom: 0; }
.e-row p { font-family: var(--e-mono); font-size: 13.5px; margin: 0; }
.e-row p:first-child { color: var(--e-text-3); }

/* Kennzahlen */
.e-stat { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.e-stat + p { font-family: var(--e-mono); font-size: 12px; color: var(--e-text-4); margin: 4px 0 0; }

/* Preise */
.e-price {
  border: 1px solid var(--e-line); border-radius: 18px; padding: 30px;
  background: var(--e-surface);
  transition: transform 0.4s cubic-bezier(0.22,0.8,0.2,1), border-color 0.4s ease;
}
.e-price:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.24); }
.e-price--featured {
  border-color: rgba(251,250,248,0.45);
  background: linear-gradient(180deg, var(--e-surface-2), var(--e-surface));
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.e-price h3 { font-size: 20px; font-weight: 600; margin: 0; }
.e-price-sub { font-size: 14.5px; color: var(--e-text-3); margin: 8px 0 0; }
.e-price-amount { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 22px 0 6px; }
.e-price-amount small { font-size: 17px; font-weight: 500; color: var(--e-text-3); letter-spacing: 0; }
.e-price ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--e-text-2); }
.e-tag {
  font-family: var(--e-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--e-paper); color: var(--e-ink); margin: 0;
}

/* FAQ */
.e-faq { border-top: 1px solid rgba(255,255,255,0.09); }
.e-faq .wp-block-details {
  border-bottom: 1px solid rgba(255,255,255,0.09); padding: 22px 0;
}
.e-faq summary { font-size: 18.5px; font-weight: 600; cursor: pointer; list-style: none; }
.e-faq summary::-webkit-details-marker { display: none; }
.e-faq summary::after { content: '+'; float: right; color: var(--e-text-4); font-weight: 400; }
.e-faq details[open] summary::after { content: '–'; }
.e-faq .wp-block-details p { font-size: 15.5px; line-height: 1.65; color: var(--e-text-2); margin: 12px 0 0; }

/* Kontakt-Block */
.e-contact {
  border: 1px solid var(--e-line); border-radius: 24px;
  padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(110% 140% at 100% 0%, rgba(251,250,248,0.07), transparent 55%), var(--e-surface);
}

/* Platzhalter-Bilder */
.e-figure img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--e-line); }

/* ===== Footer ===== */
.e-footer { border-top: 1px solid var(--e-line-soft); padding: 34px 22px 46px; }
.e-footer, .e-footer p, .e-footer a { font-family: var(--e-mono); font-size: 12.5px; color: var(--e-text-4); }
.e-footer .e-wordmark { color: var(--e-paper); font-size: 14px; }
.e-footer a:hover { color: var(--e-paper); }

/* ===== Inhaltsseiten (Impressum, Datenschutz) ===== */
.e-page { padding: clamp(44px, 6vw, 84px) 22px clamp(60px, 8vw, 110px); }
.e-page h1 { font-size: clamp(34px, 5.2vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.e-page h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 34px 0 12px; }
.e-page p, .e-page li { font-size: 16px; line-height: 1.7; color: var(--e-text-2); }
.e-page a { color: var(--e-paper); text-decoration: underline; text-underline-offset: 3px; }
.e-datasheet { border: 1px solid var(--e-line); border-radius: 18px; background: var(--e-surface); padding: clamp(22px, 3vw, 34px); }
.e-datasheet tr { border-bottom: 1px solid var(--e-line-soft); }
.e-datasheet td { padding: 13px 0; font-size: 15.5px; }
.e-datasheet td:first-child { font-family: var(--e-mono); font-size: 12.5px; color: var(--e-text-4); width: 38%; }
.e-hint {
  border: 1px dashed rgba(255,255,255,0.18); border-radius: 14px; padding: 20px 22px;
  font-family: var(--e-mono); font-size: 12.5px; line-height: 1.7; color: var(--e-text-4);
}

/* ===== Scroll-Animation ===== */
.e-reveal-item { opacity: 0; transform: translateY(22px); }
.e-reveal-ready .e-reveal-item {
  transition: opacity 0.75s cubic-bezier(0.22,0.8,0.2,1), transform 0.75s cubic-bezier(0.22,0.8,0.2,1);
}
.e-reveal-item.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .e-reveal-item { opacity: 1; transform: none; }
  .e-section--hero::before, .e-panel::before, .e-badge::before { animation: none; }
}

/* Editor: Animationen nie verstecken */
.block-editor-block-list__layout .e-reveal-item { opacity: 1; transform: none; }
