/* =============================================
   Tatics UG (haftungsbeschränkt)
   Stylesheet – Mobile-First & Modern
   ============================================= */

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

html {
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #f8f9fd;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* verhindert Scrollen im Hintergrund bei offener Nav */
body.nav-scroll-lock {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* --- Container --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Header (mobil = Standard) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: 84px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* --- Logo --- */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    gap: 3px;
    -webkit-tap-highlight-color: transparent;
}

.logo-subtext {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-img {
    display: block;
    height: 56px;
    width: auto;
}

/* --- Navigation (mobil: Slide-In Panel) --- */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    padding: 108px 32px 32px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-open {
    right: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ganze Zeile als Tippfläche (mind. 44px Touch-Ziel) */
.nav-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:active {
    background: #f0f0f8;
}

.nav-link:hover {
    color: #4f46e5;
    background: #f5f5ff;
}

/* --- Overlay (hinter der mobilen Nav) --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Hamburger --- */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 4px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    width: 100%;
    text-align: center;
}

.btn-primary:active {
    transform: scale(0.97);
    background: #4338ca;
}

/* --- Hero (mobil = Standard) --- */
.hero {
    padding: 140px 0 72px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2a5e 50%, #4f46e5 100%);
    color: #fff;
}


.hero .container {
    position: relative;
    z-index: 1;
}


.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* --- Section Shared (mobil = Standard) --- */
section {
    padding: 60px 0;
}

h2 {
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    color: #1a1a2e;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 4px;
}

/* --- Services (mobil = Standard: 1 Spalte) --- */
.services {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: #f8f9fd;
    border: 1px solid #eef0f6;
    border-radius: 16px;
    padding: 28px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.service-card:active {
    transform: scale(0.98);
}

.service-icon {
    width: 44px;
    height: 44px;
    color: #4f46e5;
    margin-bottom: 16px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Angebots-Karten mit CTA-Button (Landingpage-Verweise) */
.offer-card .btn {
    margin-top: 18px;
    width: 100%;
}

/* --- About (mobil) --- */
.about {
    background: #f8f9fd;
}

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

.about-text p {
    margin-bottom: 16px;
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
}

/* --- Contact (mobil = Standard: 1 Spalte) --- */
.contact {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.contact-info {
    background: #f8f9fd;
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid #eef0f6;
}

.contact-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-info p {
    color: #444;
    line-height: 1.7;
}

.contact-info a,
.imprint-content a {
    color: #4f46e5;
    text-decoration: none;
    word-break: break-word;
}

.contact-info a:hover,
.imprint-content a:hover {
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    border: 1.5px solid #dde0e8;
    border-radius: 10px;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background: #fff;
}

.form-note {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    margin-top: -6px;
}

.form-note a {
    color: #4f46e5;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* --- Impressum (mobil) --- */
.imprint {
    background: #f8f9fd;
    border-top: 1px solid #eef0f6;
}

.imprint-content {
    max-width: 680px;
    margin: 0 auto;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.imprint-content p {
    margin-bottom: 14px;
}

.imprint-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    border: 1px solid #ffc107;
    font-size: 0.85rem;
}

/* --- Footer (mobil) --- */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 0;
    display: inline-block;
}

.footer-nav a:active {
    color: #fff;
}

/* --- Check-Liste (Landingpage Mobil-Reparatur) --- */
.check-list {
    list-style: none;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.check-list li {
    position: relative;
    padding: 14px 18px 14px 46px;
    background: #f8f9fd;
    border: 1px solid #eef0f6;
    border-radius: 12px;
    color: #444;
    line-height: 1.6;
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4f46e5;
    font-weight: 700;
    font-size: 1.05rem;
}

/* --- CTA-Banner (Landingpages) --- */
.cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2a5e 50%, #4f46e5 100%);
    color: #fff;
    text-align: center;
    padding: 64px 0;
}

.cta h2 {
    color: #fff;
}

.cta .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.cta-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.cta-note a {
    color: #fff;
    text-decoration: none;
}

.cta-note a:hover {
    text-decoration: underline;
}

/* ==============================================
   UP – Tablet (ab 600px)
   ============================================== */
@media (min-width: 600px) {
    .container {
        padding: 0 24px;
    }

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

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

    .hero h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .btn-primary {
        width: auto;
    }
}

/* ==============================================
   UP – Desktop (ab 900px)
   ============================================== */
@media (min-width: 900px) {
    /* Header höher & mit Desktop-Nav */
    .header {
        height: 100px;
    }

    .logo-img {
        height: 68px;
    }

    .logo-subtext {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }

    /* Desktop-Navigation: inline statt Panel */
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }

    .nav-list {
        flex-direction: row;
        gap: 6px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 16px;
        right: 16px;
        height: 2px;
        background: #4f46e5;
        transform: scaleX(0);
        transition: transform 0.25s ease;
    }

    .nav-link:hover::after {
        transform: scaleX(1);
    }

    .nav-link:hover {
        background: transparent;
    }

    .nav-link:active {
        background: transparent;
    }

    .hamburger,
    .nav-overlay {
        display: none;
    }

    /* Hero grösser */
    .hero {
        padding: 190px 0 120px;
    }


    .hero h1 {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    /* 4 Karten: 2x2-Raster */
    .services-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        padding: 36px 28px;
    }

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 32px rgba(79, 70, 229, 0.08);
        border-color: #4f46e5;
    }

    section {
        padding: 90px 0;
    }

    h2 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 50px;
    }

    .contact-info {
        padding: 28px;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .contact-grid {
        gap: 32px;
        margin-bottom: 48px;
    }

    .cta {
        padding: 96px 0;
    }
}

/* ==============================================
   Grosser Bildschirm (ab 1200px)
   ============================================== */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 3.6rem;
    }
}

/* ==============================================
   Reduced Motion
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==============================================
   Drucken
   ============================================== */
@media print {
    .header,
    .hamburger,
    .nav,
    .nav-overlay,
    .contact-form,
    .footer-nav {
        display: none !important;
    }

    section {
        padding: 24px 0;
        page-break-inside: avoid;
    }
}
