/* ============================================================
   index.css — Startseiten-spezifische Stile
   Setzt main.css voraus
   ============================================================ */

/* ── Noise texture overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* ── Nav: Ticker & Telefon ── */
.nav-ticker {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.ticker-inner {
    display: flex;
    gap: 80px;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker-item {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticker-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--yellow);
    flex-shrink: 0;
}

.nav-phone {
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-left: 1px solid rgba(255,255,255,0.08);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--yellow);
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}

.nav-phone:hover { background: var(--yellow); color: var(--dark); }

/* ── Hero ── */
.hero {
    margin-top: 60px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('img/Werkstatt.jpg') center/cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.2) 100%),
        linear-gradient(to right, rgba(10,10,10,0.5) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 80px 150px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-end;
    gap: 40px;
}

.hero-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--yellow);
}

.hero-h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(72px, 10vw, 160px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--white);
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-h1 .outline { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero-h1 .yellow  { color: var(--yellow); }

.hero-sub {
    margin-top: 28px;
    font-size: 16px;
    font-weight: 300;
    color: rgba(240,237,232,0.6);
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
}

.hero-cta a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--yellow);
    color: var(--dark);
    text-decoration: none;
    padding: 16px 32px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s;
}

.hero-cta a:hover { background: #ffd333; }
.hero-cta a svg { width: 18px; height: 18px; fill: currentColor; }

.hero-stats-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
}

.stat-pill {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px 28px;
    text-align: right;
}

.stat-pill-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 1;
    color: var(--yellow);
}

.stat-pill-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 4px;
}

/* ── Entrance Animations ── */
@keyframes h1-reveal {
    from { transform: translateY(110%); }
    to   { transform: translateY(0); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-right {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-left {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

.h1-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.h1-inner {
    display: block;
    transform: translateY(110%);
    animation: h1-reveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.h1-line:nth-child(1) .h1-inner { animation-delay: 0.25s; }
.h1-line:nth-child(2) .h1-inner { animation-delay: 0.48s; }
.h1-line:nth-child(3) .h1-inner { animation-delay: 0.68s; }
.h1-line:nth-child(4) .h1-inner { animation-delay: 0.88s; }

.hero-tag { opacity: 0; animation: fade-right 0.55s ease forwards 0.1s; }
.hero-sub { opacity: 0; animation: fade-up   0.55s ease forwards 1.1s;  }
.hero-cta { opacity: 0; animation: fade-up   0.5s  ease forwards 1.3s;  }

.stat-pill { opacity: 0; animation: slide-left 0.5s ease forwards; }
.hero-stats-side .stat-pill:nth-child(1) { animation-delay: 1.0s;  }
.hero-stats-side .stat-pill:nth-child(2) { animation-delay: 1.18s; }
.hero-stats-side .stat-pill:nth-child(3) { animation-delay: 1.36s; }

@media (prefers-reduced-motion: reduce) {
    .h1-inner { animation: none !important; transform: none !important; }
    .hero-tag, .hero-sub, .hero-cta, .stat-pill { animation: none !important; opacity: 1 !important; }
}

/* ── Öffnungszeiten ── */
.hours-bar {
    background: var(--yellow);
    padding: 0 80px;
    display: flex;
    align-items: stretch;
    height: 56px;
}

.hours-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 48px;
    margin-right: 48px;
    border-right: 1px solid rgba(0,0,0,0.15);
}

.hours-item:last-child { border-right: none; }

.hours-day {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
}

.hours-time {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
    letter-spacing: 0.02em;
}

/* ── Services ── */
.services-wrap { padding: 100px 80px 80px; }

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
}

.eyebrow-line { width: 40px; height: 2px; background: var(--yellow); }

.eyebrow-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--yellow);
}

.eyebrow-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 64px;
}

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

.svc {
    background: var(--surface);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.25s;
    cursor: default;
}

.svc::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--yellow);
    transition: height 0.3s ease;
}

.svc:hover::before { height: 100%; }
.svc:hover { background: #2a2a2a; }

.svc-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 64px;
    line-height: 1;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 16px; right: 20px;
    letter-spacing: -0.04em;
    user-select: none;
}

.svc-icon { width: 40px; height: 40px; margin-bottom: 28px; fill: var(--yellow); }

.svc-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.1;
}

.svc-desc { font-size: 13px; font-weight: 300; color: var(--gray); line-height: 1.7; }

/* ── Mission ── */
.mission-wrap { background: var(--dark); padding: 0 80px 80px; }

.mission-section {
    background: var(--mid);
    padding: 36px 56px 48px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.mission-bar { width: 6px; background: var(--yellow); flex-shrink: 0; align-self: stretch; }

.mission-text {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.7;
    color: var(--white);
}

.mission-text strong { font-weight: 400; color: var(--yellow); }

/* ── Split: Bild + Kontakt ── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.split-image { position: relative; overflow: hidden; background: var(--surface); }
.split-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(30%); transition: filter 0.4s; }
.split-image:hover img { filter: grayscale(0%); }

.split-image-label {
    position: absolute;
    bottom: 32px; left: 32px;
    background: var(--yellow);
    color: var(--dark);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 16px;
}

.split-info {
    background: var(--mid);
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-info h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(40px, 4vw, 60px);
    text-transform: uppercase;
    line-height: 0.95;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.split-info h2 span { color: var(--yellow); }

.contact-rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 40px; }

.contact-row {
    display: flex;
    align-items: center;
    background: var(--surface);
    padding: 16px 20px;
    gap: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.contact-row:hover { background: #2e2e2e; }

.contact-row-icon {
    width: 36px; height: 36px;
    background: rgba(245,196,0,0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-row-icon svg { width: 16px; height: 16px; fill: var(--yellow); }

.contact-row-label {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gray); margin-bottom: 2px;
}

.contact-row-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 17px;
    color: var(--white); letter-spacing: 0.02em;
}

.contact-row:hover .contact-row-value { color: var(--yellow); }

.map-placeholder {
    background: var(--surface);
    border: 1px dashed rgba(245,196,0,0.25);
    padding: 28px;
    display: flex; align-items: center; gap: 20px;
}

.map-placeholder svg { width: 32px; height: 32px; fill: var(--yellow); flex-shrink: 0; }
.map-placeholder-text { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.6; }

/* ── Footer (index-spezifisch) ── */
.footer-hrb {
    font-size: 11px; font-weight: 300;
    color: rgba(136,136,128,0.5); letter-spacing: 0.06em;
}

/* ── Responsive ── */

/* iPad Air (820–834 px) */
@media (max-width: 900px) {
    .hours-bar { padding: 12px 32px; flex-wrap: wrap; height: auto; gap: 10px; }
    .hours-item { border-right: none; padding-right: 0; margin-right: 0; flex: 1 1 auto; min-width: 160px; }
}

@media (max-width: 768px) {
    .hero-content { padding: 0 32px 60px; grid-template-columns: 1fr; }
    .hero-stats-side { align-items: stretch; flex-direction: row; width: 100%; }
    .stat-pill { flex: 1; text-align: center; padding: 14px 8px; }
    .hours-bar { padding: 12px 24px; flex-wrap: wrap; height: auto; gap: 8px; }
    .hours-item { border-right: none; padding-right: 0; margin-right: 0; }
    .services-wrap { padding: 60px 24px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .split-image { height: 300px; }
    .split-info { padding: 48px 32px; }
    .nav-phone { padding: 0 20px; font-size: 14px; }
    .mission-wrap { padding: 0 24px 48px; }
    .mission-section { padding: 32px 28px; gap: 20px; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-h1 { font-size: 64px; }
}
