/* =========================================================================
   HADIAG.COM — Elementor Child Theme
   Design-Sprache: "Server Status" — abgeleitet aus dem eigentlichen Produkt
   (Hosting, SaaS, Mailserver): Signal-Farben wie Status-LEDs, Monospace für
   technische Kennzahlen (Uptime, Ports), ruhige dunkle Panels wie ein
   Server-Dashboard.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Farben */
  --hd-ink:      #0B1220; /* tiefes Navy-Schwarz – Hero- / dunkle Panels */
  --hd-slate:    #16213A; /* Karten / sekundäre Panels auf dunklem Grund */
  --hd-paper:    #F2F4F7; /* kühles Off-White – helle Sections */
  --hd-white:    #FFFFFF;
  --hd-ash:      #5B6B84; /* gedämpfter Fließtext / Meta */
  --hd-ash-100:  #8C9AB3;
  --hd-line:     #E3E7EE; /* Trennlinien auf hellem Grund */
  --hd-line-dark: rgba(255, 255, 255, 0.12); /* Trennlinien auf dunklem Grund */

  --hd-signal:    #2F6FED; /* Primärfarbe / CTA / Links */
  --hd-signal-600:#255ac2;
  --hd-uptime:    #34D399; /* Status "OK" – sparsam einsetzen */
  --hd-alert:     #F59E0B; /* Status "Warnung" / Hervorhebung – sparsam */

  /* Typografie */
  --hd-font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --hd-font-body:    "Inter", "Segoe UI", sans-serif;
  --hd-font-mono:    "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --hd-radius-sm: 6px;
  --hd-radius-md: 12px;
  --hd-container: 1200px;
  --hd-gutter: clamp(20px, 4vw, 64px);
}

/* -------------------------------------------------------------------------
   2. Basis
   ------------------------------------------------------------------------- */
body {
  font-family: var(--hd-font-body);
  color: var(--hd-ink);
  background: var(--hd-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.elementor-heading-title {
  font-family: var(--hd-font-display);
  letter-spacing: -0.01em;
  color: var(--hd-ink);
}

a { color: var(--hd-signal); }
a:hover { color: var(--hd-signal-600); }

::selection {
  background: var(--hd-signal);
  color: var(--hd-white);
}

/* -------------------------------------------------------------------------
   3. Eyebrow / technische Label (Monospace-Kennzeichnung)
   Für Elementor: Text-Widget mit der CSS-Klasse "hd-eyebrow" versehen.
   Beispieltext: "// HOSTING" oder "UPTIME 99.98%"
   ------------------------------------------------------------------------- */
.hd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hd-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hd-signal);
}

.hd-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   4. Signatur-Element: Status-Strip
   Ein schmaler Streifen im "Server-Dashboard"-Stil. Kann per HTML-Widget
   in Elementor eingebunden werden (Markup siehe README).
   Respektiert prefers-reduced-motion.
   ------------------------------------------------------------------------- */
.hd-status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 14px var(--hd-gutter);
  background: var(--hd-ink);
  color: var(--hd-ash-100);
  font-family: var(--hd-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.hd-status-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hd-status-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hd-uptime);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hd-status-strip__dot {
    animation: hd-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes hd-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* -------------------------------------------------------------------------
   5. Dunkle Panels (Hero / Feature-Sections)
   Elementor-Section die Klasse "hd-panel-dark" geben.
   ------------------------------------------------------------------------- */
.hd-panel-dark,
section.hd-panel-dark {
  background-color: var(--hd-ink);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--hd-white);
}

.hd-panel-dark h1,
.hd-panel-dark h2,
.hd-panel-dark h3,
.hd-panel-dark p {
  color: var(--hd-white);
}

.hd-panel-dark .hd-ash-text {
  color: var(--hd-ash-100);
}

/* Karten innerhalb dunkler Panels, z.B. für Leistungen (Webserver / SaaS / Mailserver) */
.hd-card {
  background: var(--hd-slate);
  border: 1px solid var(--hd-line-dark);
  border-radius: var(--hd-radius-md);
  padding: 32px;
}

/* -------------------------------------------------------------------------
   6. Section-Rahmen mit Mono-Label (Layout-Signatur)
   Elementor-Section die Klasse "hd-section-framed" geben, optional
   data-label über das Custom-CSS-Feld des Widgets oder ein
   Shortcode-/HTML-Widget mit .hd-section-label nutzen.
   ------------------------------------------------------------------------- */
.hd-section-framed {
  position: relative;
  border-top: 1px solid var(--hd-line);
  border-bottom: 1px solid var(--hd-line);
}

.hd-panel-dark.hd-section-framed {
  border-top-color: var(--hd-line-dark);
  border-bottom-color: var(--hd-line-dark);
}

.hd-section-label {
  font-family: var(--hd-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hd-ash);
  margin-bottom: 18px;
  display: block;
}

/* -------------------------------------------------------------------------
   7. Buttons (Elementor-Button-Widget & normale Buttons)
   ------------------------------------------------------------------------- */
.elementor-button,
button,
input[type="submit"] {
  font-family: var(--hd-font-body);
  font-weight: 600;
  border-radius: var(--hd-radius-sm) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.elementor-button.hd-btn-primary,
.elementor-button-link.elementor-size-md {
  background: var(--hd-signal);
  color: var(--hd-white);
}

.elementor-button.hd-btn-primary:hover {
  background: var(--hd-signal-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.25);
}

/* -------------------------------------------------------------------------
   8. Site-Header / Site-Footer (siehe header.php / footer.php)
   ------------------------------------------------------------------------- */
.hd-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--hd-line);
}

.hd-site-header__inner {
  max-width: var(--hd-container);
  margin: 0 auto;
  padding: 16px var(--hd-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hd-logo {
  font-family: var(--hd-font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--hd-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hd-logo img { display: block; height: 32px; width: auto; }

.hd-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.hd-nav a {
  color: var(--hd-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.hd-nav a:hover { color: var(--hd-signal); }

.hd-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .hd-nav { display: none; width: 100%; }
  .hd-nav.is-open { display: block; }
  .hd-nav ul { flex-direction: column; gap: 4px; padding: 16px 0; }
  .hd-nav-toggle { display: inline-flex; }
  .hd-site-header__inner { flex-wrap: wrap; }
}

.hd-site-footer {
  background: var(--hd-ink);
  color: var(--hd-ash-100);
  padding: 56px var(--hd-gutter) 28px;
}

.hd-site-footer__inner {
  max-width: var(--hd-container);
  margin: 0 auto;
}

.hd-site-footer a {
  color: var(--hd-white);
}

.hd-site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hd-line-dark);
}

@media (max-width: 780px) {
  .hd-site-footer__grid { grid-template-columns: 1fr 1fr; }
}

.hd-site-footer__col h4 {
  font-family: var(--hd-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hd-ash-100);
  margin-bottom: 14px;
}

.hd-site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.hd-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-family: var(--hd-font-mono);
  font-size: 12px;
  color: var(--hd-ash-100);
}

/* -------------------------------------------------------------------------
   9. Zugänglichkeit
   ------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.elementor-button:focus-visible {
  outline: 2px solid var(--hd-signal);
  outline-offset: 2px;
}

.hd-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hd-signal);
  color: var(--hd-white);
  padding: 10px 16px;
  z-index: 10000;
}

.hd-skip-link:focus {
  left: 16px;
  top: 16px;
}
