/*==============================================================
# Hochfranken Havarie – Sven Meiler
# Custom Stylesheet (Bootstrap 5.3) – Optik nach Vorlage /test/
# inkl. Hell-/Dunkel-Umschaltung (data-bs-theme)
#================================================================*/

:root {
  /* Markenfarben */
  --accent: #a10404;
  --accent-light: #c41616;
  --accent-dark: #7a0303;
  --heading: #273d4e;
  --heading-light: #3a5a73;
  --default: #444444;
  --default-light: #666666;
  --surface: #ffffff;
  --bg-light: #f5f7fa;
  --bg-lighter: #fafbfc;
  --line: #eeeeee;
  --nav-bg: rgba(21, 34, 43, 0.95);
  --nav-bg-scrolled: rgba(15, 22, 28, 0.97);
  --nav-color: #e5eaee;

  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  scroll-behavior: smooth;
}

/* ─── Dunkelmodus ─────────────────────────────── */
[data-bs-theme="dark"] {
  --heading: #e8eef3;
  --heading-light: #b9c7d2;
  --default: #c4ced6;
  --default-light: #93a1ab;
  --surface: #1b2730;
  --bg-light: #141d24;
  --bg-lighter: #18222a;
  --line: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] body { background-color: #10171d; }

/* ─── Global ──────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--default);
  overflow-x: hidden;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
}

a { color: var(--accent); transition: color .3s; text-decoration: none; }
a:hover { color: var(--accent-light); }

.section-padding { padding: 80px 0; }
@media (max-width: 768px) { .section-padding { padding: 50px 0; } }

.bg-soft { background-color: var(--bg-light) !important; }

.skip-link {
  position: absolute; left: 1rem; top: .5rem; z-index: 1100;
  background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: .375rem;
}

/* ─── Preloader ───────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 999999;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-spinner {
  width: 50px; height: 50px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Navigation ──────────────────────────────── */
#header { transition: all .4s; z-index: 997; }
#header .navbar { background: var(--nav-bg); padding: 10px 0; transition: all .3s; }
#header.scrolled .navbar { background: var(--nav-bg-scrolled); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.navbar-brand .logo-svg { height: 42px; width: auto; }
.navbar .nav-link {
  color: var(--nav-color) !important;
  font-family: var(--font-heading);
  font-weight: 500; font-size: .875rem;
  text-transform: uppercase; letter-spacing: .5px;
  padding: .5rem 1rem !important; position: relative;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff !important; }
.navbar .nav-link::after {
  content: ''; position: absolute; bottom: 2px; left: 1rem; right: 1rem;
  height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28229,234,238,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-pill {
  color: var(--nav-color) !important; border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px; padding: .35rem .6rem !important; font-size: .8rem;
}
.nav-pill:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.nav-pill::after { display: none !important; }

/* ─── Buttons ─────────────────────────────────── */
.btn-accent {
  background: var(--accent) !important; color: #fff !important; border: none !important;
  font-weight: 600; transition: all .3s;
}
.btn-accent:hover {
  background: var(--accent-light) !important; color: #fff !important;
  transform: translateY(-1px); box-shadow: 0 4px 15px rgba(161,4,4,.3);
}
.btn-outline-light-2 { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light-2:hover { background: #fff; color: var(--heading); }

.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }

/* ─── Hero ────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative; padding: 120px 0 80px;
  background:
    linear-gradient(135deg, rgba(21,34,43,.86) 0%, rgba(26,45,58,.74) 45%, rgba(39,61,78,.66) 100%),
    url('/assets/img/hero-bg.jpg') center/cover no-repeat;
}
.hero .overlay { position: absolute; inset: 0; background: rgba(21,34,43,.20); }
.hero-badge {
  display: inline-block; background: rgba(161,4,4,.9); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 2px; padding: .35rem 1rem; border-radius: 20px;
}
.hero-logo-wrapper { opacity: .92; }
.hero-logo { width: 200px; height: auto; animation: float 3.4s ease-in-out infinite, hfhGlow 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
@keyframes hfhGlow {
  0%,100% { filter: drop-shadow(0 12px 26px rgba(0,0,0,.5)) drop-shadow(0 0 4px rgba(245,29,42,0)); }
  50%     { filter: drop-shadow(0 12px 26px rgba(0,0,0,.5)) drop-shadow(0 0 22px rgba(245,29,42,.6)); }
}
/* „Flut“: der Wasserpegel steigt beim Laden im Schild auf und wogt leicht. */
.hero-logo .hfh-flood {
  transform: translateY(30px);
  animation: hfhFlood 2.1s cubic-bezier(.22,1,.36,1) .3s forwards, hfhWave 5s ease-in-out 2.4s infinite;
}
@keyframes hfhFlood { from { transform: translateY(30px); } to { transform: translateY(0); } }
@keyframes hfhWave  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  .hero-logo .hfh-flood { animation: none; transform: none; }
}
.hero-meta { color: rgba(255,255,255,.75); }
.hero-meta i { color: var(--accent-light); }
.page-hero { min-height: auto; padding: 150px 0 70px; }
@media (max-width: 991px) { .hero-logo-wrapper { display: none; } }
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 140px 0 60px; text-align: center; }
  .hero h1.display-4 { font-size: 2.2rem; }
}

/* ─── Section Header ──────────────────────────── */
.section-header { margin-bottom: 3rem; }
.section-header .section-subtitle {
  font-size: .8rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: .5rem;
}
.section-header .section-title {
  font-size: 2.2rem; font-weight: 800; text-transform: uppercase;
  color: var(--heading); margin-bottom: .75rem;
}
.section-header .section-desc { color: var(--default-light); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }
@media (max-width: 768px) { .section-header .section-title { font-size: 1.6rem; } }

/* ─── About ───────────────────────────────────── */
.about-card {
  background: var(--surface); padding: 2rem; border-radius: 12px;
  border-left: 4px solid var(--accent); box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s; height: 100%;
}
.about-card:hover { transform: translateX(5px); box-shadow: 0 5px 30px rgba(0,0,0,.1); }
.about-card .icon-box {
  width: 50px; height: 50px; border-radius: 12px; background: rgba(161,4,4,.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.about-card h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--heading); }
.about-text .lead { font-weight: 500; color: var(--heading-light); }
.about-text p { color: var(--default); }

/* ─── Services ────────────────────────────────── */
.service-card {
  background: var(--surface); padding: 2rem; border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,.05); height: 100%; transition: all .3s;
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(0,0,0,.1); border-color: rgba(161,4,4,.15); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .service-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(161,4,4,.08); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; transition: all .3s;
}
.service-card:hover .service-icon { background: var(--accent); color: #fff; }
.service-card h4 { font-size: 1.05rem; margin-bottom: .75rem; }
.service-card p { color: var(--default-light); font-size: .9rem; margin-bottom: 0; }
.service-card.highlight-card { background: linear-gradient(135deg, var(--surface) 0%, rgba(161,4,4,.06) 100%); border-color: rgba(161,4,4,.2); }
.service-card.highlight-card .service-icon { background: var(--accent); color: #fff; }

/* ─── CTA Banner ──────────────────────────────── */
.cta-banner { background: var(--heading); padding: 70px 0; position: relative; overflow: hidden; }
[data-bs-theme="dark"] .cta-banner { background: #0c1217; }
.cta-banner .overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(161,4,4,.3) 0%, transparent 60%); }

/* ─── Pricing ─────────────────────────────────── */
.pricing-card {
  background: var(--surface); border-radius: 16px; box-shadow: 0 3px 25px rgba(0,0,0,.06);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s; position: relative;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.pricing-card.pricing-featured { border: 2px solid var(--accent); transform: scale(1.03); }
.pricing-card.pricing-featured:hover { transform: scale(1.03) translateY(-5px); }
.pricing-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 14px; border-radius: 20px; }
.pricing-header { padding: 2rem 2rem 1.5rem; text-align: center; border-bottom: 1px solid var(--line); }
.pricing-icon {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(161,4,4,.08); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1rem;
}
.pricing-card.pricing-featured .pricing-icon { background: var(--accent); color: #fff; }
.pricing-header h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.price { margin-bottom: .25rem; }
.price .currency { font-size: 1.2rem; font-weight: 700; vertical-align: top; color: var(--heading); }
.price .amount { font-size: 3rem; font-weight: 800; color: var(--heading); line-height: 1; font-family: var(--font-heading); }
.price .period { font-size: .85rem; color: var(--default-light); }
.pricing-sub { font-size: .9rem; color: var(--heading); font-weight: 600; }
.pricing-body { padding: 1.5rem 2rem; flex: 1; }
.pricing-features { list-style: none; padding: 0; margin: 0; }
.pricing-features li { padding: .55rem 0; color: var(--default-light); font-size: .9rem; display: flex; align-items: center; gap: .6rem; }
.pricing-features li i { color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.pricing-nacht { padding: 1.25rem 2rem; border-top: 1px solid var(--line); background: var(--bg-lighter); }
.nacht-item { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; font-size: .9rem; }
.nacht-time { color: var(--default); }
.nacht-percent { font-weight: 700; color: var(--accent); font-size: 1.1rem; }

/* ─── Contact ─────────────────────────────────── */
.contact-info-card, .contact-form-card {
  background: var(--surface); border-radius: 16px; box-shadow: 0 3px 25px rgba(0,0,0,.06);
  padding: 2.5rem; height: 100%;
}
.contact-avatar { text-align: center; margin-bottom: 1.5rem; }
.avatar-circle {
  width: 80px; height: 80px; border-radius: 50%; background: var(--heading); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700;
  font-family: var(--font-heading); margin-bottom: 1rem;
}
.contact-role { color: var(--accent); font-weight: 600; }
.contact-details { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.contact-item { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item i {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(161,4,4,.08); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px;
}
.contact-item h5 { font-size: .9rem; margin-bottom: .15rem; }
.contact-item p, .contact-item a { font-size: .9rem; color: var(--default-light); margin: 0; }
.contact-form .form-control, .contact-form .form-select {
  border: 1px solid var(--line); padding: .7rem 1rem; border-radius: 8px; font-size: .9rem;
  background: var(--surface); color: var(--default);
  transition: border-color .3s, box-shadow .3s;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(161,4,4,.1);
}
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }
.contact-form .form-label { font-weight: 600; font-size: .85rem; color: var(--heading); }

/* ─── Footer ──────────────────────────────────── */
.footer { background: #15222b; color: rgba(255,255,255,.7); padding: 60px 0 0; font-size: .9rem; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--accent-light); }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; font-weight: 700; }
.footer-logo-svg { height: 34px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { padding: .4rem 0; }
.footer-links a { display: flex; align-items: center; gap: .4rem; }
.footer-links i { font-size: .7rem; }
.footer-contact i { width: 20px; color: var(--accent-light); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0 1.5rem; }
.footer-bottom { padding-bottom: 1.5rem; }

/* ─── Scroll Top ──────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 20px; right: 20px; z-index: 999; border: none;
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.5rem;
  opacity: 0; visibility: hidden; transition: all .4s; display: inline-flex; align-items: center; justify-content: center;
}
.scroll-top.active { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent-light); color: #fff; }

/* ─── Admin / Statistik ───────────────────────── */
.stat-card { background: var(--surface); border-radius: 14px; box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--heading); font-family: var(--font-heading); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(161,4,4,.1); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; flex: none;
}
.bar-track { background: var(--bg-light); border-radius: 1rem; height: .65rem; overflow: hidden; }
.bar-fill { background: var(--accent); height: 100%; }

/* ─── Auth ────────────────────────────────────── */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; }
.auth-card { max-width: 26rem; width: 100%; border-radius: 16px; background: var(--surface); box-shadow: 0 3px 25px rgba(0,0,0,.08); }

/* ─── Legal text ──────────────────────────────── */
.legal-content h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal-content p { color: var(--default); }

/* ─── Responsive Tweaks ───────────────────────── */
@media (max-width: 991px) {
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link { padding: .6rem 1rem !important; border-bottom: 1px solid rgba(255,255,255,.05); }
  .pricing-card.pricing-featured { transform: none; }
  .pricing-card.pricing-featured:hover { transform: translateY(-5px); }
}
