@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hubballi&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Varela+Round&display=swap');

/* define css variables */
:root {
    --background-color: #E6E5E2;
    --primary-color: #8C2138;
    --secondary-color: #8C2138;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    overflow-x: hidden;
    
}

body {
    margin: 0;
    padding: 8px;
    height: auto;
    min-height: 100vh;
    width: 100vw;
    color: black;
    font-family: "Nunito", "Verdana", "sans-serif";
    font-weight: 300;
    background-color: var(--secondary-color);
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.content {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: calc(100%);
    height: 100%;
    border: none;
/*     background-image: linear-gradient(
        to top,
        var(--primary-color) 0%,
        var(--background-color) 100%
    );
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 40px; */
} 

button {
    display: block;
    margin: 12px 0;
    width: 160px;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 300;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

strong {
    font-weight: 700;
}

nav {
    width: calc(100vw - 16px);
    height: 108px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    background-color: var(--background-color);
    color: black;
    padding: 6px 24px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 8px;
    border-top: var(--secondary-color) 8px solid;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}  

.nav-logos {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: bottom;
    gap: 24px;
    width: 100%;
}

.nav-links {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 8px;
    justify-content: flex-end;
    padding: 0 12px;
    margin: 0;
    box-sizing: border-box;
    position: fixed;
    z-index: 1;
}

.nav-links li {
    display: inline;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.25rem;
    margin-right: 16px;
    margin-left: 16px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, p {
    color: black;
    text-decoration: none;
    margin: 8px 0;
    padding: 0;
}

.nav-link {
    display: inline-block;
    text-decoration: none;
    color: black;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-link:hover {
    text-shadow: -0.5px 1px currentColor, 0.5px 1px currentColor;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.mobile-menu-button {
    display: none;
}

.mobile-menu {
    display: none;
}

.panorama-image {
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: center top;
}

.hero-banner {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    height: 80vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-logo {
    aspect-ratio: 1 / 1;
    height: min(150px, 30vw);
    margin: 0px 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.05);
    background-image: url('assets/fuhrpark_4.webp');
    background-position: center 50%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.55) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0 20px;
    width: min(100%, 1000px);
}

.hero-title {
    margin: 0 0 12px 0;
    font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
    font-weight: 700;
    letter-spacing: 0.3px;
    color: white;
}

.hero-subtitle {
    margin: 0 0 20px 0;
    font-size: clamp(1rem, 1.2vw + 0.8rem, 1.4rem);
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.hero-ctas {
    display: inline-flex;
    gap: 12px;
}

.cta-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.9);
}

.cta-secondary:hover {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}

.footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100vw;
    font-size: 1rem; /* Changed from 1.25rem */
    padding: 80px 0 40px 0;
    box-sizing: border-box;
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    width: 50%;
    min-width: 900px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-section h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.1rem; /* Added explicit size */
}

.footer-section p, .footer-section a {
    color: white;
    margin: 2px 0;
    font-size: 1rem; /* Added explicit size */
}

.footer-section a {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: right;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    font-size: 1rem; /* Added explicit size */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: white;
    margin: 0;
    font-size: 1rem;
}

section {
    box-sizing: border-box;
    width: 50%;
    margin: 0 25% 0 25%;
    padding: 40px 0;
}

section h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

#impressum {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#datenschutz {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

#datenschutz p, #impressum p, #datenschutz ul li, #impressum ul li {
    font-size: 1rem;
}


.centered {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main {
    padding-top: 64px;
    box-sizing: border-box;
    width: 100%;
}

/* Hero Section */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.fuhrpark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-rows: auto;
    gap: 24px;
    margin-top: 40px;
}

.service-card, .fuhrpark-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.sv, .shop {
    border: 3px solid var(--secondary-color);
}

.shop {
    justify-content: center;
    align-items: center;
}

.sv {
    cursor: pointer;
}

.shop:hover {
    cursor: pointer;
}

/* SV expandable panel */
.sv-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
    margin-top: 0;
    overflow: hidden;
    position: relative;
}

.sv-panel > * {
    min-height: 0;
}

.sv-panel.open {
    grid-template-rows: 1fr;
    margin-top: 24px;
}

.sv-panel img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    display: block;
}

.sv-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sv-panel.open .sv-panel-close {
    opacity: 1;
}

.fuhrpark-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: default;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 16px 16px 16px;
}

.service-card p {
    padding: 0 16px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    font-weight: 500;
}

/* Shop Section */
.shop-image-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.shop-item {
    width: 320px;
    cursor: pointer;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.about-text h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin: 32px 0 16px 0;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Team Grid */
.team-grid-c {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin: 0 auto;
    margin-top: 24px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 24px;
    margin: 0 auto;
    margin-top: 24px;
}

.team-card {
    height: 360px;
    background: #F7F7F7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    scale: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, scale 0.3s ease;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 300px 60px;
}

.team-card .person-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.team-card-c {
    height: 360px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    scale: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, scale 0.3s ease;
}

.team-card-c .team-info {
    padding: 16px 24px;

}

.team-card:hover, .team-card-c:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    scale: 1.05;
    transition: scale 0.3s ease;
}

.person-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team-info {
    background-color: #F7F7F7;
    padding: 0px 8px 8px;
    font-size: 0.8rem;
}

.team-name {
    margin: 4px 0 4px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.team-role {
    margin-bottom: 2px;
    color: #666;
    font-size: 0.8rem;
}

.team-contact {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    color: #666;
    font-size: 0.8rem;
    gap: 8px;
    padding: 4px 0px;
    margin: 0;
}

.team-contact svg {
    color: black;
    padding: 0;
    margin: 0;
}

.team-contact a {
    padding: 0;
    margin: 0;
}

.team-contact:hover {
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.team-contact:hover svg {
    stroke-width: 2px;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.values-list li {
    margin-bottom: 16px;
    font-size: 1.1rem;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.values-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 500;
}

.team-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-intro {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 0px;
    color: #666;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.album-grid--single {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.album-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.album-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-card {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    overflow: hidden;
    scale: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, scale 0.3s ease;
}

.album-card:hover {
    background-color: #fff;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    scale: 1.05;
    transition: scale 0.3s ease;
}

.album-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.album-title {
    font-family: "Nunito", "Verdana", "sans-serif";
    display: block;
    color: #111;
    font-size: 1rem;
    font-weight: 300;
    text-align: center;
    padding: 14px 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.gallery-grid.maschinen {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    margin: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 500;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Lightbox (Modal) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 2000;
    box-sizing: border-box;
}

.lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-inner {
    position: relative;
    width: min(94vw, 1200px);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 0;
}

.lightbox-image {
    display: block;
    justify-self: center;
    width: auto;
    max-width: 100%;
    max-height: min(72vh, calc(100vh - 220px));
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.lightbox-close:hover {
    background: var(--secondary-color);
}

.lightbox-caption {
    color: white;
    text-align: center;
    overflow-wrap: anywhere;
}

.lightbox-title {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    color: white;
    font-weight: 500;
}

.lightbox-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.gallery-item img {
    cursor: zoom-in;
}

.album-modal {
    position: fixed;
    inset: 0;
    background: rgba(25, 20, 22, 0.72);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 1900;
}

.album-modal.show {
    display: grid;
    place-items: center;
    padding: 24px;
}

.album-modal-inner {
    position: relative;
    width: min(92vw, 1100px);
    max-height: 86vh;
    overflow: auto;
    background: var(--background-color);
    border-radius: 14px;
    border-top: 6px solid var(--secondary-color);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
    padding: 24px 24px 28px 24px;
}

.album-modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    z-index: 1;
}

.album-modal-close:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.album-modal-header {
    margin: 8px 0 18px 0;
}

.album-modal-title {
    margin: 0;
    color: #111;
    font-size: 1.5rem;
    font-weight: 700;
}

.album-modal-subtitle {
    margin: 8px 0 0 0;
    color: #555;
}

.album-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.album-image-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.album-image-item:hover {
    transform: translateY(-3px);
    border-color: rgba(140, 33, 56, 0.28);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.album-image-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    box-sizing: border-box;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.contact-info h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-card {
    display: flex;
    width: 100%;
    padding: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-left, .contact-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.contact-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-weight: 400;
}

.business-hours {
    background: var(--primary-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.business-hours h4 {
    margin: 0 0 16px 0;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.business-hours p {
    margin: 8px 0;
    font-size: 1rem;
}

.contact-form h3 {
    margin: 0 0 24px 0;
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 12px;
    margin: 0;
    border: 2px solid var(--secondary-color);
    background-color: #F7F7F7;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form button {
    padding: 16px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form textarea {
    /* Allow user to resize vertically without breaking the grid */
    resize: vertical;
    min-height: 140px;
    max-height: 60vh;
    overflow: auto;
}

.bold {
    font-weight: 800;
}

.svg-logo {
    height: 76px;
    width: auto;
}

.png-logo {
    width: auto; 
    height: 64px;
    margin-left: 12px;
}

.main-logo {
    width: 70%;
    height: auto;
}

#start {
    padding-top: 0;
}

#leistungen,
#ueberuns,
#galerie,
#kontakt,
#fuhrpark,
#werkstatt,
#shop, 
#partner {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: none;
    margin-top: 20px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 36px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sv-info {
    padding: 0;
    margin: 0;
}
@media (max-width: 2048px) {
    section {
        width: 70%;
        margin: 0 15% 0 15%;
    }

    .footer-content {
        width: 70%;
    }
}

/* Mobile styles */
@media (max-width: 1300px) {
    body {
        padding: 0 8px 8px 8px;
    }

    nav {
        top: 0;
        padding: 6px 12px;
    }

    .nav-links {
        display: none;
    }

    .nav-logos {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .svg-logo#meisterbetrieb, .svg-logo#spenglermeister {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        padding: 8px 0px;
        box-sizing: border-box;
        background-color: var(--background-color);
        z-index: 999;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: flex-start;
        transform: translateY(-50vh);
        transition: transform 0.3s ease;
        border-left: var(--secondary-color) 8px solid;
        border-right: var(--secondary-color) 8px solid;
    }

    .mobile-menu.active {
        display: flex;
        transform: translateY(0);
        transition: transform 0.3s ease;
    }

    .mobile-menu ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-button {
        display: inline-block;
        margin: 12px 0;
        width: 40px;
        padding: 4px;
        background-color: transparent;
        color: black;
        border: none;
        box-shadow: none;
        position: absolute;
        z-index: 1;
    }   

    .mobile-menu-button:hover {
        background-color: transparent;
        color: black;
        fill: black;
        box-shadow: none;
        cursor: pointer;
    }

    section {
        width: 80%;
        margin: 0 10% 0 10%;
        padding: 24px 0;
    }

    .main-logo {
        width: 100%;
    }

    section h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .hero-text h3 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .services-grid, .fuhrpark-grid {
        grid-template-columns: 1fr;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .contact-form {
        padding: 20px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .hero-banner { height: 80vh; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .scroll-indicator { bottom: 12px; }

    .footer {
        padding: 40px 20px 20px;
        font-size: 1.25rem; 
    }

    .footer-content {
        width: 90%;
        min-width: unset;
    }

    .footer-links {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.25rem;
    }

    .footer-section p, .footer-section a {
        font-size: 1.25rem;
    }

    .footer-links a {
        font-size: 1.25rem;
    }

    .footer-bottom p {
        font-size: 1.25rem;
    }

    .team-grid-c {
        grid-template-columns: 1fr 1fr
    }

    .team-card-c {
        grid-template-columns: 1fr;
        height: auto;
    }

    .team-card-c .person-image {
        aspect-ratio: 3 / 2;
    }

    .team-card .person-image {
        object-position: center 40%;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-name {
        font-size: 1rem;
    }

    .team-role {
        font-size: 0.9rem;
    }

    .partner-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 90%;
    }
}

@media (max-width: 700px) {
    .png-logo {
        display: none;
    }

    .hero-bg {
        background-position: 30% center;
    }
    
    section {
        width: 90%;
        margin: 0 5% 0 5%;
    }
    
    .team-grid-c {
        grid-template-columns: 1fr;
    }

    .team-card-c {
        grid-template-columns: 1fr;
        height: auto;
    }

    .team-card-c .person-image {
        aspect-ratio: 4 / 3;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .album-grid {
        grid-template-columns: 1fr;
    }

    .album-modal.show {
        padding: 12px;
    }

    .album-modal-inner {
        padding: 16px;
    }

    .album-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, calc(100% - 32px));
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    z-index: 2000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 640px;
}

.cookie-content a {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.cookie-actions .cookie-button {
    margin: 0;
    width: auto;
    padding: 10px 16px;
    font-size: 1rem;
    color: #fafafa;
}

.cookie-actions .cookie-secondary {
    background-color: #fafafa;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.cookie-actions .cookie-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

@media (max-width: 700px) {
    .cookie-banner {
        bottom: 12px;
        padding: 14px 16px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
    }

    .cookie-actions .cookie-button {
        width: 100%;
    }
}