/*
Theme Name: EEleven
Theme URI: https://eeleven.de
Author: EEleven GmbH
Author URI: https://eeleven.de
Description: Elementor Pro kompatibles Theme für EEleven – Customer-Centricity Beratung. Unterstützt Elementor Theme Builder für Header, Footer und Seitenvorlagen.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eeleven
Tags: business, consulting, elementor, one-page, responsive, custom-colors, custom-logo
*/

/* ============================================================
   DESIGN TOKENS
   Primary:    #0F172A (Navy)
   Secondary:  #334155 (Slate)
   Accent:     #CA8A04 (Gold)
   Background: #F8FAFC
   Text:       #020617
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@400;500;600;700;800&display=swap');

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

:root {
  --ee-primary:     #0F172A;
  --ee-secondary:   #334155;
  --ee-accent:      #CA8A04;
  --ee-accent-lt:   #FEF3C7;
  --ee-bg:          #F8FAFC;
  --ee-white:       #FFFFFF;
  --ee-text:        #020617;
  --ee-muted:       #475569;
  --ee-border:      #E2E8F0;
  --ee-font-head:   'Poppins', sans-serif;
  --ee-font-body:   'Open Sans', sans-serif;
  --ee-radius:      8px;
  --ee-radius-lg:   16px;
  --ee-shadow:      0 4px 16px rgba(0,0,0,.10);
  --ee-shadow-lg:   0 20px 48px rgba(0,0,0,.14);
  --ee-transition:  150ms ease-out;
  --ee-container:   1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ee-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ee-text);
  background: var(--ee-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY DEFAULTS (Elementor erbt diese) === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ee-font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ee-primary);
}

p { line-height: 1.75; }

/* === CONTAINER === */
.ee-container {
  width: 100%;
  max-width: var(--ee-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* === BUTTONS (als Elementor Custom CSS nutzbar) === */
.ee-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--ee-radius);
  font-family: var(--ee-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ee-transition);
  min-height: 44px;
  text-decoration: none;
}

.ee-btn-primary {
  background: var(--ee-accent);
  color: var(--ee-primary);
  border-color: var(--ee-accent);
}
.ee-btn-primary:hover {
  background: #B45309;
  border-color: #B45309;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(202,138,4,.35);
}

/* ============================================================
   FALLBACK HEADER
   Wird angezeigt, solange kein Elementor Theme Builder Header aktiv ist.
   ============================================================ */

#ee-header {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 999;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  transition: all 200ms ease-out;
}

#ee-header.scrolled {
  top: 0.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}

.ee-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

/* Logo */
.ee-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.ee-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ee-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ee-font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ee-primary);
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.ee-logo-text {
  font-family: var(--ee-font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Navigation */
.ee-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ee-nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--ee-transition);
}

.ee-nav-links a:hover { color: #fff; }

/* CTA Button in Nav */
.ee-nav-cta .ee-btn-primary {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

/* Hamburger */
.ee-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.ee-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 200ms ease-out;
}

/* Mobile Menu */
#ee-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.97);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

#ee-mobile-menu[hidden] { display: none; }

.ee-mobile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.ee-mobile-inner nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ee-mobile-inner nav a {
  font-family: var(--ee-font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  transition: color var(--ee-transition);
}

.ee-mobile-inner nav a:hover { color: var(--ee-accent); }

/* ============================================================
   FALLBACK FOOTER
   Wird angezeigt, solange kein Elementor Theme Builder Footer aktiv ist.
   ============================================================ */

#ee-footer {
  background: var(--ee-primary);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
}

.ee-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}

.ee-footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.8;
  max-width: 30ch;
  margin-top: 0.75rem;
}

.ee-footer-col h4 {
  font-family: var(--ee-font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.ee-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ee-footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  transition: color var(--ee-transition);
}

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

.ee-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.ee-footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

.ee-footer-legal {
  display: flex;
  gap: 1.5rem;
}

.ee-footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
  transition: color var(--ee-transition);
}

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

/* ============================================================
   CONTENT AREA (für Seiten ohne Elementor Full-Width)
   ============================================================ */

.ee-page-wrap {
  padding-top: 7rem;
  padding-bottom: 5rem;
  min-height: 60vh;
}

.ee-page-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.ee-page-wrap p { margin-bottom: 1.25rem; }

.ee-page-wrap ul, .ee-page-wrap ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.ee-page-wrap ul { list-style: disc; }
.ee-page-wrap ol { list-style: decimal; }

/* Zurück-nach-oben */
#ee-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--ee-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease-out;
  box-shadow: 0 4px 16px rgba(202,138,4,.4);
  color: var(--ee-primary);
}

#ee-back-top.visible { opacity: 1; visibility: visible; }
#ee-back-top:hover { transform: translateY(-2px); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .ee-nav-links, .ee-nav-cta { display: none; }
  .ee-hamburger { display: flex; }
  .ee-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ee-footer-bottom { flex-direction: column; text-align: center; }
}
