@font-face {
    font-family: 'Oswald Regular';
    src: url('../fonts/Oswald/static/Oswald-Regular.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Oswald Medium';
    src: url('../fonts/Oswald/static/Oswald-Medium.ttf') format('truetype');
    font-display: swap;
}

/* Custom Styles for Sandro Thronicke Onepager */
:root {
    --primary-red: #ad0303;
    --dark-bg: #161616;
    --card-border: #d2b63c;
    --text-color: #161616;
    --text-color-white: #fff;
    --color-yellow:#d2b63c;

    --bg-color: #ffffff;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --line-thickness: 4px;
    --dot-size: 20px;
    --inner-dot-size: 8px;
}

h1, h2, h3, h4 {font-family: 'Oswald Medium', sans-serif; font-weight: normal; color: var(--text-color);}
h1 {color: var(--text-color-white);}
h2 {margin-bottom: 1rem;}
h3 {font-size: 1.3rem;}
h4 {font-size: 1.1rem;}
h3.name {color: var(--text-color-white);}
h2 span {color: var(--primary-red);}
.yellow {color: var(--color-yellow);}
.bg-danger {background-color: var(--primary-red) !important;}
.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}
.img-fluid {
    max-width: 100%;
    max-height: 100%;
}
.icon-box {padding: 0.75rem !important;}

.small, small {
    font-size: .9rem;
}
a {
    color: var(--primary-red);
    text-decoration: none;
}

img.img-fluid.stempel {
    max-width: 100%;
    height: auto;
    float: right;
    margin-top: -55px;
}

.list-unstyled li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

a, a:hover {text-decoration: none;}

.btn-danger {
    border-color: var(--color-yellow) !important;
    background-color: var(--primary-red) !important;
    color: var(--text-color-white) !important;
    transition: none;
    
}
.btn-danger:hover {
    border-color: var(--color-yellow) !important;
    background-color: var(--color-yellow) !important;
    color: var(--primary-red) !important;
    transition: none;
    
}
.btn-default {
    border-color: var(--color-yellow) !important;
    background-color: var(--color-yellow) !important;
    color: var(--primary-red);
    transition: none;
}
.btn-default:hover {
    border-color: var(--color-yellow) !important;
    background-color: var(--primary-red) !important;
    color: var(--text-color-white);
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
    font-size: 1rem;
}

/* Scroll-Abstand für fixierte Navbar definieren */
section {
    scroll-margin-top: 80px;
}

#main-nav {
    background: var(--primary-red);
    color: var(--text-color-white);
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 5%);
}
#main-nav a {color: var(--text-color-white)}
#main-nav a:hover {color: var(--color-yellow);}
div#navbarNav {justify-content: center;}
ul.navbar-nav {
    gap: 2rem;
}
/* Styling für den aktiven Menüpunkt */
#main-nav .navbar-nav .nav-link.active {
    color: var(--color-yellow);
}

/* Weicher Übergang */
#main-nav .navbar-nav .nav-link {
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* Toggler-Button: Border, Shadow und Padding entfernen */
.navbar-toggler {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Toggler-Icon: Per Inline-SVG auf ein exaktes, reinweißes Icon setzen */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(255, 255, 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#main-nav .btn-default {
    color: var(--text-color) !important; 
    border-radius: 0.3rem;
    transition: background-color 0.2s ease-in-out, 
                border-color 0.2s ease-in-out, 
                color 0.2s ease-in-out, 
                box-shadow 0.2s ease-in-out !important;
}
#main-nav .btn-default:hover {background-color: var(--primary-red) !important; color: var(--text-color-white) !important;}

.phone {
    display: flex;
    gap: 0.2rem;
}
.phone svg { width: 20px;fill: var(--text-color-white);}
.phone p {margin: 0;}

.hero-section {
    background-image: url('../images/Hero-Bereich.jpg');
    background-size: 100% 100%;
}
.hero-section img {max-width: 400px;}

.hero-section .badge {
    border: 1px solid var(--color-yellow);
    color: var(--color-yellow);
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}
.hero-section .badge-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-section .badge svg {
    width: 18px;
    fill: var(--color-yellow);
}
.hero-section .badge p {margin: 0;}

.hero-buttons .btn { 
    border-radius: 0;
    background-color: var(--color-yellow);
    color: var(--primary-red);
}
.hero-buttons .btn:hover { 
    background-color: var(--primary-red);
    color: var(--text-color-white);
}

.text-danger-custom {
    color: var(--primary-red) !important;
}

.navbar-brand .brand-text {
    color: var(--primary-red);
    letter-spacing: 1px;
}

#kontakt {
    background-image: url('../images/Kontakt.png');
    background-size: 100% 100%;
    color: var(--text-color-white);
}
#kontakt .card {border-radius: 1rem;}
#kontakt .card.contact {
  background-color: var(--primary-red);
  color: var(--text-color-white);
  width: 100%;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: -5px 0px 0px var(--color-yellow)
}
#kontakt .card-header { margin-bottom: 20px;}

#kontakt .card-header .name {
    margin: 0;
    font-size: 1.4rem;
    text-transform: uppercase;
}
#kontakt .card-header {
    background-color: transparent;
    color: var(--text-color-white);
    border: none;
    padding: 0;
}
#kontakt .card-header .subtitle {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.3;
}
.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--color-yellow);
}

.icon {
  width: 18px;
  height: 18px;
  color: var(--color-yellow);
  flex-shrink: 0;
}

.maps-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 16px;

  color: #222;
  background: var(--text-color-white);
  border: 1px solid #aaa;
  border-radius: 7px;

  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;

  transition:
    background-color 0s ease,
    border-color 0s ease;
}

.maps-button:hover {
  background: #f5f5f5;
  border-color: #888;
}

.maps-button:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.external-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: #666;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--primary-red);
  text-transform: uppercase;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 35px; 
  height: 3px;
  background-color: var(--color-yellow);
}

footer {
    background-color: var(--primary-red);
    color: var(--text-color-white);
    font-size: 0.9rem;
}
footer a {
    color: var(--text-color-white);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
footer a:hover {
    color: var(--card-border);
}
footer ul {margin: 0; line-height: 1.6;}
footer p {margin: 0;}
footer h3 {
    font-size: 1rem;
    color: var(--color-yellow);
    font-weight: bold;
}

.bg-red {
    background-color: var(--primary-red);
}

.feature-icon {
    background-color: var(--color-yellow);
    padding: 0.75rem;
}

.service-card {
    background: #ffffff;
    border: 2px solid var(--card-border);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.custom-bullet li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.93rem;
    color: var(--text-color);
}

.custom-bullet li::before {
    content: "\f058";
    font-family: "Font Awesome 7 Free";
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary-red);
}

.timeline-container {
    width: 100%;
    margin: 0 auto;
}

/* Horizontale Timeline (Desktop Standard) */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding-top: 20px;
}

/* Durchgehende rote Linie im Hintergrund */
.timeline::before {
    content: '';
    position: absolute;
    top: 28px; /* Zentriert mit den Punkten */
    left: 0;
    width: 100%;
    height: var(--line-thickness);
    background-color: var(--primary-red);
    z-index: 1;
}

/* Einzelelemente der Timeline */
.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

/* Rot-goldener Punkt */
.timeline-dot {
    width: var(--dot-size);
    height: var(--dot-size);
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.timeline-dot::after {
    content: '';
    width: var(--inner-dot-size);
    height: var(--inner-dot-size);
    background-color: var(--color-yellow);
    border-radius: 50%;
}

/* Hover-Effekt für Interaktivität */
.timeline-item:hover .timeline-dot {
    transform: scale(1.25);
}

/* Jahreszahl */
.timeline-year {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Beschreibungstext */
.timeline-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

/* Responsive Transformation zu vertikaler Timeline für Mobilgeräte */
@media (max-width: 992px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .hero-section {
        background-size: cover;
    }
    #main-nav .btn-default {font-size: 0.8rem;}
    .d-flex.gap-3.hero-buttons {flex-direction: column;}
    img.img-fluid.stempel {margin-top: 0;}
    .timeline {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-left: 30px;
        padding-top: 0;
    }

    /* Die Linie verläuft mobil vertikal an der linken Seite */
    .timeline::before {
        top: 0;
        left: 8px;
        width: var(--line-thickness);
        height: 100%;
    }

    .timeline-item {
        position: relative;
        padding-left: 20px;
    }

    /* Punkt wird links an der vertikalen Linie positioniert */
    .timeline-dot {
        position: absolute;
        left: -30px;
        top: 0;
        margin-bottom: 0;
    }

    .timeline-year {
        margin-top: -2px; /* Ausrichtung zur Oberkante des Punktes */
    }
}
