/* ===========================================
   SOMETHINGBLUE THEME - MAIN STYLES
   =========================================== */

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

:root {
  --gold: #cbbf9c;
  --gold-accent: #D4AF37;
  --gray: #626262;
  --text: #ffffff;
  --bg-primary: #1a1d23;
  --bg-secondary: #0a0d12;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.8em;
  letter-spacing: 0.4px;
  color: var(--text);
  background: radial-gradient(circle at center right, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

.logo { position: fixed; top: 50px; right: 50px; z-index: 1000; width: 200px; }
.logo img { width: 100%; height: auto; }

/* Linien relativ zum zentrierten 1440px Container positioniert */
/* Container-Start: calc(50vw - 720px), Container-Ende: calc(50vw + 720px) */
.line-top-gold { 
  position: fixed; 
  top: 23%; 
  left: 0; 
  width: calc(50vw + 400px); /* Endet ~320px vor Container-Ende */
  height: 4px; 
  background: var(--gold); 
  z-index: 0; 
}
.line-top-gray { 
  position: fixed; 
  top: 25%; 
  left: 0; 
  width: calc(50vw + 550px); /* Endet ~170px vor Container-Ende */
  height: 4px; 
  background: var(--gray); 
  z-index: 1; 
}
.line-bottom-gray { 
  position: fixed; 
  bottom: 24%; 
  left: 0; 
  width: calc(50vw + 600px); /* Endet ~120px vor Container-Ende */
  height: 4px; 
  background: var(--gray); 
  z-index: 0; 
}
.line-bottom-gold { 
  position: fixed; 
  bottom: 26%; 
  right: 0; 
  width: calc(50vw + 680px); /* Endet ~40px vor Container-Ende */
  height: 4px; 
  background: var(--gold); 
  z-index: 1; 
}

.deck {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  height: 100vh;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.section {
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 170px;
  /* Animation wird via JS gesteuert */
  opacity: 1;
  transform: translateX(0) scale(1);
}

.content-container { 
  display: flex; 
  width: 1440px; 
  max-height: 750px;
  margin: 0 auto; 
  padding: 0 40px; 
  gap: 0; 
  position: relative; 
  align-items: center; 
  justify-content: flex-start; 
}

.left-nav { flex: 0 0 210px; width: 210px; display: flex; align-items: center; height: 100%; position: relative; }
.left-nav-content { width: 100%; margin: 10px; align-items: left; }
.left-nav ul, .left-nav .menu { list-style: none; }
.left-nav > .left-nav-content > ul > li, .left-nav .menu > li { margin-bottom: 1.75rem; position: relative; }
.left-nav a { display: block; text-decoration: none; color: #999; font-weight: 300; font-size: 0.9rem; padding: 0.65rem 0; border-left: 2px solid transparent; padding-left: 1rem; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.08em; }
.left-nav a:hover, .left-nav a.active, .left-nav .current-menu-item > a { color: var(--gold); border-left-color: var(--gold); font-weight: 400; }

/* Parent items mit Unterpunkten - Pfeil-Indikator */
.left-nav .menu-item-has-children > a::after,
.left-nav li.has-children > a::after {
  content: '›';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #666;
  transition: all 0.2s ease;
}

.left-nav .menu-item-has-children:hover > a::after,
.left-nav .menu-item-has-children.is-open > a::after,
.left-nav li.has-children:hover > a::after,
.left-nav li.has-children.is-open > a::after {
  color: var(--gold);
  transform: translateY(-50%) translateX(3px);
}

/* Flyout Sub-Menu */
.sub-nav, .left-nav .sub-menu { 
  position: absolute; 
  left: calc(100% + 10px); 
  top: -0.5rem; 
  background: rgba(26, 29, 35, 0.98); 
  border: 1px solid rgba(203, 191, 156, 0.3); 
  border-radius: 4px; 
  padding: 0.75rem 0; 
  min-width: 180px; 
  opacity: 0; 
  visibility: hidden; 
  transform: translateX(-10px); 
  transition: all 0.25s ease; 
  z-index: 1000; 
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Hover-Vorschau */
.left-nav > .left-nav-content > ul > li:hover > .sub-nav, 
.left-nav .menu > li:hover > .sub-menu { 
  opacity: 1; 
  visibility: visible; 
  transform: translateX(0); 
}

/* Klick-Fixiert (is-open Klasse) */
.left-nav > .left-nav-content > ul > li.is-open > .sub-nav,
.left-nav .menu > li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Sub-Menu Items */
.sub-nav li, .left-nav .sub-menu li { 
  margin-bottom: 0; 
}

.sub-nav a, .left-nav .sub-menu a { 
  font-size: 0.85rem; 
  padding: 0.6rem 1.25rem; 
  border-left: 2px solid transparent;
  margin: 0;
}

.sub-nav a:hover, .left-nav .sub-menu a:hover { 
  background: rgba(203, 191, 156, 0.1); 
  color: var(--gold);
  border-left-color: var(--gold);
}

/* Kleine Verbindungsbrücke für bessere Hover-UX */
.sub-nav::before, .left-nav .sub-menu::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 0;
  width: 15px;
  height: 100%;
}

.middle-images { flex: 0 0 520px; width: 520px; display: flex; align-items: center; justify-content: left; height: 95%; }
.image-slideshow { position: relative; width: 520px; height: 800px; overflow: hidden; border-radius: 8px; }
.image-slideshow img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out; }
.image-slideshow img.active { opacity: 1; }

.main-content { flex: 0 0 710px; width: 710px; display: flex; flex-direction: column; justify-content: center; height: 100%; padding-left: 0; overflow-y: auto; }
.kicker { display: block; font-size: 0.85rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }

h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; text-transform: uppercase; font-weight: 400; line-height: 1.2; }
h1 { font-size: 46px; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 1.2rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--text); letter-spacing: 0.05em; margin-bottom: 1rem; }
h3 { font-size: 18px; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.8rem; }
h4 { font-size: 1.1rem; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 0.6rem; }
p { font-size: 1rem; line-height: 1.4; color: var(--text); margin-bottom: 1.2rem; }
.subline { font-size: 1.2rem; color: var(--gold-accent); margin-bottom: 2rem; font-weight: 300; letter-spacing: 0.05em; }

.quote-block { margin: 2rem 0; padding: 1.5rem; background: rgba(255, 255, 255, 0.05); border-left: 4px solid var(--gold); }
.quote-block p { font-style: italic; font-size: 1.1rem; margin-bottom: 0.5rem; }
.spacer { height: 2rem; }
.spacer-lg { height: 3rem; }

.cta { display: inline-block; background: var(--gold); color: var(--bg-primary); text-decoration: none; padding: 0.8rem 1.5rem; border-radius: 4px; font-weight: 500; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.cta:hover { background: var(--gold-accent); transform: translateY(-2px); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.card-minimal { padding: 1rem; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.05); cursor: pointer; transition: background 0.2s ease; }
.card-minimal:hover { background: rgba(255, 255, 255, 0.08); }
.card-minimal h4 { margin-bottom: 0.5rem; }
.card-minimal p { font-size: 0.9rem; margin: 0; }

/* Service Grid - 2x2 Karten wie im Design */
.service-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 0; 
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.service-card:hover {
  background: rgba(203, 191, 156, 0.05);
}

.service-card h3,
.service-card .service-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.service-card p,
.service-card .service-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
  margin: 0;
}

/* Responsive Service Grid */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.principles { margin: 2rem 0; }
.principle-item { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.principle-item:last-child { border-bottom: none; }
.principle-item h4 { margin-bottom: 0.3rem; }
.principle-item p { margin: 0; font-size: 0.9rem; }

.contact-info { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.contact-info h4 { margin-bottom: 0.8rem; }
.contact-info a { display: block; margin-bottom: 0.5rem; color: #999; text-decoration: none; font-size: 0.9rem; }
.contact-info a:hover { color: var(--gold); }

.slide-counter { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); text-align: center; font-size: 0.85rem; color: #999; z-index: 1000; }

.nav-controls { position: fixed; top: 50%; transform: translateY(-50%); z-index: 1000; pointer-events: none; }
.nav-controls.left { left: 80px; }
.nav-controls.right { right: 80px; }
.nav-controls button { background: rgba(203, 191, 156, 0.9); color: var(--bg-primary); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; pointer-events: all; backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.nav-controls button:hover:not(:disabled) { background: var(--gold-accent); transform: scale(1.1); }
.nav-controls button:disabled { background: rgba(98, 98, 98, 0.5); cursor: not-allowed; }

.site-footer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-primary); color: var(--text); padding: 20px 0; z-index: 998; height: 150px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr 1fr 1fr; gap: 2rem; padding: 0 2rem; height: 100%; align-items: center; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo img { width: 120px; height: auto; margin-bottom: 5px; }
.footer-tagline { font-size: 0.8rem; color: #999; letter-spacing: 0.5px; }
.footer-column h4 { color: var(--gold); margin-bottom: 0.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-column a { display: block; color: #ccc; text-decoration: none; margin-bottom: 0.3rem; font-size: 0.85rem; transition: color 0.2s ease; }
.footer-column a:hover { color: var(--gold); }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 0.3rem; }
.footer-menu a { color: #ccc; text-decoration: none; font-size: 0.85rem; }
.footer-menu a:hover { color: var(--gold); }

.section-fullwidth { flex-direction: column; padding: 0; overflow-y: auto; }
.top-nav { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); z-index: 100; }
.top-nav ul { display: flex; list-style: none; gap: 2rem; }
.top-nav a { color: #999; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s ease; font-weight: 300; }
.top-nav a:hover, .top-nav a.active, .top-nav .current-menu-item a { color: var(--gold); }

.leistungen-hero { display: flex; align-items: center; justify-content: space-between; padding: 120px 80px 60px; min-height: 55vh; position: relative; background-image: url('https://somethingblue.de/wp-content/uploads/2025/10/origami-e1763118906815-768x756.webp'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.leistungen-hero-content { flex: 0 0 45%; max-width: 550px; position: relative; padding-left: 30px; }
.hero-accent-bar { position: absolute; left: 0; top: 0; width: 4px; height: 100px; background: var(--gold); }
.leistungen-hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.leistungen-hero-content h1 .italic { font-style: italic; }
.leistungen-hero-content p { font-size: 1rem; line-height: 1.7; color: #ccc; max-width: 480px; }
.leistungen-hero-image { flex: 0 0 50%; display: flex; justify-content: flex-end; align-items: center; }
.leistungen-hero-image img { max-width: 100%; max-height: 400px; object-fit: contain; border-radius: 4px; }

.leistungen-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 80px 150px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pillar { padding: 2.5rem 2rem; border-right: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; transition: background 0.3s ease; display: flex; flex-direction: column; }
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(203, 191, 156, 0.05); }
.pillar-header { margin-bottom: 1.5rem; }
.pillar-label { display: block; font-size: 0.9rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 300; }
.pillar-title { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
.pillar p { font-size: 0.9rem; line-height: 1.7; color: #bbb; flex-grow: 1; margin-bottom: 1.5rem; }
.pillar-link { display: inline-block; color: #999; text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 2px; border-bottom: 1px solid #666; transition: all 0.2s ease; align-self: flex-start; }
.pillar-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

@media (max-width: 1440px) { .content-container { width: 100%; max-width: 1400px; padding: 0 20px; } }
@media (max-width: 1200px) { .leistungen-pillars { grid-template-columns: repeat(2, 1fr); padding: 0 40px 150px; } .pillar:nth-child(2) { border-right: none; } .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); } }
@media (max-width: 900px) { .top-nav { display: none; } .leistungen-hero { flex-direction: column; padding: 100px 30px 40px; min-height: auto; } .leistungen-hero-content { flex: none; max-width: 100%; margin-bottom: 2rem; } .leistungen-hero-content h1 { font-size: 2.5rem; } .leistungen-hero-image { flex: none; width: 100%; justify-content: center; } .leistungen-pillars { grid-template-columns: 1fr; padding: 0 30px 150px; } .pillar { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .pillar:last-child { border-bottom: none; } }
@media (max-width: 768px) { .content-container { flex-direction: column; height: auto; width: 100%; max-width: none; padding: 100px 20px 60px; gap: 20px; align-items: flex-start; } .left-nav { flex: none; width: 100%; height: auto; display: block; overflow-x: auto; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .left-nav-content ul, .left-nav .menu { display: flex; gap: 1rem; white-space: nowrap; } .left-nav > .left-nav-content > ul > li, .left-nav .menu > li { margin-bottom: 0; } .sub-nav, .left-nav .sub-menu { display: none !important; } .middle-images { width: 100%; flex: none; height: 300px; } .image-slideshow { width: 100%; height: 100%; } .main-content { width: 100%; flex: none; height: auto; justify-content: flex-start; } .nav-controls.left { left: 10px; } .nav-controls.right { right: 10px; } .nav-controls button { width: 45px; height: 45px; font-size: 1.2rem; } h1 { font-size: 2rem; } .grid-2 { grid-template-columns: 1fr; } .footer-content { grid-template-columns: 1fr 1fr; gap: 1rem; text-align: center; } .footer-logo { align-items: center; } .line-bottom-gray, .line-bottom-gold { display: none; } }

html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-accent); }

/* ===========================================
   WORDPRESS OVERRIDES - CRITICAL FOR SLIDER
   =========================================== */

/* Ensure no WordPress styles break the layout */
html, body {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
}

body.admin-bar {
  padding-top: 0 !important;
}

body.admin-bar .deck {
  top: 32px;
  height: calc(100vh - 32px);
}

body.admin-bar .section {
  height: calc(100vh - 32px);
}

body.admin-bar .nav-controls {
  top: calc(50% + 16px);
}

body.admin-bar .site-footer {
  bottom: 0;
}

/* Force horizontal layout */
#deck, .deck {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.section {
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  flex: 0 0 100vw !important;
}

/* Hide any WordPress default elements that might interfere */
#wpadminbar ~ .deck {
  margin-top: 32px;
}
