/*
Theme Name: Vision Divi Child
Theme URI: https://vision.sascha-kohler.at
Description: Divi Child Theme mit aktuellen Alpine-Agentur-Styles (Charcoal + Signalgelb).
Author: Sascha Kohler
Author URI: https://vision.sascha-kohler.at
Template: Divi
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vision-divi-child
*/

:root {
  /* Alpine-Agentur-Design (Charcoal + Signalgelb) */
  --g-dark: #202325;
  --g-darker: #17191a;
  --g-surface: #2b2f31;
  --g-line: rgba(255, 255, 255, 0.12);
  --g-accent: #ffd400;
  --g-accent-deep: #e6be00;
  --g-muted: rgba(255, 255, 255, 0.62);

  /* Fonts */
  --font-anton: "Anton", Impact, sans-serif;
  --font-fraunces: "Fraunces", Georgia, serif;
  --font-geist-sans: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-geist-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--g-dark);
  color: #fff;
  font-family: var(--font-geist-sans);
}

::selection {
  background: var(--g-accent);
  color: var(--g-darker);
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 639px) {
  html {
    scroll-padding-top: 6rem;
  }
}

/* --- Haptik & Micro-Interactions --- */

/* Pulsierender Live-Indikator */
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.6);
  }
  60% {
    box-shadow: 0 0 0 5px rgba(255, 212, 0, 0);
  }
}

.live-dot {
  display: inline-block;
  border-radius: 9999px;
  animation: pulse-dot 1.8s ease-out infinite;
}

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =====================================================================
   Alpine-Agentur-Design-Utilities
   Bold-Alpine-Agentur-Look: Charcoal + Signalgelb, kantige Diagonalen.
   ===================================================================== */

.font-anton {
  font-family: var(--font-anton);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.92;
}

.font-fraunces {
  font-family: var(--font-fraunces);
}

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

/* Signalgelber Bracket-Kicker „[ ... ]" */
.g-kicker {
  color: var(--g-accent);
  font-family: var(--font-geist-mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
}

.g-kicker::before {
  content: "[ ";
}

.g-kicker::after {
  content: " ]";
}

/* Endlos laufender Ticker */
@keyframes g-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.g-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: g-marquee 22s linear infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .g-marquee-track {
    animation: none;
  }
}

/* Diagonale Sektionskante */
.g-slant-top {
  clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
}

/* Karten-Hover mit hartem Gelb-Schatten */
.g-card {
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.g-card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 0 0 var(--g-accent);
  border-color: var(--g-accent) !important;
}

@media (prefers-reduced-motion: reduce) {
  .g-card,
  .g-card:hover {
    transform: none;
    transition: none;
  }
}

/* Druckbarer CTA im Gelb-Stil */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 5px 5px 0 0 rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.g-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 rgba(0, 0, 0, 0.35);
}

.g-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .g-btn,
  .g-btn:hover,
  .g-btn:active {
    transform: none;
    transition: none;
  }
}

/* Diagonaler Karo-Placeholder für fehlende Bilder */
.g-placeholder {
  background-color: var(--g-surface);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 12px
  );
}

/* Feines Papierkorn über der ganzen Seite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Divi-spezifische Anpassungen --- */

#main-content,
.et_pb_section,
.et_builder_inner_content {
  background-color: transparent;
}

.et_pb_button {
  font-family: var(--font-geist-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* --- Contact Form: Fehlermeldungen deutlicher sichtbar --- */

.et-pb-contact-message:empty {
  display: none;
}

.et-pb-contact-message {
  background-color: rgba(255, 212, 0, 0.14);
  border-left: 4px solid var(--g-accent, #ffd400);
  padding: 20px 22px;
  margin-bottom: 24px;
  color: #fff;
  font-family: var(--font-geist-sans);
  font-size: 16px;
  line-height: 1.55;
}

.et-pb-contact-message p {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
}

.et-pb-contact-message p:last-of-type,
.et-pb-contact-message p.et_normal_padding {
  margin-top: 18px;
  margin-bottom: 14px;
}

.et-pb-contact-message ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}

.et-pb-contact-message ul:last-child {
  margin-bottom: 0;
}

.et-pb-contact-message li {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.95);
}

.et_pb_contact_error_text {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.45;
  display: block;
}

/* Fehlerhafte Felder stärker hervorheben */
.et_pb_contact .et_pb_contact_form .et_pb_contact_field.et_contact_error input,
.et_pb_contact .et_pb_contact_form .et_pb_contact_field.et_contact_error textarea,
.et_pb_contact .et_pb_contact_form .et_pb_contact_field.et_contact_error select {
  border: 2px solid #ff6b6b !important;
  background-color: rgba(255, 107, 107, 0.1) !important;
}

.et_pb_contact .et_pb_contact_form .et_pb_contact_field.et_contact_error label,
.et_pb_contact .et_pb_contact_form .et_pb_contact_field.et_contact_error .et_pb_contact_form_label,
.et_pb_contact .et_pb_contact_form .et_pb_contact_field.et_contact_error .et_pb_contact_field_options_title {
  color: #ff6b6b !important;
  font-weight: 600;
}
