/* ============================================= */
/*                                               */
/*              GLOBAL VARIABLES                 */
/*                                               */
/* ============================================= */
:root {
    /* Primary Colors */
    --primary-red: #b90606;
    --darker-red: #9e0303;
    --secondary-red: #d32f2f;
    --accent-red: #c62828;
    --transparent-red: rgba(202, 10, 10, 0.623);
    
    /* Neutral Colors */
    --white: #fff;
    --gray-dark: #302d2d;
    --gray-medium: #6c757d;
    --gray-light: #f8f9fa;
    --gray-lighter: #e9ecef;
    --hover-bg: #f2f2f2;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Layout */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Semantic Colors */
    --primary-color: var(--primary-red);
    --accent-color: var(--accent-red);
    --text-dark: var(--gray-dark);
    --text-light: var(--gray-medium);
    --bg-light: var(--gray-light);
    --border-color: var(--gray-lighter);
}

/* ============================================= */
/*                                               */
/*              GLOBAL STYLES                    */
/*                                               */
/* ============================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--gray-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 2rem;
    text-align: center;
    background: var(--white);
    margin: 1rem;
    border-radius: var(--border-radius);
}

/* Main Content Area */
.main-content1 {
    background: var(--white);
    position: relative;
    z-index: 5;
    animation: fadeInUp 1s ease-out 0.9s both;
    border-radius: 20px 20px 0 0;
}

.main-content {
    position: relative;
    z-index: 5;
    animation: fadeInUp 1s ease-out 0.5s both;
    border-radius: 20px;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Quick Info Bar - Only Desktop */
.quick-info {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
    border-radius: 20px;
}

.openings1{
    font-style: italic;
    font-size: 0.8rem;
    padding-top: 1rem;
    line-height: 1;
    text-align: center;
}
.openings2{
    font-style: italic;
    font-size: 0.97rem;
    padding-top: 0.5rem;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .quick-info {
        display: block;
    }
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center; /* zentriert den Inhalt */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.quick-info-item {
    text-align: center;
    padding: 0 1rem;
}

.quick-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-red);
    font-size: 1.5rem;
}

.quick-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.quick-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #dc3545, transparent);
  width: 80%;
  max-width: 600px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
}
/* ============================================= */
/*                                               */
/*                  TYPOGRAPHY                   */
/*                                               */
/* ============================================= */
.custom-title-main {
    font-size: 2.6rem;
    color: var(--primary-red);
    text-align: center;
}

.custom-lead-text {
    font-size: 1.1rem;
    color: var(--gray-medium);
    line-height: 1.8;
}

.custom-paragraph {
    color: var(--gray-dark);
    line-height: 1.8;
    margin: 0;
    padding: 0 0 0.6rem 0;
}
.custom-paragraph1 {
    color: var(--gray-dark);
    font-size: clamp(1.1rem, 2vw, 1.27rem);
}

/* ============================================= */
/*                                               */
/*                   NAVBAR                      */
/*                                               */
/* ============================================= */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 90px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar.sticky-top {
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-nav {
    color: var(--primary-red);
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-brand img {
    height: 55px;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    font-size: 1.3rem;
    color: var(--primary-red);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--darker-red);
    transform: translateY(-1.5px);
}

.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active {
    outline: none;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--gray-dark);
    transform: translateY(-1px);
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    padding: 1.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    color: var(--gray-dark);
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-lighter);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--gray-light);
    color: var(--primary-red);
    transform: translateX(4px);
}

.dropdown-item:focus,
.dropdown-item:active {
    outline: none;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--gray-dark);
}

/* ============================================= */
/*                                               */
/*                HERO SECTION                   */
/*                                               */
/* ============================================= */
.hero-section {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%),
            url('../img/background1.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll !important;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    box-sizing: border-box;
    padding: 2rem 0.5rem;
}

.mobile-text {
  display: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.hero-title {
    font-size: 3.7rem;
    margin-bottom: 0.7rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;   
    text-align: center;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;

    /* Nur grammatikalisch sinnvolle Trennungen */
    hyphens: auto !important;
    overflow-wrap: normal !important;
    word-break: normal !important;

    /* Optional: falls Container zu klein ist */
    white-space: normal !important;
}

.hero-title1 {
  font-size: 3.7rem;
  margin-bottom: 0;
  margin-left: 0.5rem;
  margin-right: 0.5rem;  
  text-align: center;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;

  /* Nur grammatikalisch sinnvolle Trennungen */
  hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;

  /* Optional: falls Container zu klein ist */
  white-space: normal;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.3rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem !important;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta .btn {
    font-size: 1.4rem;
    width: fit-content;
    margin-bottom: 2rem;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.1) 50%, transparent 52%);
    pointer-events: none;
}

/* ============================================= */
/*                                               */
/*                  BUTTONS                      */
/*                                               */
/* ============================================= */
.text-danger-btn {
    color: var(--primary-red) !important;
}

.btn-danger-primary {
    background-color: var(--primary-red) !important;
    color: white !important;
}

.btn-danger-primary-outline {
    background-color: transparent !important;
    color: var(--primary-red) !important;
    border: 2px solid var(--primary-red) !important;
    border-radius: var(--border-radius) !important;
}

.btn-danger-primary-outline:hover {
    background-color: var(--primary-red) !important;
    color: white !important;
}

/* ============================================= */
/*                                               */
/*                  ALERTS                       */
/*                                               */
/* ============================================= */
.alert-modern {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    font-weight: 500;
    animation: slideInDown 0.6s ease-out;
}

.custom-alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: var(--primary-red);
    border-left: 4px solid var(--primary-red);
}

.custom-alert-team {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid var(--secondary-red);
    border-radius: var(--border-radius);
}

.alert.alert-custom {
    background-color: white;
    border: 1px solid var(--primary-red) !important;
    font-size: 1.05rem;
}

.alert-custom a {
    color: var(--primary-red);
    text-decoration: underline;
    transition: all 0.2s ease;
    display: inline-block;
}

.alert-custom a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.alert-custom i {
    color: var(--primary-red);
}

/* Team Alert Banner */
.alert.alert-team {
    background: var(--transparent-red);
    color: var(--white);
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    text-align: center;
    border: 1px solid var(--accent-red);
    border-radius: var(--border-radius);
    text-decoration: none;
    display: block;
    transform-origin: center;

    transition: all 0.3s ease !important;
    position: relative !important;
    display: block !important;
}

.alert.alert-team:hover {
    transform: scale(1.022) !important;
    box-shadow: var(--shadow-strong);
    text-decoration: none;
}

.alert.alert-team i {
    color: var(--white) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Notice Alert */
.alert-notice {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-dark) !important;
    background: rgba(241, 241, 241, 0.199) !important;
    border: 2px solid var(--transparent-red) !important;
    display: inline-block;
    padding: clamp(0.5rem, 2vw, 1.03rem);
    margin: 1.5rem 0 2.2rem 0;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    backdrop-filter: blur(2px);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.alert-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

/* ============================================= */
/*                                               */
/*              SECTIONS & CARDS                 */
/*                                               */
/* ============================================= */
.custom-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--gray-lighter);
    height: auto;
}

.custom-section:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.custom-section-title {
    color: var(--primary-red);
    font-weight: 500;
    font-size: 2.1rem;
    margin-bottom: 1.7rem;
    position: relative;
}

.custom-section-title::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-red));
    border-radius: 2px;
    width: 80px;
    height: 1px;
}

.custom-spacing {
    margin-top: 1rem;
}

/* Cards */
.custom-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--gray-lighter);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-red));
}

.custom-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.custom-card-title1 {
    color: var(--primary-red);
    font-size: 1.4rem;
    text-align: left;
}
.custom-card-title {
    color: var(--primary-red);
    font-size: 1.4rem;
    text-align: center;
}
.custom-card-undertitle {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Box Component */
.box {
    background: var(--gray-light);
    cursor: default;

    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.box:hover {
    transform: scale(1.05);
}

/* ============================================= */
/*                                               */
/*                   LISTS                       */
/*                                               */
/* ============================================= */
.custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-lighter);
    position: relative;
    padding-left: 2rem;
    transition: var(--transition);
    text-align: left;
}

.custom-list li:last-child {
    border-bottom: none;
}

.custom-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 800;
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--primary-red);
    font-size: 1rem;
}

.custom-list li:hover {
    padding-left: 2.5rem;
    color: var(--primary-red);
}

.custom-list2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-list2 li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-lighter);
    position: relative;
    padding-left: 2rem;
    transition: var(--transition);
}

.custom-list2 li:last-child {
    border-bottom: none;
}

.custom-list2 li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 800;
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--gray-dark);
    font-size: 1rem;
}

.custom-list2 li:hover {
    padding-left: 2.5rem;
    color: var(--gray-dark);
}

/* ============================================= */
/*                                               */
/*                TEAM SECTION                   */
/*                                               */
/* ============================================= */
.team-member {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    background: white;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.team-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
}
@media (min-width: 769px) {
    .team-member:hover .team-overlay {
        transform: translateY(0);
    }
}

.team-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.team-position {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.team-stat {
    transition: var(--transition);
    padding: 1.5rem;
}

.team-stat:hover {
    transform: translateY(-5px);
}

.team-stat i {
    transition: var(--transition);
}

.team-stat:hover i {
    transform: scale(1.1);
}

/* ============================================= */
/*                                               */
/*                   FOOTER                      */
/*                                               */
/* ============================================= */
.modern-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 25px -3px rgba(0, 0, 0, 0.1), 0 -4px 6px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin: 0;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer-main {
    padding: 3.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 0;
}

.footer-section {
    text-align: left;
    position: relative;
}

.footer-section h5 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section h5::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-left: 1rem;
    border-radius: 1px;
}

.footer-section h5 i {
    color: var(--text-dark);
    margin-right: 0.75rem;
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

/* Footer Content Styles */
.hours-table table {
    margin: 0 auto;
}

.table-padding {
    padding: 0 0 0 2.5rem;
}

.hours-table td {
    border: none !important;
    font-weight: 450;
    color: var(--text-dark);
    font-size: 1rem;
    background: transparent !important;
}

.contact-info {
    margin-left: 0;
}

.contact-info address {
    font-style: normal;
    line-height: 2;
    color: var(--text-dark);
    font-weight: 450;
    margin: 0;
    font-size: 1rem;
}

.contact-info address strong {
    color: var(--text-dark);
    display: block;
    font-size: 105%;
    margin-bottom: 0.25rem;
    font-weight: 510;
}

.legal-links {
    margin-left: 0;
}

.legal-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.75rem;
}

.legal-links li:last-child {
    margin-bottom: 0;
}

.legal-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 450;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.legal-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.legal-links a i {
    color: var(--text-dark);
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.legal-links a:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Footer Info Section */
.footer-info {
    padding: 1rem 0;
    margin-top: -3rem;
}

.footer-info p {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 450;
}

.hours-table,
.contact-info,
.legal-links {
    padding: 0 0 0 2rem;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

.email {
    color: var(--gray-dark);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.email:hover {
    color: var(--accent-color);
    text-decoration: underline;
    transform: scale(1.02);
}

.email:hover i {
    color: var(--accent-color);
    transform: scale(1.02);
    text-decoration: none;
}

.phone-link {
    color: var(--gray-dark);
    text-decoration: underline;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.phone-link:hover {
    color: var(--primary-color);
    transform: scale(1.022);
}

.phone-link i {
    margin-right: 0.5rem;
}

.address-link {
    color: var(--gray-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.address-link:hover {
    text-decoration: underline;
    transform: scale(1.017);
}

.footer-line {
    border-top: 1.4px solid var(--border-color);
    width: 62%;
    max-width: 30rem;
    margin: 1rem auto;
}

.footer-text i {
    margin-right: 0.04rem;
    font-size: 0.658rem;
}

.footer-text {
    font-size: 0.74rem;
    max-width: 95%;
    text-align: center;
    display: block;
    margin: 0 auto;
}

/* Footer Creator Text */
.footer-creator {
    font-size: 0.77rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.3rem;
    letter-spacing: 0.005em;
    padding: 0 0.3rem 0 0.2rem;
}

.footer-creator i {
    margin-right: 0.04rem;
    font-size: 0.709rem;
    vertical-align: middle;
    color: var(--gray-dark);
}

/* ============================================= */
/*                                               */
/*                   TABLES                      */
/*                                               */
/* ============================================= */
table,
table td,
table th {
    border: none !important;
    background-color: transparent !important;
}

.table-borderless td,
.table-borderless th {
    border: none !important;
}

/* ============================================= */
/*                                               */
/*              UTILITY CLASSES                  */
/*                                               */
/* ============================================= */
.maps-height {
    height: 500px;
}

/* ============================================= */
/*                                               */
/*                ANIMATIONS                     */
/*                                               */
/* ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/*                                               */
/*              RESPONSIVE DESIGN                */
/*                  Desktop First                */
/*                                               */
/* ============================================= */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Screens */
@media (min-width: 992px) {
    .copyright-text {
        max-width: 30%;
    }
}

/* Medium Screens - Tablets */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3.1rem;
    }
    .hero-title1 {
        font-size: 3.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .text-center.mb-4 {
        margin-top: 2rem;
        margin-bottom: 2rem !important;
    }
    
    .alert-notice {
        font-size: 1.1rem !important;
    }

    .table-padding {
        padding: 0 2rem 0 2rem;
    }

    .footer-grid {
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .quick-info-item.location {
        display: none;
    }

    .quick-info-grid {
        display: flex;
        flex-wrap: nowrap; /* KEIN Zeilenumbruch */
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem;
        text-align: center;
    }

    .quick-info-item {
        flex: 1 1 0; /* Schrumpfen erlaubt */
        min-width: 0; /* Mindestbreite pro Kachel */
        padding: 0;
        text-align: center;
        max-width: 100%;
    }

    .openings1{
        font-size: 0.7rem;
        line-height: 0.8;
    }
    .openings2{
        font-size: 0.9rem;
    }
}

/* iPad Safari Fix */
/* Für iPad Mini und kleine Tablets - Hochformat */
@media only screen 
  and (min-device-width: 481px) 
  and (max-device-width: 768px) 
  and (orientation: portrait) {
    .hero-section {
        min-height: 65vh !important;
        background-position: center center !important;
        background-attachment: scroll !important;
        background-size: cover !important; /* ← GEÄNDERT von contain zu cover */
        background-repeat: no-repeat !important;
    }
}

/* Für iPad Mini und kleine Tablets - Querformat */
@media only screen 
  and (min-device-width: 481px) 
  and (max-device-width: 768px) 
  and (orientation: landscape) {
    .hero-section {
        min-height: 90vh !important;
        background-position: center center !important; /* ← center statt 100% */
        background-attachment: scroll !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
}

/* Für größere iPads - Hochformat */
@media only screen 
  and (min-device-width: 769px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) {
    .hero-section {
        min-height: 65vh !important;
        background-position: center center !important;
        background-attachment: scroll !important;
        background-size: cover !important; /* ← GEÄNDERT von contain zu cover */
        background-repeat: no-repeat !important;
    }
}

/* Für größere iPads - Querformat */
@media only screen 
  and (min-device-width: 769px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) {
    .hero-section {
        min-height: 75vh !important;
        background-position: center center !important; /* ← center statt 100% */
        background-attachment: scroll !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
}

/* Small Screens - Tablets & Large Phones */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        min-height: 65vh;
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important;
    }

    .hero-title {
        font-size: 2.3rem;
    }
    .hero-title1 {
        font-size: 2.3rem;
    }

    /* Buttons Touch Targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    /* Footer Mobile Grid */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
        "opening contact"
        "legal legal";
        gap: 1rem;
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 4rem;
    }

    .area-opening {
        grid-area: opening;
    }

    .area-contact {
        grid-area: contact;
    }

    .area-legal {
        grid-area: legal;
    }

    .footer-main {
        padding: 2rem 2rem 1.5rem;
    }

    .footer-section {
        text-align: left;
    }

    .footer-section h5 {
        font-size: 1.2rem;
    }

    .hours-table table {
        margin: 0;
        max-width: none;
    }

    .hours-table,
    .contact-info,
    .legal-links {
        padding: 0 1.2rem 1.25rem 0;
    }

    .contact-info {
        text-align: left;
    }

    .legal-links {
        text-align: left;
    }

    .legal-links a {
        justify-content: flex-start;
    }

    .footer-info {
        padding: 1.5rem 0;
    }

    .footer-info p {
        font-size: 1.04rem;
        margin-bottom: 1rem;
        font-weight: 450;
    }

    .copyright-text {
        max-width: 50%;
    }

    /* Tables Mobile */
    .table-padding {
        padding: 0 0 0 3.5rem;
    }

    /* Content Spacing */
    .text-center.mb-4 {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem !important;
    }

    /* Team Mobile */
    .team-member {
        cursor: pointer;
        position: relative;
    }
    
    /* Überschreibt die Desktop-Hover-Animation */
    .team-member:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-medium);
    }
    
    .team-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        color: white;
        padding: 1.5rem 1rem 1rem;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 10;
    }
    
    /* Hover auf Mobile explizit deaktivieren */
    .team-member:hover .team-overlay {
        transform: translateY(100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .team-member.active .team-overlay {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .team-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        color: white;
    }
    
    .team-position {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .team-image {
        aspect-ratio: 1;
    }

    .hero-cta .btn {
        font-size: 1.2rem;
        width: fit-content;
        margin-top: -1rem !important;
    }

    /*  Quick Info Bar */
    .custom-card {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }

    .custom-card-title {
        font-size: 1.3rem;
    }

    .custom-list li {
        margin-bottom: 0rem;
    }

    .openings1{
        font-size: 0.65rem;
        line-height: 0.8;
    }
}

/* Extra Small Screens - Small Phones */
@media (max-width: 576px) {
     /* Navbar Mobile */
    .navbar {
        padding: 0.5rem 1rem;
        margin: 0;
    }
    
    .navbar.scrolled {
        min-height: 70px;
    }

    .navbar-toggler {
        border: none;
        padding: 0.3rem 0 0 0;
        position: relative;
        z-index: 1002;
    }

    .navbar-toggler-icon {
        width: 37px;
        height: 37px;
    }

    /* Mobile Navigation Sidebar */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: fit-content;
        min-width: 260px;
        max-width: 320px;
        height: fit-content;
        background-color: var(--white);
        box-shadow: var(--shadow-strong);
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
        padding: 0;
        border-left: 1px solid var(--border-color);
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar {
        padding: 0 1rem 0 0.9rem;
        margin: 0 -0.4rem 0 -0.4rem;
    }

    .navbar-nav {
        padding: 3rem 0 2rem 0;
        margin: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .navbar-nav .nav-item {
        margin-bottom: -1.5rem;
        border-bottom: 1px solid #e5e5e5;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        font-size: 1.3rem;
        font-weight: 500;
        padding: 2.8rem 2rem 1.3rem 2rem;
        color: var(--text-dark);
        margin: 0;
        display: block !important;
        text-decoration: none;
        transition: var(--transition);
        border: none;
        border-radius: 0;
        position: relative !important;
        text-align: center;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        transform: none;
    }

    .navbar-nav .nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #e5e5e5;
        z-index: 1;
    }

    /* Dropdown Mobile */
    .navbar-nav .dropdown {
        position: static;
    }

    .navbar-nav .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem; /* Kleiner Abstand zwischen "Leistungen" und Pfeil */
    }

    .navbar-nav .dropdown-toggle::after {
        float: none; /* Float entfernen */
        margin-top: 0; /* Margin entfernen */
        margin-left: 0.3rem; /* Kleiner Abstand zum Text */
        transition: var(--transition);
    }

    .navbar-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        padding: 0 0 1.5rem 0;
        background-color: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        display: none;
    }

    .navbar-nav .dropdown.show .dropdown-menu {
        display: block;
        margin: 0;
    }

    .navbar-nav .dropdown-item {
        font-size: 1.1rem;
        font-weight: 450;
        margin: -0.9rem 0 -0.9rem 0;
        padding: 0.8rem 2rem; /* Symmetrisches Padding, zentriert */
        transition: var(--transition);
        border: none;
        position: relative;
        text-align: center; /* Text zentrieren */
    }

    .navbar-nav .dropdown-item:hover {
        background-color: var(--primary-red);
        color: var(--white);
        transform: scale(0.98); /* Leichter Press-Effekt */
    }

    /* Prevent scrolling when menu open */
    body.menu-open {
        overflow: hidden;
    }

    /* Team Mobile */
    .team-image {
        aspect-ratio: 1;
    }
    
    .team-stat {
        padding: 1rem;
    }
    
    .team-stat i {
        font-size: 2rem !important;
    }
    
    .team-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .team-position {
        font-size: 0.8rem;
    }

    /* Tables Extra Small */
    .hours-table table {
        font-size: 0.85rem;
    }
    
    .table-padding {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    .hero-title1 {
        font-size: 2rem;
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }

    .hero-subtitle{
        font-size: 1.2rem;
    }

    .hero-cta .btn {
        font-size: 1.1rem !important;
        margin-top: -1rem !important;
        padding: 0.6rem !important;
    }

    .btn-hero {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .box {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .quick-info h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .quick-info p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .openings1 {
        font-size: 0.6rem;
        line-height: 0.8;
    }
    .quick-info a {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .quick-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
     .quick-info-grid {
        gap: 0.7rem;
        padding: 0 0.6rem 0 0;
    }
}

/* Mobile First Grid Override */
@media (max-width: 560px) {
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: none !important;
        gap: 1.75rem;
        padding: 0 1rem;
    }

    .area-opening,
    .area-contact,
    .area-legal {
        grid-area: auto;
    }

    .footer-main {
        padding: 3.5rem 1.5rem 1.25rem;
    }

    .footer-section h5 {
        font-size: 1.1rem;
        margin-top: -1rem;
        margin-bottom: 1.5rem;
    }

    .footer-section h5::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 1px;
        background: var(--primary-color);
        border-radius: 1px;
        margin-left: 0;
        margin-bottom: -0.5rem;
    }

    .hours-table td,
    .contact-info address,
    .legal-links a {
        font-size: 0.95rem;
    }

    .phone-link {
        font-size: 1rem;
    }

    .copyright-text {
        font-size: 0.85rem;
    }

    .footer-info {
        margin-top: -1.8rem;
    }

    .footer-info p {
        font-size: 0.99rem;
        margin-bottom: 1rem;
        font-weight: 450;
    }

    .custom-section-title {
        font-size: 1.7rem;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-title,
    .hero-title1 {
        font-size: 1.7rem;
        /* Safari-kompatible Silbentrennung */
        -webkit-hyphens: auto !important;
        -moz-hyphens: auto !important;
        -ms-hyphens: auto !important;
        hyphens: auto !important;
        
        /* WICHTIG: break-all entfernen! */
        word-break: normal !important;
        overflow-wrap: break-word !important;
        
        /* Für bessere Trennung in Safari */
        -webkit-hyphenate-limit-before: 3;
        -webkit-hyphenate-limit-after: 2;
        hyphenate-limit-chars: 6 3 2;
    }
    .hero-subtitle{
        font-size: 1.1rem;
        margin-top: -0.5rem;
    }

    .hero-cta .btn {
        font-size: 0.95rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Alert Notice */
    .alert-notice {
        font-size: 0.98rem !important;
        font-weight: 0;
        margin-bottom: 1.6rem;
    }

    /* Alert Team */
    .alert.alert-team {
        font-size: 0.95rem !important;
        padding: 0.5rem !important; 
        margin-top: 1rem;
    }

    .alert.alert-custom {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    /* Maps */
    .maps-height {
        height: 300px;
    }

    /* Typography */
    .custom-title-main {
        font-size: 2.1rem;
    }

    .custom-lead-text {
        font-size: 0.9rem;
        margin-bottom: -1rem;
        padding: 0;
    }

    .custom-section-title {
        font-size: 1.6rem;
    }

    /* Tables */
    .table-padding {
        padding: 0 0 0 2rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 90vh;
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    .hero-title1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}

@media print {
    .navbar,
    .hero-section,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .custom-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
@supports not (-webkit-hyphens: auto) {
  .hero-title {
    /* Fallback wenn hyphens nicht unterstützt */
    /* Aggressive Silbentrennung für Safari Mobile */
    -webkit-hyphens: auto !important;
    -moz-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;

    /* Wortumbruch erzwingen wenn nötig */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;

    /* Container-Grenzen respektieren */
    max-width: 100%;
    box-sizing: border-box;
  }
}