/* ═══════════════════════════════════════════════════════════
   HANDWERK SaaS – PAGES  ·  Design: Stahl & Licht
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE HERO (Unterseiten) ─────────────────────────────── */
.hw-page-hero {
    background: var(--hw-primary); padding: 64px 0 56px;
    position: relative; overflow: hidden;
}
.hw-page-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
}
/* Diagonale Akzentlinie rechts */
.hw-page-hero::after {
    content: ''; position: absolute; top: 0; right: 80px; bottom: 0;
    width: 3px; background: linear-gradient(to bottom, transparent, var(--hw-accent), transparent);
    opacity: .3;
}
.hw-page-hero-inner { position: relative; z-index: 1; }
.hw-page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 52px); margin-bottom: 8px; }
.hw-page-hero p  { color: rgba(255,255,255,.5); font-size: 15px; max-width: 540px; margin-bottom: 0; }
.hw-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hw-breadcrumb a  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--hw-accent); opacity: .7; }
.hw-breadcrumb a:hover { opacity: 1; }
.hw-breadcrumb span { font-size: 11px; color: rgba(255,255,255,.25); }

/* Diagonaler Abschluss unten */
.hw-page-hero-bottom {
    height: 40px;
    background: linear-gradient(to bottom right, var(--hw-primary) 49.5%, #fff 50%);
}

/* ── GALERIE SEITE ───────────────────────────────────────── */
.hw-galerie-filter {
    background: var(--hw-primary); position: sticky; top: var(--offset);
    z-index: 50; padding: 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.hw-galerie-filter-inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.hw-galerie-filter-inner::-webkit-scrollbar { display: none; }
.hw-filter-btn {
    padding: 14px 20px; background: none; border: none;
    font-family: var(--ff-body); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4);
    cursor: pointer; border-bottom: 2px solid transparent;
    white-space: nowrap; transition: all .2s;
}
.hw-filter-btn:hover  { color: rgba(255,255,255,.8); }
.hw-filter-btn.active { color: var(--hw-accent); border-bottom-color: var(--hw-accent); }

.hw-galerie-masonry,
.hw-galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 0;
}
@media(max-width:767px) {
    .hw-galerie-masonry, .hw-galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media(max-width:480px) {
    .hw-galerie-masonry, .hw-galerie-grid { grid-template-columns: 1fr; }
}

.hw-galerie-item { border-radius: 8px; overflow: hidden; }

.hw-galerie-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e2e8f0;
    cursor: pointer;
    border-radius: 8px;
}
.hw-galerie-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.hw-galerie-img-wrap:hover .hw-galerie-img {
    transform: scale(1.04);
}
.hw-galerie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}
.hw-galerie-img-wrap:hover .hw-galerie-overlay {
    opacity: 1;
}
.hw-galerie-caption {
    color: #fff;
}
.hw-galerie-caption strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}
.hw-galerie-caption span {
    font-size: 12px;
    color: rgba(255,255,255,.8);
    line-height: 1.4;
}
.hw-galerie-overlay .ai-expand {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 18px;
    color: rgba(255,255,255,.7);
}
.hw-galerie-placeholder {
    background: #e2e8f0;
}
.hw-galerie-placeholder::after {
    content: '📷';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    opacity: .3;
}
.hw-lightbox-caption {
    color: rgba(255,255,255,.8);
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

/* Lightbox */
.hw-lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.92); z-index: 10000;
    align-items: center; justify-content: center;
}
.hw-lightbox.open { display: flex; }
.hw-lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.hw-lightbox-close,
.hw-lightbox-prev,
.hw-lightbox-next {
    position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 3px; font-size: 18px; transition: all .2s;
}
.hw-lightbox-close:hover,
.hw-lightbox-prev:hover,
.hw-lightbox-next:hover { background: var(--hw-accent); border-color: var(--hw-accent); }
.hw-lightbox-close { top: 20px; right: 20px; }
.hw-lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.hw-lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ── LEISTUNGEN SEITE ────────────────────────────────────── */
.hw-leistungen-nav {
    position: sticky; top: var(--offset); z-index: 50;
    background: #fff; border-bottom: 1px solid var(--hw-border);
}
.hw-leistungen-nav-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.hw-leistungen-nav-inner::-webkit-scrollbar { display: none; }
.hw-leistungen-nav-item {
    padding: 14px 20px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--hw-steel);
    border-bottom: 2px solid transparent; white-space: nowrap; transition: all .2s;
}
.hw-leistungen-nav-item:hover  { color: var(--hw-primary); border-bottom-color: var(--hw-accent); }
.hw-leistungen-nav-item.active { color: var(--hw-primary); border-bottom-color: var(--hw-accent); }

.hw-leistung-section { padding: 80px 0; border-bottom: 1px solid var(--hw-border); }
.hw-leistung-section:last-child { border-bottom: none; }
.hw-leistung-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hw-leistung-section-grid.reverse { direction: rtl; }
.hw-leistung-section-grid.reverse > * { direction: ltr; }
.hw-leistung-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; display: block; }
.hw-leistung-img-placeholder { width: 100%; aspect-ratio: 4/3; background: var(--hw-light); display: flex; align-items: center; justify-content: center; font-size: 64px; color: var(--hw-accent); opacity: .3; }
@media(max-width:767px) { .hw-leistung-section-grid { grid-template-columns: 1fr; gap: 32px; } .hw-leistung-section-grid.reverse { direction: ltr; } }

/* ── TERMINANFRAGE SEITE ─────────────────────────────────── */
.hw-termin-wrapper { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.hw-termin-form-card { background: #fff; border: 1px solid var(--hw-border); border-top: 3px solid var(--hw-accent); padding: 40px; }
.hw-termin-sidebar {}
.hw-termin-info-card { background: var(--hw-primary); padding: 32px; margin-bottom: 16px; border-radius: 2px; }
.hw-termin-info-card h5 { color: #fff; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.hw-termin-info-card ul { list-style: none; }
.hw-termin-info-card li { display: flex; gap: 10px; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 10px; align-items: flex-start; }
.hw-termin-info-card li i { color: var(--hw-accent); font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.hw-termin-steps { display: flex; gap: 0; margin-bottom: 32px; counter-reset: step; }
.hw-step { flex: 1; text-align: center; position: relative; }
.hw-step::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--hw-border); z-index: 0; }
.hw-step:last-child::after { display: none; }
.hw-step-num {
    width: 36px; height: 36px; border-radius: 3px;
    background: var(--hw-border); color: var(--hw-steel);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; margin: 0 auto 8px;
    position: relative; z-index: 1; transition: all .2s;
}
.hw-step.active .hw-step-num { background: var(--hw-accent); color: #fff; }
.hw-step.done  .hw-step-num  { background: #22c55e; color: #fff; }
.hw-step-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--hw-steel); }
.hw-step.active .hw-step-label { color: var(--hw-primary); }

/* Slot-Auswahl */
.hw-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.hw-slot-btn {
    padding: 10px 6px; background: var(--hw-light); border: 1px solid var(--hw-border);
    border-radius: 3px; font-size: 12px; font-weight: 700; color: var(--hw-steel);
    cursor: pointer; transition: all .2s; text-align: center;
}
.hw-slot-btn:hover     { border-color: var(--hw-accent); color: var(--hw-accent); background: rgba(249,115,22,.05); }
.hw-slot-btn.selected  { background: var(--hw-accent); border-color: var(--hw-accent); color: #fff; }
.hw-slot-btn.disabled  { opacity: .35; cursor: not-allowed; }

@media(max-width:991px) {
    .hw-termin-wrapper { grid-template-columns: 1fr; }
    .hw-termin-sidebar { order: -1; }
    .hw-termin-info-card { display: none; } /* ausblenden auf Mobile */
}

/* ── KONTAKT SEITE ───────────────────────────────────────── */
.hw-kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hw-kontakt-form-card { background: #fff; border: 1px solid var(--hw-border); border-top: 3px solid var(--hw-accent); padding: 40px; }
.hw-map-wrap { width: 100%; aspect-ratio: 4/3; border: 1px solid var(--hw-border); border-top: 3px solid var(--hw-accent); overflow: hidden; }
.hw-map-wrap iframe { width: 100%; height: 100%; border: none; display: block; filter: grayscale(30%); }
.hw-map-placeholder { width: 100%; height: 100%; background: var(--hw-light); display: flex; align-items: center; justify-content: center; font-size: 64px; color: var(--hw-border); }
@media(max-width:767px) { .hw-kontakt-grid { grid-template-columns: 1fr; } }

/* ── ÜBER UNS SEITE ──────────────────────────────────────── */
.hw-ueber-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 500px; }
.hw-ueber-img { position: relative; overflow: hidden; }
.hw-ueber-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-ueber-content { background: var(--hw-primary); padding: 72px 64px; display: flex; align-items: center; }
.hw-ueber-inner { max-width: 480px; }
@media(max-width:767px) { .hw-ueber-hero-grid { grid-template-columns: 1fr; } .hw-ueber-img { min-height: 260px; } .hw-ueber-content { padding: 40px 24px; } }

/* ── GUTSCHEIN SEITE ─────────────────────────────────────── */
.hw-gutschein-card { background: var(--hw-primary); padding: 48px; max-width: 680px; margin: 0 auto; border-top: 3px solid var(--hw-accent); position: relative; overflow: hidden; }
.hw-gutschein-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(249,115,22,.04); }
.hw-gutschein-inner { position: relative; z-index: 1; }
.hw-gutschein-value { font-size: 80px; font-weight: 900; color: var(--hw-accent); line-height: 1; letter-spacing: -4px; }
.hw-gutschein-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.3); margin-bottom: 24px; }

/* ── LEGAL (Impressum, Datenschutz, AGB) ─────────────────── */
.hw-legal-content { max-width: 800px; margin: 0 auto; padding: 80px 0; }
.hw-legal-content h2 { font-size: 22px; font-weight: 700; border-left: 3px solid var(--hw-accent); padding-left: 16px; margin: 40px 0 16px; }
.hw-legal-content h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.hw-legal-content p  { font-size: 14px; line-height: 1.8; color: var(--hw-steel); margin-bottom: 14px; }
.hw-legal-content ul { list-style: disc; padding-left: 24px; }
.hw-legal-content ul li { font-size: 14px; color: var(--hw-steel); margin-bottom: 6px; }
.hw-legal-content a { color: var(--hw-accent); }
.hw-legal-content a:hover { text-decoration: underline; }

/* ── 404 / ERROR ─────────────────────────────────────────── */
.hw-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
.hw-404-num { font-size: 120px; font-weight: 900; color: var(--hw-accent); line-height: 1; letter-spacing: -6px; display: block; opacity: .15; }
.hw-404-title { font-size: 32px; font-weight: 800; color: var(--hw-primary); margin-bottom: 12px; }
.hw-404-text  { font-size: 15px; color: var(--hw-steel); max-width: 400px; margin: 0 auto 32px; }
