/* -------- Fonts / Base -------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;600;700&display=swap');

/* todo-remove: for now - only there for hinting */
@import "tailwindcss";

:root {
    /** tailwind breakpoints: */
        --breakpoint-sm: 40rem;
        --breakpoint-md: 48rem;
        --breakpoint-lg: 64rem;
        --breakpoint-xl: 80rem;
        --breakpoint-2xl: 96rem;
    /*
        --breakpoint-sm: 640px;
        --breakpoint-md: 768px;
        --breakpoint-lg: 1024px;
        --breakpoint-xl: 1280px;
        --breakpoint-2xl: 1536px;
    */
}

/* Tailwind-like container widths: Basis und md-Breakpoint */
/*.container {
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}*/

/* Grundlegende Typografie */
body {
    font-family:             'Open Sans', sans-serif;
    margin:                  0;
    padding:                 0;
    -webkit-font-smoothing:  antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color:        #fefefe;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* -------- Navigation / Interactions -------- */
nav#services {
    padding-top: 14rem;
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-3px);
    color:     #990101;
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform:  translateY(-10px);
    box-shadow: 0 20px 40px rgba(153, 1, 1, 0.2);
}

/* -------- Hero / Accent -------- */
.hero-section {
    background:          linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://static.photos/automotive/1200x630/55');
    background-size:     cover;
    background-position: center;
}

.accent-text {
    color: #990101;
}

/* -------- Icon / Button Effects -------- */
.srvc-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.srvc-item:hover {
    transform: scale(1.05);
}

.srvc-item > .img-container {
    width:      20rem;
    max-width:  100%;
    height:     auto;
}

.srvc-item > .h3-container {
    width: 100%;
    height: 5.4em;
    align-items: center;
    display: flex;
}

.srvc-item > .h3-container > h3 {
    font-size: 2em;
    line-height: 1.2em;
    flex: 1 1 100%;

    @media (width < 80rem) {
        font-size: 1.5em;
    }
}

.srvc-item:hover > .details {
    text-decoration: underline;
}

ul.default {
    list-style:    disc;
    padding-left:  1em;
}

ul.default > li {
    margin-bottom: 0.5em;
}

.footer-gradient {
    background: linear-gradient(to right, #0a0a0a, #161f1c);
}

.floating-btn {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.floating-btn:hover {
    transform:  scale(1.15);
    box-shadow: 0 10px 20px rgba(153, 1, 1, 0.4);
}

/* -------- Contact / Small interactions -------- */
.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-card {
    border-top: 3px solid #990101;
}

/* -------- Gallery (merged from inline styles) -------- */
.gallery-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap:                   1rem;
}

.gallery-item {
    position:      relative;
    overflow:      hidden;
    border-radius: 8px;
    box-shadow:    0 4px 8px rgba(0, 0, 0, 0.1);
    transition:    transform 0.3s ease, opacity 0.3s ease;
    will-change:   transform, opacity;
}

/* leichte Skalierung und halb-transparente Hervorhebung */
.gallery-item:hover {
    transform: scale(1.05);
    opacity:   0.95;
}

.gallery-item img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position:        absolute;
    top:             0;
    left:            0;
    right:           0;
    bottom:          0;
    background:      rgba(0, 0, 0, 0.5);
    display:         flex;
    align-items:     center;
    justify-content: center;
    opacity:         0;
    transition:      opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* -------- Price table -------- */
.price-table {
    border-left:     4px solid #990101;
    border-collapse: collapse;
}

.price-table th {
    background-color: #990101;
    color:            white;
    padding:          0.75rem;
    text-align:       left;
    font-weight:      600;
}

.price-table td {
    padding: 0.75rem;
}

.price-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* -------- Service page container -------- */
.service-page {
    min-height: 100vh;
}

/* -------- Accessibility / reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .service-card,
    .srvc-item,
    .floating-btn,
    .contact-item,
    .gallery-item,
    .gallery-item img,
    .gallery-overlay,
    .service-card:hover,
    .srvc-item:hover,
    .floating-btn:hover,
    .nav-link:hover,
    .contact-item:hover {
        transition: none !important;
        animation:  none !important;
    }
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-5px);
    }

    /* Galerie: auf sehr kleinen Bildschirmen einspaltig */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Ende der zusammengeführten Styles */
