/* ===================================
   MEISTER FLIESEN - EXAKTES DESIGN AUS BOLT
   100% Design-Treue + Technische Optimierungen
   =================================== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: #ffffff;
    background-color: #09090b;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===================================
   NAVIGATION
   =================================== */

.nav-logo {
    height: 48px;
    width: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(4px);
    z-index: 50;
    border-bottom: 1px solid #27272a;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-brand {
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    margin: 0;
}

/* Desktop Menu */
.nav-menu-desktop {
    display: none;
    margin-left: 2.5rem;
    align-items: baseline;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu-desktop {
        display: flex;
    }
}

.nav-link {
    color: #d4d4d8;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-link:hover {
    color: #f59e0b;
}

/* Mobile Menu Button */
.burger-btn {
    display: block;
    color: #d4d4d8;
    transition: color 0.15s;
}

.burger-btn:hover {
    color: #f59e0b;
}

@media (min-width: 768px) {
    .burger-btn {
        display: none;
    }
}

/* Mobile Menu */
.nav-menu-mobile {
    display: none;
    background-color: #18181b;
    border-top: 1px solid #27272a;
    padding: 0.5rem 0.5rem 0.75rem;
}

.nav-menu-mobile.active {
    display: block;
}

@media (min-width: 768px) {
    .nav-menu-mobile {
        display: none !important;
    }
}

.nav-link-mobile {
    display: block;
    width: 100%;
    text-align: left;
    color: #d4d4d8;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-link-mobile:hover {
    color: #f59e0b;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    background-color: #f59e0b;
    color: #09090b;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #d97706;
    transform: scale(1.05);
}

.btn-submit {
    width: 100%;
    background-color: #f59e0b;
    color: #09090b;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #d97706;
    transform: scale(1.05);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-logo {
    width: min(500px, 80%);
    height: auto;
    mix-blend-mode: multiply;
    margin-bottom: 1.5rem;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/Foto 5.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.2), rgba(9, 9, 11, 0.1), #09090b);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
        line-height: 1;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d4d4d8;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #f59e0b;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* ===================================
   SECTIONS
   =================================== */

.section-dark {
    padding: 6rem 0;
    background-color: #09090b;
}

.section-medium {
    padding: 6rem 0;
    background-color: #18181b;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.title-divider {
    width: 6rem;
    height: 0.25rem;
    background-color: #f59e0b;
    margin: 0 auto;
}

.section-subtitle {
    color: #a1a1aa;
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 1.5rem auto 0;
}

/* ===================================
   WERDEGANG (ABOUT)
   =================================== */

.milestone-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .milestone-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.milestone-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s;
    text-align: center;  /* Mobile: zentriert */
}

@media (min-width: 768px) {
    .milestone-card {
        text-align: left;  /* Desktop: linksbündig */
    }
}

.milestone-card:hover {
    border-color: #f59e0b;
}

.milestone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    margin-left: auto;   /* ← HINZUFÜGEN */
    margin-right: auto;  /* ← HINZUFÜGEN */
    color: #f59e0b;
    transition: background-color 0.3s;
}

@media (min-width: 768px) {
    .milestone-icon {
        margin-left: 0;  /* Desktop: linksbündig */
    }
}

.milestone-card:hover .milestone-icon {
    background-color: rgba(245, 158, 11, 0.2);
}

.milestone-year {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.milestone-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.milestone-desc {
    color: #a1a1aa;
    line-height: 1.625;
}

.about-box {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .about-box {
        padding: 3rem;
    }
}

.about-content-center {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-subtitle {
        font-size: 1.875rem;
    }
}

.about-text {
    color: #d4d4d8;
    font-size: 1.125rem;
    line-height: 1.625;
    margin-bottom: 1rem;
}

/* ===================================
   Einblicke SLIDER
   =================================== */

.slider-container {
    position: relative;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #09090b;
    border: 1px solid #27272a;
}

.slider-wrapper:hover .slider-btn {
    opacity: 1;
}

.slider-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #ffffff;
}

.slider-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.slider-desc {
    color: #e5e7eb;
    font-size: 1.125rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(245, 158, 11, 0.8);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 9999px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #d97706;
}

.slider-btn-prev {
    left: 1rem;
}

.slider-btn-next {
    right: 1rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: #52525b;
    transition: all 0.3s;
    cursor: pointer;
}

.slider-dot:hover {
    background-color: #71717a;
}

.slider-dot.active {
    background-color: #f59e0b;
    width: 2rem;
}

/* ===================================
   KARRIERE TIMELINE
   =================================== */

.timeline {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-line {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 100%;
    background: linear-gradient(to bottom, #f59e0b, #27272a);
}

@media (min-width: 768px) {
    .timeline-line {
        display: block;
    }
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .timeline-item {
        flex-direction: row;
        gap: 3rem;
        margin-bottom: 3rem;
    }
}

.timeline-left {
    flex-direction: column;
}

@media (min-width: 768px) {
    .timeline-left {
        flex-direction: row;
    }
}

.timeline-right {
    flex-direction: column;
}

@media (min-width: 768px) {
    .timeline-right {
        flex-direction: row-reverse;
    }
}

.timeline-content {
    width: 100%;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .timeline-content {
        width: 50%;
    }
}

.timeline-content:hover {
    border-color: #f59e0b;
}

.timeline-content-right {
    text-align: left;
}

@media (min-width: 768px) {
    .timeline-content-right {
        text-align: right;
    }
}

.timeline-content-left {
    text-align: left;
}

.timeline-year {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    color: #d4d4d8;
    line-height: 1.625;
}

.timeline-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: -1;
    color: #f59e0b;
}

@media (min-width: 768px) {
    .timeline-icon {
        width: 4rem;
        height: 4rem;
        order: 0;
    }
}

.timeline-spacer {
    width: 100%;
    display: none;
}

@media (min-width: 768px) {
    .timeline-spacer {
        width: 50%;
        display: block;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #f59e0b;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #d4d4d8;
}

/* ===================================
   KONTAKT SECTION
   =================================== */

.contact-centered {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-items {
    display: inline-flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

.contact-label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #a1a1aa;
}

.contact-value a {
    color: #a1a1aa;
    text-decoration: none;
}

.contact-value a:hover {
    color: #f59e0b;
}

.hours-box {
    padding: 1.5rem;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    text-align: center;
}

.hours-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #a1a1aa;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: #18181b;
    border-top: 1px solid #27272a;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-text {
    color: #a1a1aa;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .footer-text {
        margin-bottom: 0;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-link {
    color: #a1a1aa;
    transition: color 0.15s;
}

.footer-link:hover {
    color: #f59e0b;
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background-color: #f59e0b;
    color: #09090b;
    border-radius: 9999px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 50;
}

@media (min-width: 768px) {
    .scroll-to-top {
        right: 1.5rem;
    }
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background-color: #d97706;
    transform: scale(1.05);
}

/* ===================================
   RESPONSIVE & ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

*:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* ===================================
   LEISTUNGEN SECTION
   =================================== */

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .leistungen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .leistungen-grid {
        grid-template-columns: 1fr;
    }
}

.leistung-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
    text-align: center;  /* Mobile: zentriert */
}

@media (min-width: 768px) {
    .leistung-card {
        text-align: left;  /* Desktop: linksbündig */
    }
}

.leistung-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-4px);
}

.leistung-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    margin-bottom: 1rem;
    margin-left: auto;   /* ← HINZUFÜGEN */
    margin-right: auto;  /* ← HINZUFÜGEN */
}

@media (min-width: 768px) {
    .leistung-icon {
        margin-left: 0;  /* Desktop: linksbündig */
    }
}

.leistung-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.leistung-desc {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.6;
}
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.modal-content a {
    color: #f59e0b;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .slider-title {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .slider-desc {
        font-size: 0.75rem;
    }

    .slider-content {
        padding: 0.75rem;
    }

    .slider-gradient {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 40%);
    }
}

.subtitle-mobile {
    display: none;
}

@media (max-width: 768px) {
    .subtitle-desktop {
        display: none;
    }
    .subtitle-mobile {
        display: block;
        text-align: center;
    }
}