/*
Theme Name: palzer.IT
Theme URI: https://palzer.it
Description: Offizielles WordPress-Theme für palzer.IT – IT-Systemhaus Bad Urach
Version: 1.0
Author: Stephan Palzer
Author URI: https://palzer.it
License: Proprietary
Text Domain: palzerit
*/

:root {
  --orange: #E8761A;
  --orange-dark: #d06815;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #18181b;
  color: #d4d4d8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* ── Navbar ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
#site-header.scrolled,
#site-header.always-solid {
  background: rgba(24,24,27,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63,63,70,0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#site-header.transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}
@media (max-width: 1023px) {
  #site-header { background: rgba(24,24,27,0.95) !important; border-bottom: 1px solid rgba(63,63,70,0.5) !important; }
}

/* Mobile menu */
#mobile-menu { display: none; overflow: hidden; transition: max-height 0.3s ease; max-height: 0; }
#mobile-menu.open { display: block; max-height: 500px; }

/* ── Hero ── */
.hero-bg {
  background-color: #18181b;
  background-image:
    radial-gradient(ellipse at 60% 40%, rgba(232,118,26,0.08) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(24,24,27,0.65) 0%, #18181b 100%),
    url("assets/images/schwaebische-alb.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Rotating word fade */
#hero-word { transition: opacity 0.3s ease; display: inline-block; }
#hero-word.fade { opacity: 0; }

/* ── Count-up numbers ── */
.count-number { font-variant-numeric: tabular-nums; }

/* ── Service dialog ── */
.service-dialog-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.service-dialog-overlay.open { opacity: 1; pointer-events: all; }
.service-dialog-box {
  background: #18181b;
  border: 1px solid rgba(63,63,70,0.6);
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  width: 100%; max-width: 600px;
  max-height: 85vh; overflow-y: auto;
  padding: 2rem;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s, opacity 0.25s;
}
.service-dialog-overlay.open .service-dialog-box {
  transform: scale(1) translateY(0);
}

/* ── Cert modal ── */
#cert-modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
#cert-modal-overlay.open { opacity: 1; pointer-events: all; }
#cert-modal-box {
  background: #18181b;
  border: 1px solid rgba(63,63,70,0.6);
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.25s;
}
#cert-modal-overlay.open #cert-modal-box { transform: scale(1) translateY(0); }


/* ── Leaflet overrides ── */
.leaflet-popup-content-wrapper {
  background: #27272a !important;
  border: 1px solid rgba(63,63,70,0.5) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}
.leaflet-popup-tip { background: #27272a !important; }

/* ── AOS overrides ── */

/* ── Timeline dot ── */
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px #18181b;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Copyable contact ── */
.copy-btn { opacity: 0; transition: opacity 0.2s; }
.copy-group:hover .copy-btn { opacity: 1; }

/* ── Misc ── */
.btn-orange {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-orange:hover { background: var(--orange-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(113,113,122,0.5);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--orange); }

input, textarea {
  background: rgba(63,63,70,0.5);
  border: 1px solid rgba(82,82,91,0.5);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  width: 100%;
  outline: none;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: #71717a; }
input:focus, textarea:focus {
  border-color: rgba(232,118,26,0.5);
  box-shadow: 0 0 0 2px rgba(232,118,26,0.2);
  background: rgba(63,63,70,0.8);
}
textarea { resize: none; }

/* Checkbox */
input[type="checkbox"] { width: auto; accent-color: var(--orange); }

a { color: inherit; }
