/* Custom CSS for Dr. Arne Frick's Website */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Roboto+Slab:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #1e3a8a;    /* Dark blue from logo */
    --primary-green: #4a7c59;   /* Green from logo */
    --primary-gold: #e6b54c;    /* Gold/yellow from logo */
    --light-gray: #f8f9fa;      /* Light gray for backgrounds */
    --medium-gray: #6c757d;     /* Medium gray for text and accents */
    --dark-gray: #343a40;       /* Dark gray for headings */
    --white: #ffffff;           /* White for backgrounds */
    --off-white: #f5f5f5;       /* Off-white for subtle backgrounds */
    --footer-text: #f5f5f5;     /* Brighter text for footer */
}

/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    padding-top: 56px;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    color: var(--primary-blue);
}

a {
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--medium-gray);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--primary-blue);
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Flaggen leicht abrunden und optisch angleichen */
.navbar img[alt="Deutsch"],
.navbar img[alt="English"] {
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary {
    background-color: var(--medium-gray);
    border-color: var(--medium-gray);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-light {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-blue);
}

.btn-light:hover {
    background-color: var(--off-white);
    border-color: var(--off-white);
    color: var(--primary-blue);
}

/* Sections */
.bg-light {
    background-color: var(--light-gray) !important;
}

.bg-primary {
    background-color: var(--off-white) !important;
    color: var(--dark-gray) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.cta-section {
    background-color: var(--medium-gray) !important;
    color: var(--white) !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--primary-blue);
}

/* Badges */
.badge.bg-primary {
    background-color: var(--medium-gray) !important;
    color: var(--white) !important;
}

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

.badge.bg-info {
    background-color: var(--primary-gold) !important;
    color: var(--dark-gray) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-section h1 {
    color: var(--primary-blue);
    font-weight: 700;
}

.hero-section h2 {
    color: var(--dark-gray);
}

.hero-section h3 {
    color: var(--medium-gray);
    font-size: 1.2rem;
}

/* Timeline for Career */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background-color: var(--light-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.4em;
    line-height: 50px;
    color: var(--white);
    z-index: 100;
}

.timeline-badge.bg-primary {
    background-color: var(--medium-gray) !important;
}

.timeline-panel {
    position: relative;
    width: 46%;
    float: left;
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
}

.timeline-item:nth-child(even) .timeline-panel {
    float: right;
}

.timeline-item:nth-child(odd) .timeline-panel:before {
    content: '';
    position: absolute;
    top: 26px;
    right: -15px;
    border-top: 15px solid transparent;
    border-left: 15px solid var(--light-gray);
    border-right: 0 solid var(--light-gray);
    border-bottom: 15px solid transparent;
}

.timeline-item:nth-child(even) .timeline-panel:before {
    content: '';
    position: absolute;
    top: 26px;
    left: -15px;
    border-top: 15px solid transparent;
    border-right: 15px solid var(--light-gray);
    border-left: 0 solid var(--light-gray);
    border-bottom: 15px solid transparent;
}

/* Project Items */
.project-filters .btn-group {
    margin-bottom: 20px;
}

.project-filters .btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.project-filters .btn-outline-primary:hover,
.project-filters .btn-outline-primary.active {
    background-color: var(--medium-gray);
    border-color: var(--medium-gray);
    color: var(--white);
}

/* Contact Section */
.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: var(--medium-gray) !important;
}

/* Form elements */
.form-control:focus {
    border-color: var(--medium-gray);
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

/* Footer */
footer {
    background-color: var(--dark-gray) !important;
}

footer, footer h5, footer p {
    color: var(--footer-text) !important;
}

footer a {
    color: var(--primary-gold) !important;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-gold) !important;
    text-decoration: underline;
}

/* Impressum */
.impressum-section h3 {
    color: var(--primary-blue);
    margin-top: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .hero-section {
        text-align: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .timeline:before {
        left: 40px;
    }
    
    .timeline-badge {
        left: 40px;
        margin-left: 0;
    }
    
    .timeline-panel {
        width: calc(100% - 90px);
        float: right;
    }
    
    .timeline-item:nth-child(odd) .timeline-panel:before {
        border-left-width: 0;
        border-right-width: 15px;
        left: -15px;
        right: auto;
    }
}

/* === Navbar UX Enhancements === */

/* leicht transparenter Hintergrund bei Scroll */
.navbar.bg-light.fixed-top {
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.9) !important;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Dropdown smooth fade-in */
.dropdown-menu {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
}

/* Flaggen */
.navbar .nav-link img {
  transition: transform 0.2s ease, filter 0.2s ease;
}
.navbar .nav-link img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* aktive Links klarer hervorheben */
.navbar .nav-link.active {
  font-weight: 600;
  color: #0056b3 !important;
}

.navbar.fixed-top {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Dropdown hover */
.dropdown-item:hover {
  background-color: rgba(0, 86, 179, 0.1);
  color: #003d80;
}

.navbar {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.8) !important;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Dropdown weich animiert */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-link:hover {
  color: #003366 !important;
  transition: color 0.2s ease;
}

/* 1. Navbar: leichter Schatten bei Scroll */
.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 2. Dropdown-Links: angenehmer Hover-Hintergrund */
.dropdown-item:hover {
  background-color: rgba(0, 51, 102, 0.08);
}

/* 3. Mobile-Ansicht: größere Klickflächen */
@media (max-width: 992px) {
  .nav-link {
    padding: 0.75rem 1rem;
  }
}

a,
.nav-link,
.dropdown-item {
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.navbar img[alt="DE"],
.navbar img[alt="EN"] {
  transition: transform 0.2s ease;
}
.navbar img[alt="DE"]:hover,
.navbar img[alt="EN"]:hover {
  transform: scale(1.1);
}

