/* ═══════════════════════════════════════════════════════
   Bott Bautenschutz – Shared Theme
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ───────────────────────────── */
:root {
  --primary:       #0149AC;
  --primary-dark:  #685438;
  --primary-light: #88e6ff;

  --nav-bg:        #1c1c1c;
  --nav-border:    rgba(255, 255, 255, 0.08);
  --nav-text:      #e0e0e0;
  --nav-active:    #e8a040;
  --nav-active-bg: rgba(232, 160, 64, 0.12);

  --footer-bg:     #111111;

  --font-sans:     'Open Sans', system-ui, sans-serif;
  --font-display:  'Oswald', system-ui, sans-serif;
}

/* ── Base ────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); }

/* ── Typography ─────────────────────────────────────── */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* ── Transitions ────────────────────────────────────── */
.transition-all { transition: all 0.25s ease; }

/* ── Parallax ───────────────────────────────────────── */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .parallax { background-attachment: scroll; }
}

/* ── Dividers ───────────────────────────────────────── */
.hw-divider {
  width: 56px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 1.5rem;
}
.hw-divider-left {
  width: 56px;
  height: 4px;
  background: var(--primary);
  margin: 0 0 1.5rem;
}

/* ── Buttons ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  padding: 1rem 2rem;
  color: #fff;
  background: var(--primary);
  transition: background 0.25s ease;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  padding: 0.875rem 2rem;
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Cards ──────────────────────────────────────────── */
.card-primary {
  background: #fff;
  border-left: 4px solid var(--primary);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
}
.card-primary:hover { transform: translateY(-4px); }

/* ── Section label (colored eyebrow text) ───────────── */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--primary);
}

/* ── Mobile optimizations ───────────────────────────── */

/* Prevent horizontal scroll */
html, body { overflow-x: hidden; max-width: 100%; }

/* Prevent iOS zoom on input focus */
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px !important; }
}

/* Long words / URLs don't break layout */
h1, h2, h3, p { word-break: break-word; overflow-wrap: break-word; }

/* hw-divider-left centers on mobile */
@media (max-width: 767px) {
  .hw-divider-left { margin-left: auto; margin-right: auto; }
}

/* Reduce image min-height in split sections on mobile */
@media (max-width: 767px) {
  .min-h-\[400px\] { min-height: 260px !important; }
}

/* Ensure buttons don't overflow on small screens */
@media (max-width: 480px) {
  a[style*="background:#0149AC"],
  button[style*="background:#0149AC"] {
    width: 100%;
    justify-content: center;
  }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  nav a, nav button { min-height: 44px; }
}

/* ── Nav helpers ────────────────────────────────────── */
.nav-link {
  color: var(--nav-text);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}
.nav-link:hover  { background: rgba(255,255,255,0.07); }
.nav-link.active { background: var(--nav-active-bg); color: var(--nav-active); }
