/* 
   EVERA FACILITY - CUSTOM CSS OVERRIDE
   Füge diesen Code in deine custom.css ein oder erstelle eine neue CSS-Datei
   und binde sie NACH allen anderen CSS-Dateien ein
*/

:root {
  --evera-sand: #BBA98F;
  --evera-sand-light: #D4C9B8;
  --evera-sand-dark: #9D8B73;
  --evera-brown: #8C6D3B;
  --evera-brown-dark: #6e522d;
  
  /* 3-stufiges Hintergrund-System */
  --evera-bg-base: #F5F3F0;      /* Basis - sehr helles Warmgrau */
  --evera-bg-content: #FAFAF8;   /* Content-Bereiche - helles Warmgrau */
  --evera-bg-elevated: #EEEAE5;  /* Hervorgehobene Bereiche - sichtbar grau */
}

/* ============================================
   0. GLOBALE HINTERGRUND-ANPASSUNGEN
   ============================================ */

/* Basis-Hintergrund für die gesamte Seite */
body {
  background: var(--evera-bg-base) !important;
}

/* Page-Wrapper */
.page-wrapper {
  background: var(--evera-bg-base);
}

/* Main-Container */
.main-container,
section {
  background: var(--evera-bg-base);
}

/* Content-Bereiche heller */
.card,
.box-style-2,
.box-style-3,
.modal-content,
input[type="text"],
input[type="email"],
input[type="file"],
textarea {
  background: var(--evera-bg-content) !important;
}

/* Input-Felder mit weißem Hintergrund für besseren Kontrast */
input[type="text"],
input[type="email"],
input[type="file"],
textarea {
  background: #fff !important;
  border: 1px solid rgba(187, 169, 143, 0.3);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  background: #fff !important;
  border-color: var(--evera-sand);
  box-shadow: 0 0 0 3px rgba(187, 169, 143, 0.1);
}

/* Wrapper für Rechner */
.wrap {
  background: transparent;
}

/* Calculator-Grid */
.calculator-grid {
  background: transparent;
}

/* ============================================
   1. HEADER & NAVIGATION
   ============================================ */

/* Aktive Navigation mit Sandton */
.navbar-nav > li.active > a,
.navbar-nav > li > a:hover {
  color: var(--evera-sand) !important;
  border-bottom: 2px solid var(--evera-sand);
}

/* Logo-Container mit sanftem Hintergrund */
.header-left {
  background: linear-gradient(135deg, rgba(187, 169, 143, 0.05) 0%, transparent 100%);
  padding: 10px;
  border-radius: 8px;
}

/* ============================================
   2. BANNER
   ============================================ */

/* Banner mit dunklem Overlay für bessere Lesbarkeit + Sandton-Akzent */
.banner .light-translucent-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

/* Sandton-Akzent als dünner Streifen am unteren Rand */
.banner .light-translucent-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--evera-sand) 50%, transparent 100%);
  z-index: 2;
}

.banner .container {
  position: relative;
  z-index: 3;
}

/* Text im Banner besser lesbar */
.banner h1,
.banner .lead,
.banner p {
  color: #fff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Separator in Sandton */
.separator, .separator-2 {
  background: var(--evera-sand) !important;
  box-shadow: 0 2px 8px rgba(187, 169, 143, 0.3);
}

/* ============================================
   3. BREADCRUMBS
   ============================================ */

.breadcrumb {
  background: linear-gradient(135deg, var(--evera-sand-light) 0%, #f8f8f8 100%);
  border: 1px solid var(--evera-sand);
  border-radius: 6px;
}

.breadcrumb > li > a {
  color: var(--evera-brown);
  transition: color 0.3s ease;
}

.breadcrumb > li > a:hover {
  color: var(--evera-sand-dark);
}

.breadcrumb > .active {
  color: var(--evera-sand-dark);
  font-weight: 600;
}

/* ============================================
   4. SERVICE BOXES (Kernaufgaben)
   ============================================ */

/* Icon-Container in Sandton statt Braun */
.box-style-3 .icon-container.default-bg,
.box-style-2 .icon-container.default-bg {
  background: linear-gradient(135deg, var(--evera-sand) 0%, var(--evera-sand-dark) 100%) !important;
  box-shadow: 0 4px 12px rgba(187, 169, 143, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-style-3:hover .icon-container.default-bg,
.box-style-2:hover .icon-container.default-bg {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(187, 169, 143, 0.5);
}

/* Box-Hover-Effekt */
.box-style-2,
.box-style-3 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.box-style-2:hover,
.box-style-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(187, 169, 143, 0.2);
  border-color: var(--evera-sand-light);
}

/* ============================================
   5. BUTTONS
   ============================================ */

/* Alle Buttons in Sandton */
.btn.btn-white.more,
.btn-default,
.btn-gray-transparent {
  background: var(--evera-sand) !important;
  color: #fff !important;
  border: 2px solid var(--evera-sand) !important;
  transition: all 0.3s ease;
}

.btn.btn-white.more:hover,
.btn-default:hover,
.btn-gray-transparent:hover {
  background: var(--evera-sand-dark) !important;
  border-color: var(--evera-sand-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(187, 169, 143, 0.4);
}

/* ============================================
   6. MODAL
   ============================================ */

/* Modal-Header in Content-Farbe */
.modal-header {
  background: var(--evera-bg-content);
  border-bottom: 2px solid var(--evera-sand);
}

.modal-title {
  color: var(--evera-brown-dark);
}

/* List-Icons in Sandton */
.list-icons > li > i {
  color: var(--evera-sand) !important;
}

/* Modal-Footer Button */
.modal-footer .btn {
  background: var(--evera-sand) !important;
  color: #fff !important;
  border: none !important;
}

.modal-footer .btn:hover {
  background: var(--evera-sand-dark) !important;
}

/* ============================================
   7. PROZESS-TABS
   ============================================ */

/* Nav-Pills in Sandton */
.nav-pills.white > li.active > a {
  background: var(--evera-sand) !important;
  color: #fff !important;
  border: none !important;
}

.nav-pills.white > li > a:hover {
  background: var(--evera-sand-light) !important;
  color: var(--evera-brown-dark) !important;
}

/* Tab-Pane Überschriften */
.tab-content h3 {
  color: var(--evera-brown);
  border-left: 4px solid var(--evera-sand);
  padding-left: 15px;
  margin-bottom: 20px;
}

/* ============================================
   8. FOOTER
   ============================================ */

/* Footer mit Sandton-Akzenten */
#footer {
  border-top: 3px solid var(--evera-sand);
}

.footer h2 {
  color: var(--evera-sand-dark);
  border-bottom: 2px solid var(--evera-sand);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Footer Links */
.footer .nav-pills > li > a:hover,
.footer .nav-pills > li.active > a {
  background: var(--evera-sand-light);
  color: var(--evera-brown);
  border-radius: 4px;
}

/* Social Links */
.social-links.circle > li > a {
  border: 2px solid var(--evera-sand);
  transition: all 0.3s ease;
}

.social-links.circle > li > a:hover {
  background: var(--evera-sand) !important;
  border-color: var(--evera-sand) !important;
  transform: scale(1.1);
}

/* ============================================
   9. BLOCKQUOTE (Footer-Top)
   ============================================ */

blockquote.inline {
  border-left: 4px solid var(--evera-sand);
  background: linear-gradient(90deg, rgba(187, 169, 143, 0.1) 0%, transparent 100%);
  padding: 20px 30px;
  border-radius: 0 8px 8px 0;
}

blockquote.inline footer {
  color: var(--evera-sand-dark);
}

/* ============================================
   10. PREISRECHNER (Anpassung)
   ============================================ */

/* Rechner-Karten mit Sandton-Rahmen */
.card {
  border: 2px solid var(--evera-sand) !important;
  position: relative;
  overflow: hidden;
}

/* Sandton-Akzent-Streifen oben */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--evera-sand) 0%, var(--evera-brown) 100%);
  z-index: 10;
}

/* Checkboxen in Sandton */
.check-item {
  transition: background-color 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.check-item:hover {
  background: rgba(187, 169, 143, 0.1);
}

.check-item input[type="checkbox"] {
  accent-color: var(--evera-sand);
}

/* Range-Slider in Sandton */
input[type="range"] {
  background: var(--evera-sand-light);
}

input[type="range"]::-webkit-slider-thumb {
  background: var(--evera-sand);
}

input[type="range"]::-moz-range-thumb {
  background: var(--evera-sand);
}

/* Preisbox mit Content-Gradient */
.price-box {
  background: linear-gradient(135deg, var(--evera-bg-content) 0%, #fff 100%);
  border: 2px solid var(--evera-sand);
}

/* Evera-Button */
.evera-btn {
  background: var(--evera-sand) !important;
}

.evera-btn:hover {
  background: var(--evera-sand-dark) !important;
  box-shadow: 0 8px 20px rgba(187, 169, 143, 0.3);
}

/* Divider als Sandton-Gradient */
.divider {
  background: linear-gradient(90deg, transparent 0%, var(--evera-sand) 50%, transparent 100%);
  height: 2px;
}

/* ============================================
   11. SCROLL-TO-TOP BUTTON
   ============================================ */

.scrollToTop {
  background: var(--evera-sand) !important;
  border: 2px solid var(--evera-sand-dark);
  transition: all 0.3s ease;
}

.scrollToTop:hover {
  background: var(--evera-sand-dark) !important;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(187, 169, 143, 0.4);
}

/* ============================================
   12. GRAY-BG SECTIONS
   ============================================ */

/* Graue Bereiche etwas dunkler für Kontrast */
.gray-bg,
.section.gray-bg {
  background: var(--evera-bg-elevated) !important;
}

/* Footer auch in elevated */
#footer,
.footer,
.subfooter {
  background: var(--evera-bg-elevated) !important;
}

/* Footer-Top (mit Quote) */
.footer-top {
  background: var(--evera-bg-elevated) !important;
  border-top: 1px solid rgba(187, 169, 143, 0.2);
}

/* Header-Top */
.header-top {
  background: var(--evera-bg-content);
  border-bottom: 1px solid rgba(187, 169, 143, 0.15);
}

/* Header selbst */
.header {
  background: var(--evera-bg-content) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Page-Intro (Breadcrumbs-Bereich) */
.page-intro {
  background: var(--evera-bg-content);
  border-bottom: 1px solid rgba(187, 169, 143, 0.15);
}

/* Section-Title in allen Bereichen */
h1.title, 
h1.page-title {
  color: var(--evera-brown);
  position: relative;
  padding-bottom: 15px;
}

h1.title::after,
h1.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--evera-sand);
  border-radius: 2px;
}

/* ============================================
   13. ANIMATIONEN & HOVER-EFFEKTE
   ============================================ */

/* Sanfte Übergänge für alle interaktiven Elemente */
a, button, .btn, input[type="checkbox"], input[type="range"] {
  transition: all 0.3s ease;
}

/* Hover-Glow für wichtige Elemente */
.btn:hover,
.evera-btn:hover,
.nav-pills > li > a:hover {
  box-shadow: 0 0 20px rgba(187, 169, 143, 0.3);
}

/* ============================================
   14. RESPONSIVE ANPASSUNGEN
   ============================================ */

@media (max-width: 768px) {
  .box-style-2,
  .box-style-3 {
    margin-bottom: 20px;
  }
  
  .card::before {
    height: 3px;
  }
  
  h1.title::after,
  h1.page-title::after {
    width: 60px;
  }
}