/* ============================================================
   gruenwald.it — Design-System (Redesign 2026)
   Basis: design-system/gruenwald-it/MASTER.md
   Pattern: Real-Time / Operations Landing · Style: Trust & Authority
   Klassen werden in Elementor über Advanced > CSS-Klassen vergeben.
   ============================================================ */

:root {
  --gw-navy: #0A0F1E;
  --gw-navy2: #0D1F15;
  --gw-green: #2D8B4E;
  --gw-leaf: #5BB870;
  --gw-deep: #1A5C33;
  --gw-paper: #FAFBF8;
  --gw-pale: #E8F5EC;
  --gw-pale2: #F0F7F2;
  --gw-rule: #C8DFD0;
  --gw-orange: #FF6B35;
  --gw-text: #1A1A2E;
  --gw-muted: #57685F;
  --gw-muted-dark: #9FB0A6;
}

/* ---------- Typo-Utilities ---------- */
.gw-mono,
.gw-mono .elementor-heading-title,
.gw-mono .elementor-widget-container p,
.gw-mono .elementor-icon-list-text {
  font-family: 'IBM Plex Mono', monospace !important;
}

.gw-kicker .elementor-heading-title {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gw-kicker .elementor-heading-title::before { content: "// "; opacity: .55; }

.gw-si {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--gw-green);
}
.gw-dark .gw-si, .gw-si-light { color: var(--gw-leaf); }

.gw-tabnums, .gw-tabnums * { font-variant-numeric: tabular-nums; }

/* Konturziffern (Leistungs-Index) */
.gw-num-outline .elementor-heading-title {
  color: transparent !important;
  -webkit-text-stroke: 1.3px var(--gw-green);
  letter-spacing: -.02em;
}

/* ---------- Sektions-Utilities ---------- */
/* Feines Blueprint-Raster für dunkle Sektionen */
.gw-grid-dark {
  background-image:
    linear-gradient(rgba(91, 184, 112, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 184, 112, .05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- Status / Live-Elemente ---------- */
@keyframes gw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.gw-dot::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gw-leaf);
  box-shadow: 0 0 8px rgba(91, 184, 112, .9);
  margin-right: 8px;
  vertical-align: 1px;
  animation: gw-pulse 2.4s infinite;
}

@keyframes gw-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.gw-cursor .elementor-heading-title::after,
.gw-cursor p:last-child::after {
  content: "▌";
  animation: gw-blink 1.1s steps(1) infinite;
  margin-left: 2px;
}

/* ---------- Ticker / Marquee ---------- */
@keyframes gw-mq { to { transform: translateX(-50%); } }
.gw-marquee .elementor-widget-container { overflow: hidden; white-space: nowrap; }
.gw-marquee .elementor-widget-container p {
  display: inline-block;
  white-space: nowrap;
  margin: 0;
  animation: gw-mq var(--gw-mq-speed, 32s) linear infinite;
  will-change: transform;
}
.gw-marquee:hover .elementor-widget-container p { animation-play-state: paused; }

/* ---------- Monitoring-Panel ---------- */
.gw-panel {
  box-shadow: 0 30px 80px rgba(10, 15, 30, .35), 0 0 70px rgba(45, 139, 78, .14);
}
.gw-panel-head { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gw-panel-rows .elementor-icon-list-item {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 10px 2px;
}
.gw-panel-rows .elementor-icon-list-text {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 12.5px;
  color: #C3D2C8;
  width: 100%;
}
.gw-panel-rows .gw-state { float: right; color: var(--gw-leaf); font-size: 11.5px; }
.gw-panel-rows .gw-state::before { content: "● "; font-size: 9px; }
.gw-log .elementor-widget-container {
  background: rgba(0, 0, 0, .4);
  border-radius: 8px;
  padding: 12px 14px;
}
.gw-log p {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 11px;
  line-height: 1.9;
  color: #5F7568;
  margin: 0;
}
.gw-log b { color: #8CA396; font-weight: 400; }

/* ---------- Service-Indexzeilen ---------- */
.gw-svc-row {
  border-bottom: 1px solid var(--gw-rule);
  position: relative;
  transition: background .2s ease;
  cursor: pointer;
}
.gw-svc-row:first-of-type,
.gw-svc-list > .e-con-inner > .gw-svc-row:first-child { border-top: 1px solid var(--gw-rule); }
.gw-svc-row::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 0;
  background: var(--gw-green);
  transition: width .45s ease;
}
.gw-svc-row:hover { background: var(--gw-pale2); }
.gw-svc-row:hover::before { width: 100%; }

/* Dunkle Variante (Manifest) */
.gw-dark .gw-svc-row { border-color: rgba(255, 255, 255, .08); }
.gw-dark .gw-svc-row:hover { background: rgba(91, 184, 112, .05); }

/* ---------- Rahmen-Klammern (Porträt) ---------- */
.gw-brackets { position: relative; padding: 16px; }
.gw-brackets::before, .gw-brackets::after {
  content: "";
  position: absolute;
  width: 36px; height: 36px;
  border: 2px solid var(--gw-green);
  pointer-events: none;
}
.gw-brackets::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.gw-brackets::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.gw-dark .gw-brackets::before, .gw-dark .gw-brackets::after { border-color: var(--gw-leaf); }

/* ---------- Interaktion / A11y ---------- */
a:focus-visible, button:focus-visible, .elementor-button:focus-visible {
  outline: 2px solid var(--gw-leaf);
  outline-offset: 2px;
}
.elementor-button, a.elementor-button { cursor: pointer; transition: all .18s ease; }
.elementor-button:hover { transform: translateY(-1px); }

/* Hairline-Spalten (Warum-Sektion) */
.gw-col-rule { border-top: 1px solid rgba(91, 184, 112, .35); padding-top: 24px; }
.gw-col-rule-light { border-top: 1px solid var(--gw-rule); padding-top: 24px; }

/* Skill-Liste: grüne Quadrate statt Bullets */
.gw-squares .elementor-icon-list-icon { display: none; }
.gw-squares .elementor-icon-list-item {
  position: relative;
  padding-left: 20px;
}
.gw-squares .elementor-icon-list-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--gw-green);
}

/* Orange nur als Signal (1× pro Seite) */
.gw-signal { color: var(--gw-orange) !important; }
.gw-underline-orange { border-bottom: 4px solid var(--gw-orange); padding-bottom: 2px; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gw-dot::before, .gw-cursor .elementor-heading-title::after, .gw-cursor p:last-child::after,
  .gw-marquee .elementor-widget-container p {
    animation: none !important;
  }
  .elementor-invisible { visibility: visible !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Responsive Feinschliff ---------- */
/* Flex-Items dürfen unter ihre Min-Content-Breite schrumpfen — verhindert
   horizontalen Overflow langer Zeilen (Mono-Texte, große Headlines) */
.e-con, .e-con-inner, .e-con > .elementor-element, .elementor-widget { min-width: 0; }
body { overflow-x: clip; }

@media (max-width: 767px) {
  .gw-brackets { padding: 12px; }
  .gw-brackets::before, .gw-brackets::after { width: 26px; height: 26px; }
  /* Service-Indexzeilen: Spalten untereinander, Meta linksbündig */
  .gw-svc-row > .elementor-element { width: 100% !important; }
  .gw-svc-row > .elementor-element:last-of-type,
  .gw-svc-row > .elementor-element:last-of-type p { text-align: left !important; }
}

/* Mobiles Navigationsmenü (Hamburger-Dropdown) */
.tahefobu-mobile-nav-menu {
  background: #FFFFFF;
  border-top: 1px solid var(--gw-rule);
  box-shadow: 0 22px 44px rgba(10, 15, 30, .14);
  padding: 6px 0 10px;
}
.tahefobu-mobile-nav-menu li { background: #FFFFFF !important; }
.tahefobu-mobile-nav-menu li + li { border-top: 1px solid #EDF3EE; }
.tahefobu-mobile-nav-menu li a {
  font: 600 15.5px/1.3 'Inter', sans-serif !important;
  letter-spacing: 0;
  color: var(--gw-navy) !important;
  padding: 15px 24px !important;
  display: block;
  text-align: left !important;
  transition: color .15s ease, background .15s ease;
}
.tahefobu-mobile-nav-menu li a:hover,
.tahefobu-mobile-nav-menu li a:focus-visible {
  color: var(--gw-green) !important;
  background: var(--gw-pale2) !important;
}
.tahefobu-mobile-nav-menu li.current-menu-item,
.tahefobu-mobile-nav-menu li.current_page_item {
  background: var(--gw-pale2) !important;
}
.tahefobu-mobile-nav-menu li.current-menu-item > a,
.tahefobu-mobile-nav-menu li.current_page_item > a {
  color: var(--gw-green) !important;
  box-shadow: inset 3px 0 0 var(--gw-green);
}
/* Toggle-Linien & Schließen-Kreuz in Markennavy */
.tahefobu-mobile-toggle-line { background: var(--gw-navy) !important; }
.tahefobu-mobile-toggle { cursor: pointer; }

/* Header/Footer */
.gw-statusline b{color:var(--gw-leaf);font-weight:400;animation:gw-pulse 2.4s infinite}
.gw-footlinks a{color:#5F7568;transition:color .15s}.gw-footlinks a:hover{color:var(--gw-leaf)}
.gw-footlist .elementor-icon-list-text{transition:color .15s}
@media(max-width:767px){.gw-status-right{display:none}}

/* Startseite */
.gw-textlink a{color:#0A0F1E;border-bottom:1px solid #0A0F1E;padding-bottom:3px;transition:all .15s}.gw-textlink a:hover{color:var(--gw-green);border-color:var(--gw-green)}
.gw-winbtn p::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:rgba(255,107,53,.6);box-shadow:14px 0 0 rgba(255,255,255,.15),28px 0 0 rgba(255,255,255,.15);margin-right:38px}
.gw-sparklabel p{display:flex;justify-content:space-between;margin:0}.gw-sparklabel p span{color:var(--gw-leaf)}
.gw-panelrows p{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.07);padding:10px 2px;margin:0;font-family:'IBM Plex Mono',monospace;font-size:12.5px;color:#C3D2C8}
.gw-panelrows p span{color:var(--gw-leaf);font-size:11.5px}.gw-panelrows p span::before{content:"\25CF ";font-size:9px}
.gw-ticksep span{color:var(--gw-leaf);padding:0 22px}
.gw-cite b{font:600 14px 'Inter',sans-serif;color:#0A0F1E}
.gw-cursor p:last-child::after{content:"\258C";animation:gw-blink 1.1s steps(1) infinite;margin-left:2px}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.gw-legal h2 { font: 700 24px/1.25 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: var(--gw-navy); margin: 36px 0 10px; }
.gw-legal h3 { font: 700 18px/1.3 'Space Grotesk', sans-serif; letter-spacing: -.01em; color: var(--gw-navy); margin: 26px 0 8px; }
.gw-legal h4 { font: 600 16px/1.35 'Inter', sans-serif; color: var(--gw-navy); margin: 20px 0 6px; }
.gw-legal p, .gw-legal li { font: 400 15.5px/1.75 'Inter', sans-serif; color: var(--gw-muted); }
.gw-legal a { color: var(--gw-green); text-decoration: underline; text-underline-offset: 2px; }
.gw-legal a:hover { color: var(--gw-deep); }

/* ---------- Kontaktseite ---------- */
.gw-contactrows p span { text-transform: none; }
.gw-contactrows p span a { color: var(--gw-leaf); text-decoration: none; transition: color .15s; }
.gw-contactrows p span a:hover { color: #8CD9A0; }

/* WPForms im Markendesign */
.gw-form .wpforms-container input[type=text],
.gw-form .wpforms-container input[type=email],
.gw-form .wpforms-container input[type=tel],
.gw-form .wpforms-container textarea,
.gw-form .wpforms-container select {
  background: #FFFFFF;
  border: 1px solid var(--gw-rule);
  border-radius: 2px;
  padding: 12px 14px;
  font: 400 15px 'Inter', sans-serif;
  color: var(--gw-text);
  transition: border-color .2s ease, box-shadow .2s ease;
  max-width: 100%;
}
.gw-form .wpforms-container input:focus,
.gw-form .wpforms-container textarea:focus,
.gw-form .wpforms-container select:focus {
  border-color: var(--gw-green);
  box-shadow: 0 0 0 3px rgba(45, 139, 78, .12);
  outline: none;
}
.gw-form .wpforms-container ::placeholder { color: #9AA8A0; }
.gw-form .wpforms-container .wpforms-field input:not([type=checkbox]):not([type=radio]),
.gw-form .wpforms-container .wpforms-field select,
.gw-form .wpforms-container .wpforms-field textarea { width: 100%; max-width: 100%; }
.gw-form .wpforms-container .wpforms-field-label {
  font: 600 14px 'Inter', sans-serif;
  color: var(--gw-navy);
}
.gw-form .wpforms-container .wpforms-required-label { color: var(--gw-orange); }
.gw-form .wpforms-container button[type=submit] {
  background: var(--gw-green) !important;
  border: none !important;
  border-radius: 2px !important;
  color: #fff !important;
  padding: 15px 32px !important;
  font: 600 15px 'Inter', sans-serif !important;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease !important;
}
.gw-form .wpforms-container button[type=submit]:hover {
  background: var(--gw-deep) !important;
  transform: translateY(-1px);
}

/* Robuste Selektoren für Elementor-4-Optimized-Markup (ohne .elementor-widget-container) */
.gw-marquee{overflow:hidden;white-space:nowrap;max-width:100%}
.gw-marquee p{display:inline-block;white-space:nowrap;margin:0;animation:gw-mq var(--gw-mq-speed,32s) linear infinite;will-change:transform}
.gw-marquee:hover p{animation-play-state:paused}
.gw-mono p,.gw-mono li{font-family:'IBM Plex Mono',monospace}
.gw-log{background:rgba(0,0,0,.4);border-radius:8px;padding:12px 14px}
.gw-log p{font-family:'IBM Plex Mono',monospace;font-size:11px;line-height:1.9;color:#5F7568;margin:0}
.gw-textlink p{margin:0}
