/* ==========================================================================
   Custom CSS for about finance GmbH Website
   ========================================================================== */

/* ==========================================================================
   Font Face Declarations
   ========================================================================== */

/* Inter Font - Light (300) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local(''),
         url('./fonts/inter-v12-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('./fonts/inter-v12-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* Inter Font - Medium (500) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local(''),
         url('./fonts/inter-v12-latin-500.woff2') format('woff2'),
         url('./fonts/inter-v12-latin-500.woff') format('woff');
}

/* Inter Font - Bold (700) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local(''),
         url('./fonts/inter-v12-latin-700.woff2') format('woff2'),
         url('./fonts/inter-v12-latin-700.woff') format('woff');
}




/* ==========================================================================
   Custom Viewport Definitions for Hero Section
   ========================================================================== */

/*
   Custom Breakpoints:
   - Mobile: 0px - 575px
   - Small Tablet: 576px - 767px  
   - Large Tablet: 768px - 991px
   - Small Desktop: 992px - 1199px
   - Large Desktop: 1200px+
*/

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Hero Section - Mobile First Approach */
.hero-bg-desktop {
    display: none; /* Hidden by default on mobile */
}

.hero-bg-mobile {
    display: block;
    width: 100%;
    max-width: 450px;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-mobile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Small Tablets (576px and up) */
@media (min-width: 576px) {
    .hero-bg-mobile {
        max-width: 400px;
        height: 280px;
        margin: 2rem 0;
    }
}

/* Large Tablets (768px and up) */
@media (min-width: 768px) {
    .hero-bg-mobile {
        max-width: 450px;
        height: 320px;
        margin: 2.5rem 0;
    }
}

/* Small Desktops (992px and up) - Switch to desktop layout */
@media (min-width: 992px) {
    .hero-bg-desktop {
        display: block;
        width: 55%;
        height: 75vh;
        background-size: contain;
        background-position: bottom;
        background-repeat: no-repeat;
    }
    
    .hero-bg-mobile {
        display: none;
    }
}

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .hero-bg-desktop {
        width: 55%;
        height: 65vh;
    }
}

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .hero-bg-desktop {
        width: 55%;
        height: 65vh;
    }
}

/* Custom Breakpoint Examples - You can add your own */

/* Example: Custom breakpoint at 900px */
@media (min-width: 900px) and (max-width: 991px) {
    .hero-bg-mobile {
        max-width: 500px;
        height: 350px;
    }
}

/* Example: Very large screens */
@media (min-width: 1920px) {
    .hero-bg-desktop {
        width: 55%;
        height: 70vh;
    }
}

/* ==========================================================================
   Responsive Image Display
   ========================================================================== */

/* Hide extra images by default on mobile */
.extra-img {
    display: none;
}

/* Show extra images on large screens (992px and up) */
@media (min-width: 992px) {
    .extra-img {
        display: block;
    }
}

/* ==========================================================================
   Navigation Enhancements
   ========================================================================== */

/* Optional: Add smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Optional: Enhance navbar appearance when scrolled */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Optional: Add custom utility classes if needed */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.bg-overlay > * {
    position: relative;
    z-index: 2;
}

.py-vh-6 {
    padding-top: 20vh;
    padding-bottom: 6vh;
}

.py-vh-2 {
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 3vh;
    padding-bottom: 3vh;
    border-bottom-left-radius: 10px;
}

.fw-bold {
    font-weight: 700 !important;
    margin-left: 10px;
    margin-right: 10px;
	margin-top: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    margin-left: 10px;
    margin-right: 10px;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    margin-left: 10px;
    margin-right: 10px;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color);
    margin-left: 10px;
    margin-right: 10px;
}

.me-5 {
    margin-right: 0rem !important;
}


/* Ausgangszustand (oben): hohe Navbar */
#navScroll.navbar {
  padding: 1rem 0;                        /* Höhe im Ausgangszustand */
  transition: padding 180ms ease, 
              background-color 180ms ease, 
              backdrop-filter 180ms ease;
  will-change: padding, background-color, backdrop-filter;
}

/* Logo/Brand skalieren */
#navScroll .navbar-brand img {
  height: 64px;       /* Startgröße */
  width: auto;
  transition: height 180ms ease;
}

/* Zustand beim Scrollen: schmaler */
#navScroll.scrolled {
  padding: .35rem 0;                      /* kleinere Höhe */
  background-color: rgba(255,255,255,.85);/* leichte Hinterlegung (optional) */
  backdrop-filter: saturate(180%) blur(8px);
}

/* Logo in der schmalen Variante */
#navScroll.scrolled .navbar-brand img {
  height: 48px;
}

/* Toggler etwas kompakter, damit nichts springt */
#navScroll .navbar-toggler {
  padding: .25rem .5rem;
  line-height: 1;
}

/* Angenehmes Ankerverschieben für Fixed-Navbar */
:where(section[id]) {
  scroll-margin-top: 100px;  /* Verhindert, dass Überschriften unter der Navbar verschwinden */
}

/* Optional: weniger Motion für Nutzer mit reduzierten Animationen */
@media (prefers-reduced-motion: reduce) {
  #navScroll.navbar,
  #navScroll .navbar-brand img {
    transition: none;
  }
}
