/* Custom Component Styles - German Government Official Style */

/* ===== GERMAN GOVERNMENT TYPOGRAPHY ===== */
/* Based on BundesSans/BundesSerif styling used by official German government websites */

:root {
  /* Official German Government Color Palette */
  --bund-primary: #004B76;      /* Bundesblau - Official German Government Blue */
  --bund-secondary: #1D1D1B;    /* Near black for text */
  --bund-accent: #B8860B;       /* Gold accent */
  --bund-light: #E8F4F8;        /* Light blue background */
  --bund-gray: #6B7280;         /* Neutral gray */
  --bund-border: #D1D5DB;       /* Border gray */
  --bund-success: #004B76;      /* Using primary blue instead of green */
  --bund-warning: #D97706;      /* Warning orange */
  
  /* Override Bootstrap Variables */
  --bs-primary: #004B76 !important;
  --bs-primary-rgb: 0, 75, 118 !important;
  --bs-success: #004B76 !important;
  --bs-success-rgb: 0, 75, 118 !important;
}

html, body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bund-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 600 !important;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p, span, div, a, li, td, th, label {
  font-family: 'Source Sans 3', sans-serif !important;
}

/* ===== GERMAN GOVERNMENT BUTTON STYLES ===== */
/* Official Bund.de style buttons - Override Bootstrap completely */

* {
  -webkit-tap-highlight-color: transparent;
}

/* Reset all button styles */
.btn {
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0 !important;
  border: 2px solid transparent !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Primary Button - Official German Government Style */
.btn-primary,
.btn-success {
  background-color: #004B76 !important;
  border-color: #004B76 !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  background-color: #003d61 !important;
  border-color: #003d61 !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 75, 118, 0.3) !important;
}

.btn-primary:active,
.btn-success:active {
  background-color: #002d47 !important;
  border-color: #002d47 !important;
  transform: none !important;
}
.btn-success {
  background-color: var(--bund-primary) !important;
  border-color: var(--bund-primary) !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  background-color: #003d61 !important;
  border-color: #003d61 !important;
  color: #ffffff !important;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 75, 118, 0.3);
}

.btn-primary:active,
.btn-success:active {
  background-color: #002d47 !important;
  border-color: #002d47 !important;
  transform: none;
}

/* Secondary/Outline Button - German Government Style */
.btn-outline-primary,
.btn-outline-success {
  background-color: transparent !important;
  border: 2px solid var(--bund-primary) !important;
  color: var(--bund-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
  background-color: var(--bund-primary) !important;
  border-color: var(--bund-primary) !important;
  color: #ffffff !important;
  transform: none;
  box-shadow: none;
}

/* Light Button */
.btn-light {
  background-color: #ffffff !important;
  border: 2px solid var(--bund-primary) !important;
  color: var(--bund-primary) !important;
}

.btn-light:hover,
.btn-light:focus {
  background-color: var(--bund-light) !important;
  border-color: var(--bund-primary) !important;
  color: var(--bund-primary) !important;
  transform: none;
  box-shadow: none;
}

/* Outline Light Button (for dark backgrounds) */
.btn-outline-light {
  background-color: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--bund-primary) !important;
  transform: none;
  box-shadow: none;
}

/* Large Buttons */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Small Buttons */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Button with icon - government style arrow */
.btn svg,
.btn i {
  transition: transform 0.2s ease;
}

.btn:hover svg,
.btn:hover i {
  transform: translateX(3px);
}

/* ===== GOVERNMENT STYLE CARDS ===== */
.card {
  border: 1px solid var(--bund-border);
  border-radius: 0;
  box-shadow: none;
}

.card:hover {
  border-color: var(--bund-primary);
  box-shadow: 0 4px 12px rgba(0, 75, 118, 0.1);
}

.card-header {
  background-color: var(--bund-light);
  border-bottom: 2px solid var(--bund-primary);
  font-weight: 600;
}

/* Card Hover Effects - Subtle government style */
.hover-shadow {
  transition: all 0.2s ease;
}

.hover-shadow:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 75, 118, 0.15) !important;
}

/* ===== NAVIGATION - GOVERNMENT STYLE ===== */
/* Navbar background override */
.navbar.bg-primary,
.bg-primary.sticky-top {
  background-color: #004B76 !important;
}

.navbar-nav .nav-link {
  font-family: 'Source Sans 3', sans-serif !important;
  position: relative;
  transition: all 0.2s ease;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--bund-primary);
  transition: width 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--bund-primary) !important;
}

/* ===== DROPDOWN MENU - GOVERNMENT STYLE ===== */
.dropdown-menu {
  border: 1px solid var(--bund-border);
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.2s ease;
}

.dropdown-item {
  font-family: 'Source Sans 3', sans-serif;
  transition: all 0.2s ease;
  padding: 0.75rem 1.5rem;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background-color: var(--bund-light);
  padding-left: 1.5rem;
  color: var(--bund-primary);
  border-left-color: var(--bund-primary);
}

/* Mobile Menu Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(0,0,0,0.95);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
  }
  
  .dropdown-menu {
    background-color: rgba(255,255,255,0.05);
    border: none;
    margin-left: 1rem;
  }
  
  .dropdown-item {
    color: rgba(255,255,255,0.8);
  }
  
  .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--bs-secondary);
  }
}

/* Topbar Link Hover */
.hover-text-secondary:hover {
  color: var(--bs-secondary) !important;
  transition: color 0.3s ease;
}

/* Sticky Navbar Shadow */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Pricing Card Scale Effect */
.pricing-card-featured {
  transform: scale(1.05);
  z-index: 10;
}

@media (max-width: 991.98px) {
  .pricing-card-featured {
    transform: scale(1);
  }
}

/* ===== TABLE - GOVERNMENT STYLE ===== */
.table-responsive {
  border: 1px solid var(--bund-border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.table {
  margin-bottom: 0;
  font-family: 'Source Sans 3', sans-serif;
}

.table thead {
  background: var(--bund-primary);
  color: white;
}

.table th {
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--bund-primary);
}

.table td {
  border-color: var(--bund-border);
}

.table-success,
.table-primary {
  background-color: var(--bund-light) !important;
}

/* ===== BADGES - GOVERNMENT STYLE ===== */
.badge {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 0;
  padding: 0.4em 0.8em;
}

.badge.bg-success,
.badge.bg-primary {
  background-color: var(--bund-primary) !important;
}

/* ===== ACCORDION - GOVERNMENT STYLE ===== */
.accordion-button {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bund-light);
  color: var(--bund-primary);
  border-left: 4px solid var(--bund-primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 75, 118, 0.2);
  border-color: var(--bund-primary);
}

.accordion-item {
  border: 1px solid var(--bund-border);
  border-radius: 0;
}

/* ===== FORMS - GOVERNMENT STYLE ===== */
.form-control,
.form-select {
  font-family: 'Source Sans 3', sans-serif;
  border-radius: 0;
  border: 1px solid var(--bund-border);
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bund-primary);
  box-shadow: 0 0 0 3px rgba(0, 75, 118, 0.15);
}

.form-label {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  color: var(--bund-secondary);
}

/* Professional Section Spacing - Following 8px Grid System */
:root {
  --section-spacing-sm: 48px;   /* 6 * 8px */
  --section-spacing-md: 80px;   /* 10 * 8px */
  --section-spacing-lg: 120px;  /* 15 * 8px */
  --section-spacing-xl: 160px;  /* 20 * 8px */
}

.section-spacing {
  padding: var(--section-spacing-md) 0;
}

.section-spacing-sm {
  padding: var(--section-spacing-sm) 0;
}

.section-spacing-lg {
  padding: var(--section-spacing-lg) 0;
}

.section-spacing-xl {
  padding: var(--section-spacing-xl) 0;
}

/* Responsive spacing */
@media (max-width: 991.98px) {
  :root {
    --section-spacing-sm: 40px;
    --section-spacing-md: 64px;
    --section-spacing-lg: 96px;
    --section-spacing-xl: 128px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-spacing-sm: 32px;
    --section-spacing-md: 48px;
    --section-spacing-lg: 64px;
    --section-spacing-xl: 80px;
  }
}

/* Section bottom margin for better separation */
.section-margin-bottom {
  margin-bottom: var(--section-spacing-md);
}

/* Container max-width for better readability */
.container-narrow {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Touch-friendly tap targets (minimum 44x44px) */
@media (max-width: 767.98px) {
  .btn,
  .nav-link,
  .dropdown-item {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
  }
}

/* Improve readability on mobile */
@media (max-width: 575.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .display-1 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
}

/* Social Icons Consistent Style */
.btn-sm-square {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-sm-square:hover {
  transform: scale(1.1);
}

/* ===== PAGE HEADER - GOVERNMENT STYLE ===== */
.page-header {
  background: var(--bund-primary);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/img/Jagdschein-kaufen-online.jpg') center/cover;
  opacity: 0.08;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb Mobile */
@media (max-width: 575.98px) {
  .breadcrumb {
    font-size: 0.875rem;
  }
}

/* ===== ALERTS - GOVERNMENT STYLE ===== */
.alert {
  font-family: 'Source Sans 3', sans-serif;
  border-left: 4px solid;
  border-radius: 0;
  border-top: 1px solid var(--bund-border);
  border-right: 1px solid var(--bund-border);
  border-bottom: 1px solid var(--bund-border);
}

.alert-info {
  border-left-color: var(--bund-primary);
  background-color: var(--bund-light);
  color: #1D1D1B;
}

.alert-warning {
  border-left-color: var(--bund-warning);
  color: #1D1D1B;
}

.alert-success {
  border-left-color: var(--bund-primary);
  background-color: var(--bund-light);
  color: #1D1D1B;
}

.alert-success .alert-heading,
.alert-info .alert-heading {
  color: var(--bund-primary);
}

.alert-success a,
.alert-info a {
  color: var(--bund-primary);
  font-weight: 600;
}

/* Loading States */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== GOVERNMENT SPECIFIC STYLES ===== */

/* Official-looking section headers */
.section-header {
  border-bottom: 3px solid var(--bund-primary);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

/* Government-style info boxes */
.info-box {
  background-color: var(--bund-light);
  border-left: 4px solid var(--bund-primary);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Official list style */
.official-list {
  list-style: none;
  padding-left: 0;
}

.official-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.official-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--bund-primary);
  font-weight: bold;
  font-size: 1.2em;
}

/* Government badge/seal style */
.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bund-light);
  border: 1px solid var(--bund-primary);
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--bund-primary);
}

/* Text colors override for government palette */
.text-primary {
  color: var(--bund-primary) !important;
}

.text-success {
  color: var(--bund-gold, #B8860B) !important;
}

.bg-primary {
  background-color: var(--bund-primary) !important;
}

.bg-success {
  background-color: var(--bund-gold, #B8860B) !important;
}

.bg-success-subtle {
  background-color: rgba(184, 134, 11, 0.15) !important;
}

.bg-success.bg-opacity-10 {
  background-color: rgba(184, 134, 11, 0.1) !important;
}

/* Border success to gold */
.border-success {
  border-color: var(--bund-gold, #B8860B) !important;
}

/* Alert success to gold */
.alert-success {
  background-color: rgba(184, 134, 11, 0.15) !important;
  border-color: var(--bund-gold, #B8860B) !important;
  color: #7a5d08 !important;
}

/* Link styles - government style */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.gov-footer a):not(.gov-footer-links a):not(.social-links a):not(.legal-links a):not(.contact-item) {
  color: var(--bund-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.gov-footer a):not(.gov-footer-links a):not(.social-links a):not(.legal-links a):not(.contact-item):hover {
  color: #003d61;
  text-decoration: underline;
}

/* Footer specific overrides */
.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Breadcrumb government style */
.breadcrumb {
  font-family: 'Source Sans 3', sans-serif;
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: inherit;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: inherit;
  font-weight: 600;
}

/* List group government style */
.list-group-item {
  border-radius: 0;
  border-color: var(--bund-border);
}

/* Progress bars */
.progress {
  border-radius: 0;
  background-color: var(--bund-light);
}

.progress-bar {
  background-color: var(--bund-primary);
}

/* Button text should always be white */
.btn-primary,
.btn-success,
.btn-warning,
.btn {
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover {
  color: #ffffff !important;
}

.btn-outline-primary,
.btn-outline-success {
  color: var(--bund-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
  color: #ffffff !important;
  background-color: var(--bund-primary) !important;
}

.btn-light {
  color: var(--bund-primary) !important;
}

.btn-light:hover {
  color: var(--bund-primary) !important;
}

/* Gold button styles */
.btn-gold,
.btn-warning {
  background-color: var(--bund-gold, #B8860B) !important;
  border-color: var(--bund-gold, #B8860B) !important;
  color: #ffffff !important;
}

.btn-gold:hover,
.btn-warning:hover {
  background-color: #9A7209 !important;
  border-color: #9A7209 !important;
  color: #ffffff !important;
}
