/*
 Theme Name: Hello Child RED26
 Template: hello-elementor
 Version: 0.1


=====================================================
 RED26 · SYSTEMISCHES CSS
 ----------------------------------------------------
 Prinzip:
 - Page läuft immer Day
 - Header hat eigenen Farbzustand
 - currentColor verbindet Header-Elemente
 - Keine konkurrierenden Farbquellen
=====================================================
*/


/* =================================================
   00 · GOOGLE FONTS BLOCKEN (Elementor)
   (PHP-Filter – gehört eigentlich in functions.php)
================================================= */



/* =================================================
   01 · TYPOGRAFISCHE GRUNDSKALA
================================================= */

html {
  font-size: 18px !important;
}

@media (max-width: 768px) {
  html { font-size: 100% !important; }
}

@media (max-width: 480px) {
  html { font-size: 90% !important; }
}


/* =====================================
   Global Headings
===================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
}

h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
}

h3 {
  font-size: clamp(2.0rem, 3.5vw, 2.0rem);
}

h4 {
  font-size: 1.4rem;
}

@media (max-width: 480px) {
  h4 { line-height: 1.4 !important; }
}


h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 0.95rem;
  opacity: 0.8;
}



/* =================================================
   DESIGN TOKENS (ROOT)
   → reine Definition, keine Anwendung
================================================= */

:root {

  /* Fonts */
  --font-body: adobe-garamond-pro, serif;
  --font-ui: urw-din, sans-serif;

  /* Page (immer Day) */
  --color-bg-day: #ffffff;
  --color-text-day: #4a4d44;
  --color-text-muted-day: rgba(0,0,0,0.6);
  --logo-hover-day: rgba(0,0,0,0.65);

  /* Night (Header / Overlays) */
  --color-bg-night: #31332d;
  --color-text-night: #f2f2e8;
  --color-text-muted-night: rgba(255,255,255,0.6);
  --logo-hover-night: rgba(255,255,255,0.65);

  /* Links */
  --link-color: #ff7e57;
  --link-hover-color: #ff4259;
}

  /* Menu-Panel Font Size  */
  --menu-font-size: clamp(1.6rem, 4vw, 3rem);

/* =================================================
   PAGE COLOR CONTEXT (GLOBAL)
   → Page läuft IMMER Day
================================================= */

body {
  --bg-current: var(--color-bg-day);
  --text-current: var(--color-text-day);
  --text-muted-current: var(--color-text-muted-day);
    
  --e-global-color-text: var(--text-current);
  --e-global-color-secondary: var(--text-muted-current);
    
  --page-text: var(--color-text-day);
  --page-text-muted: var(--color-text-muted-day);
  --header-text: var(--color-text-day); /* ← IMPORTANT */


  font-family: var(--font-body);
  line-height: 1.6;

  background-color: var(--bg-current);
  color: var(--text-current);
}

/* Mode-Klassen aktuell funktionslos, aber vorbereitet */
body.mode-day {
  --bg-current: var(--color-bg-day);
  --text-current: var(--color-text-day);
  --text-muted-current: var(--color-text-muted-day);
}

body.mode-night {
  --bg-current: var(--color-bg-night);
  --text-current: var(--color-text-night);
  --text-muted-current: var(--color-text-muted-night);
}

/* =================================================
   LINKS (GLOBAL)
================================================= */

a,
.elementor a {
  color: var(--link-color);
}

a:hover,
.elementor a:hover {
  color: var(--link-hover-color);
}

/* =================================================
   UI TYPOGRAFIE
================================================= */

header,
footer,
nav,
button,
input,
select,
textarea,
.elementor-button,
.elementor-nav-menu {
  font-family: var(--font-ui);
}

/* =========================================
   UI · Scroll to Top
========================================= */

.ui-scroll-top {
  position: fixed;
  right: clamp(1.2rem, 3vw, 2rem);
  bottom: clamp(1.2rem, 3vw, 2rem);
  z-index: 99999;

  width: 42px;
  height: 42px;
  border-radius: 999px;

    
/* default: transparent tool look */
  background: transparent;
  color: #e9f2d8;
  border: 1px solid #e9f2d8;

  padding: 0;
  cursor: pointer;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);

  transition:
    opacity .35s ease,
    transform .35s ease,
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease;
}

/* arrow */
.ui-scroll-top::before {
  content: '↑';
  font-size: 20px;
  line-height: 1;

  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  color: inherit;
}

/* visible state (JS-controlled) */
.ui-scroll-top.is-visible {
  opacity: 0.85;
  pointer-events: auto;
  transform: translateY(0);
}

/* hover */
.ui-scroll-top.is-visible:hover {
  background: var(--link-hover-color);
  border-color: var(--link-hover-color);
  color: #fff;
  transform: translateY(-2px);
}


/* =================================================
   HEADER COLOR SYSTEM (LOCKED)
   - Page text and header text are deliberately separated
   - --header-text MUST always have a default in body
   - Header modes only override --header-text
   - Do not reuse --page-text for header logic
================================================= */


/* =================================================
   HEADER COLOR CONTEXT (LOKAL)
   → EINZIGE Farbquelle für Header
================================================= */


/* Apply */
header {
  color: var(--header-text);
}

/* Header mode override */
body.header-day {
  --header-text: var(--color-text-day);
}

body.header-night {
  --header-text: var(--color-text-night);
}

header a {
  color: inherit;
}


@media (hover: hover) and (pointer: fine) {
  header a:hover {
    color: var(--link-hover-color);
  }
}

header svg,
header svg * {
  color: currentColor;
  stroke: currentColor;
}


/* =====================================
   HEADER · Mobile / Tablet Background Fix
===================================== */

@media (max-width: 1024px) {
  .header-common-wrapper,
  .site-header,
  header {
    background: transparent !important;
    background-color: transparent !important;
  }
}


/* =================================================
   LOGO (HEADER)
================================================= */

header svg {
  all: unset;
}



header svg.logo-svg {
  display: block;
  height: 60px !important;
  width: auto !important;
}


.logo-svg,
.logo-svg * {
  stroke: none !important;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}


/* =================================================
   LOGO-LINK-VERHALTEN
================================================= */

header a.site-logo,
header a.site-logo:link,
header a.site-logo:visited,
header a.site-logo:focus,
header a.site-logo:active {
  color: inherit;
  text-decoration: none;
}

header a.site-logo:hover {
  color: var(--link-hover-color);
}

/*-------------- Logo Header End -------------------*/

/* =================================================
   HAMBURGER / BURGER-TRIGGER
================================================= */

header .burger-trigger a {
  color: inherit;
  text-decoration: none;
}

header .burger-trigger a:hover {
  color: var(--link-hover-color);
}

header .burger-trigger .push-button span,
header .burger-trigger:hover .push-button span {
  opacity: 1;
}

header .burger-trigger .push-button span {
  background-color: currentColor;
}


/*-------------- Hamburger Color ----------------*/

/* Base */
.roed-hamburger {
  color: currentColor;
}

/* Hover = link color (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .roed-hamburger:hover {
    color: var(--link-hover-color);
  }
}

/* Lock all other states */

.roed-hamburger a {
  color: currentColor;
}

.roed-hamburger:active,
.roed-hamburger:focus,
.roed-hamburger:focus-visible,
.roed-hamburger:visited {
  color: currentColor;
}

/* SVG inheritance */
.roed-hamburger svg {
  fill: currentColor;
  stroke: currentColor;
}


/* =================================================
   FOOTER (PAGE CONTEXT)
================================================= */

footer {
  background-color: var(--bg-current);
  color: var(--page-text);
}


/* =================================================
   FOOTER DETAIL
================================================= */


.site-footer {
  color: var(--color-text-day) !important;
}

.site-footer,
.site-footer p,
.site-footer li,
.site-footer a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: inherit;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration: none;
  opacity: 0.85;
}

.site-footer a:hover {
  opacity: 1;
}

.site-footer .footer-muted {
  opacity: 0.6;
  font-size: 0.85em;
}

/* Footer logo */
.logo-svg-footer {
  width: auto;
  height: 180px;
  max-width: 280px;
  display: block;
  color: var(--color-text-day) !important;
}

@media (max-width: 1024px) {
.logo-svg-footer {
  width: auto;
  height: 120px;
  max-width: 200px;
  display: block;
  color: var(--color-text-day) !important;
  }
}
.logo-svg-footer,
.logo-svg-footer * {
  stroke: none !important;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}





/* =================================================
   ROED · MENU POPUP · STRUCTURE & BEHAVIOR
   Scoped to: roed-menu-hura-navigation
================================================= */

/* ---------- POPUP WIDTH ---------- */
@media (min-width: 1025px) {
  .elementor-popup-modal
  .roed-menu-hura-navigation
  .dialog-widget-content {
    width: clamp(40vw, 65vw, 80vw);
    max-width: 80vw;
    margin-left: auto;
  }
}

/* Inner padding */
.elementor-popup-modal
.roed-menu-hura-navigation
.dialog-message {
  padding: clamp(2rem, 5vw, 6rem);
}

/* Prevent vertical overflow */
.elementor-popup-modal
.roed-menu-hura-navigation
.dialog-widget-content {
  max-height: 100vh;
}



/* Active page + open submenu */
.elementor-popup-modal
.roed-menu-hura-navigation
.elementor-nav-menu .current-menu-item > a,
.elementor-popup-modal
.roed-menu-hura-navigation
.elementor-nav-menu .current_page_item > a,
.elementor-popup-modal
.roed-menu-hura-navigation
.menu-item-has-children.elementor-active > a {
  color: #FF6174;
}


/* ---------- SUBMENU FLOW ---------- */
.elementor-popup-modal
.roed-menu-hura-navigation
.elementor-nav-menu .sub-menu {
  position: static !important;
  display: none;
  margin: 0.4em 0 0.6em 0;
  padding: 0;
}




/* =====================================
   Global Mobile Section Background Fix
===================================== */

@media (max-width: 767px) {
  .elementor-section,
  .vc_row,
  .e-con,
  .swiper-slide {
    background-color: transparent !important; /* to fix */
  }
}

/* =================================================
   Vertikal Read-Progress Line
================================================= */


#read-progress-vertical {
  position: fixed;
  top: 0;
  right: 0;          /* alternativ: left: 0 */
  width: 10px;
  height: 0;
  background: #002b28;
  opacity: 1;
  z-index: 9999;
  pointer-events: none;
}


/*------------------- Next Layer Start --------------------------------*/

#next-layer {
  position: fixed;
  top: 0;
  right: 0;

  width: auto;
  min-width: fit-content;
  height: 100vh;
  white-space: nowrap;

  background: #002b28;
  color: #fff;

  opacity: 0;
  transform: translateX(100%); /* parked off-screen */
  transition:
    transform 0.9s cubic-bezier(.22,.61,.36,1),
    opacity 0.35s ease;

  z-index: 9998;
}

/* ------------------- Next Layer Active --------------- */

#next-layer.active {
  right: 0;
  opacity: 1;
  transform: translateX(0);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);    
}


/* ------------------ Next Layer bounce animation ---------------*/


@keyframes nextLayerBounce {
  0%   { transform: translateX(0); }
  60%  { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}


#next-layer.bounce {
 animation: nextLayerBounce 0.95s cubic-bezier(.16,1,.3,1);
}

@media (pointer: coarse) {
  #next-layer.bounce {
    animation-duration: 0.6s;
  }
}


/* ---------------- Bounce End ------------------- */

.next-layer-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
 padding: 8rem 1rem;
  text-decoration: none;
}


.next-label {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: -0.2em;
  color: var(--link-hover-color);
}

.next-title {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2.0rem;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--link-hover-color);
}


#next-layer .next-title span {
  display: block;
}




/* =====================================
   POST NAV · Linear (Prev / Next)
===================================== */

.post-nav {
  position: fixed;
  top: 0;
  height: 100vh;
  width: auto;
  min-width: fit-content;   
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
  z-index: 9997;

  background: #002b28;

}

.post-nav a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  text-decoration: none;
   padding: 4rem 1rem;
}


/* Left · Previous */
.post-nav--prev {
  left: 0;
  transform: translateX(-100%);
  transition-delay: 0.05s;
}

/* Left · Previous */
.post-nav--prev.active {
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

/* Right · Next */
.post-nav--next {
  right: 0;
  transform: translateX(100%);
  transition-delay: 0.15s;

}

/* Right · Next */
.post-nav--next.active {
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}


.post-nav.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Label */
.post-nav-label {
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2.0rem;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

/*-------------------Next Layer End --------------------------------*/





/* =================================================
   CONTENT · PROJECT HERO
================================================= */

.p-hero img,
.p-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ======================================
   Roed Parallax
=======================================*/

.roed-bg-parallax {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 50%;
  transform: translateZ(0); /* kann Compositing stabilisieren */
}


/* =====================================
   Portfolio Caption (Gallery / Hover)
===================================== */

.portfolio-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

/* Textblock */
.portfolio-caption-text {
  display: flex;
  flex-direction: column;
}

/* Subtitle (UI / Meta) */
.portfolio-caption-text .subtitle {
  font-family: var(--font-ui);          /* UI-Font */
  font-size: 0.60rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.25em;
  text-align: left !important;
}

/* Titel (Body / Editorial) */
.portfolio-caption-text .title {
  font-family: var(--font-body);        /* Body-Font */
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  font-weight: 300;
}

/* Icon rechts */
.portfolio-caption .portfolio-icon {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.portfolio-caption:hover .portfolio-icon {
  opacity: 1;
}


/* =========================================
   RoEd - Portfolio Loop Grid
==========================================*/

/* ------------ Minimal visual sanity check (safe defaults ----------- /*

/* Portfolio grid: neutral baseline */
.roed-portfolio .e-loop-item {
  height: 100%;
}

/* Card baseline */
.roed-card--portfolio {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-current);
}

/* Image block safety */
.roed-card--portfolio img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------- Make cards safe when no Featured Image exists ---------- */

/* Hide empty image blocks */
.roed-card--portfolio .elementor-widget-featured-image:empty {
  display: none;
}


/* Safari-safe fallback */
.roed-card--portfolio .elementor-widget-featured-image img[src=""] {
  display: none;
}

/* --------- Tighten spacing for text-only cards (no variant yet) ------ */

/* When there is no image, remove the top gap before the title */
.roed-card--portfolio
.elementor-widget-featured-image img[src=""]
  + .elementor-widget-post-title {
  margin-top: 0;
}

.roed-card--portfolio .elementor-heading-title,
.roed-card--portfolio .elementor-heading-title a,
.roed-card--portfolio .elementor-widget-text-editor {
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .roed-card--portfolio
  .elementor-widget-theme-post-title
  .elementor-heading-title a:hover {
    color: var(--link-hover-color);
  }
}


/* Portfolio card meta */
.roed-card-meta {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  line-height: 1.3;
  opacity: 0.65;
  margin-top: 0.25em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roed-card--portfolio .elementor-widget-post-title {
 /* margin-bottom: 0.2em;*/
}

.roed-card--portfolio .roed-card-meta {
  margin-top: 0;
}


/* Portfolio card title */
.roed-card--portfolio .elementor-widget-theme-post-title .elementor-heading-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 100;
  letter-spacing:0.01em;
}

@media (max-width: 767px) {
  .roed-card--portfolio 
  .elementor-widget-theme-post-title 
  .elementor-heading-title {
    font-size: 2rem;          /* bigger */
    line-height: 1.2;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
    
 .roed-card--portfolio .roed-card-meta {
    font-size: 1rem;          /* optional: slightly larger on mobile */
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 1;      /* meta = 1 line */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
    
}

/* Image hover: effects, clipped inside the box (Elementor-native) */
.roed-card--portfolio 
.elementor-widget-theme-post-featured-image {
  overflow: hidden;
}

/* =========================================
   ROED · Linear Drag Track (manual items)
========================================= */

.roed-drag-me-to-death {
  overflow: hidden;
  position: relative;
  touch-action: pan-y; /* wichtig: vertikal darf Seite weiterhin */
}

.roed-drag-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* Item sizing – erstmal klar, später feinjustieren */
.roed-drag-item {
  flex: 0 0 auto;
  width: clamp(280px, 45vw, 620px);
}

/* Optional: “grab feel” */
.roed-drag-me-to-death {
  cursor: ew-resize; /* instead grab */
}
.roed-drag-me-to-death.is-dragging {
  cursor: ew-resize; /* instead grabbing */
}

.roed-drag-me-to-death {
  position: relative;
  overflow: hidden;
  cursor: ew-resize; /* instead grab */
  user-select: none;
}

.roed-drag-me-to-death img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* =========================================
   ROED · Force horizontal track (Elementor override)
========================================= */

.roed-drag-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.roed-drag-item {
  flex: 0 0 auto !important;
  width: clamp(280px, 45vw, 620px);
}




/* =========================================
   ROED · MOBILE VERTICAL LAYOUT (FROZEN)
   Stage: Mobile Visual Stack
   Behaviour:
   – Cards untereinander
   – Native Touch Scroll (Mobile)
   – Desktop Wheel bleibt horizontal
   Status: STABLE · DO NOT MODIFY
   20250116_10-53
========================================= */

@media (max-width: 768px) {

  .roed-drag-me-to-death {
    height: auto;
    min-height: unset;
    display: block !important;
    overflow: visible !important;
    cursor: default;
  }

  .roed-drag-track {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }

  .roed-drag-item {
    width: 100%;
    margin-bottom: 2rem;
  }

.roed-drag-me-to-death.is-dragging {
  cursor: default; 
}
    
}



/* scroll outside the 100%-Fix */
html, body {
  overflow-x: hidden !important;
}

