/* Laser & Vision — Basis-Stylesheet
   Markenbild aus dem Referenz-Deck übernommen: schwarzer Hintergrund, weiße Serifen-Wortmarke,
   rotes "&" als Akzentfarbe. Kein Build-Schritt nötig — reines, handgeschriebenes CSS. */

:root {
    --bg: #0a0a0a;
    --bg-elevated: #141414;
    --bg-elevated-2: #1c1c1c;
    --fg: #f5f5f3;
    --fg-muted: #a3a19d;
    --border: #2a2a28;
    --accent: #e11d2e;
    --accent-hover: #c81627;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Arial Narrow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --max-width-wide: 1440px;
    --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 0.6em;
}
h1 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    line-height: 1.02;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Seitenkopf für alle Nicht-Startseiten (page.php, Detailseiten, Listen) */
.page-header { padding: 56px 0 8px; }
.page-header .accent-rule { display: block; width: 70px; height: 4px; background: var(--accent); margin: 18px 0 24px; }
.page-header .lead { max-width: 680px; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--fg-muted); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.container-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 8, 8, 0.97);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.logo .amp { color: var(--accent); padding: 0 0.15em; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a { font-size: 0.95rem; color: var(--fg); }
.main-nav a:hover { color: var(--accent); }

.has-dropdown { padding-bottom: 12px; margin-bottom: -12px; }
.dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 0;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel li { width: 100%; }
.dropdown-panel a { display: block; padding: 10px 18px; font-size: 0.9rem; }
.dropdown-panel a:hover { background: var(--bg-elevated-2); }

.lang-switch { display: flex; gap: 8px; font-size: 0.85rem; }
.lang-switch a { padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius); }
.lang-switch a[aria-current="true"] { border-color: var(--accent); color: var(--accent); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--fg); padding: 8px 12px; border-radius: var(--radius); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    padding: 100px 0 72px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg);
    background-size: cover;
    background-position: center 35%;
    overflow: hidden;
}
.hero::before {
    /* dunkler Verlauf über dem Foto, damit Text auf jedem Bild lesbar bleibt */
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(6,6,6,0.97) 0%, rgba(6,6,6,0.75) 32%, rgba(6,6,6,0.35) 62%, rgba(6,6,6,0.55) 100%),
        linear-gradient(90deg, rgba(6,6,6,0.5) 0%, rgba(6,6,6,0.05) 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.98;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    max-width: 21ch;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.hero .accent-rule {
    display: block;
    width: 90px;
    height: 5px;
    background: var(--accent);
    margin: 22px 0 26px;
}
.hero p.lead { font-size: 1.2rem; max-width: 560px; color: #d8d6d2; }
.hero .cta-group { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.18);
}
.stat .stat-number { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--fg); text-transform: uppercase; }
.stat .stat-label { font-size: 0.8rem; color: #c9c7c2; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Section-Kicker (Vorspann über Überschriften) ---------- */
.kicker {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-elevated); }
.section-intro { max-width: 760px; margin-bottom: 48px; }
.section-intro h2 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.02;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.section-intro .accent-rule {
    display: block;
    width: 70px;
    height: 4px;
    background: var(--accent);
    margin: 16px 0 20px;
}

.grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; }
.card .card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    overflow-wrap: break-word;
}
.card .card-body p { flex: 1; }
.card .card-meta { font-size: 0.8rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }

/* ---------- Tiles: großformatige Bild-Kacheln (Referenzen/Leistungen) ---------- */
.tile-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.tile-grid .tile:first-child { grid-column: span 2; }
@media (max-width: 760px) { .tile-grid .tile:first-child { grid-column: span 1; } }

.tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated) center / cover no-repeat;
    isolation: isolate;
}
.tile-grid .tile:first-child { aspect-ratio: 16 / 9; }
.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tile:hover img { transform: scale(1.06); }
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.05) 75%);
}
.tile .tile-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    padding: 28px;
}
.tile .tile-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
}
.tile h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.005em;
    margin: 0 0 6px;
    color: #fff;
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.tile p { color: #d8d6d2; font-size: 0.92rem; margin: 0; max-width: 46ch; }
.tile-grid .tile:first-child h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tag {
    font-size: 0.78rem;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg-muted);
}
.tag[aria-current="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.faq-item[open] summary { color: var(--accent); }
.faq-item .faq-answer { margin-top: 12px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; color: var(--fg-muted); }
input, select, textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 12px 14px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 0.8rem; color: var(--fg-muted); margin-top: 12px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.9rem; }
.alert-success { background: rgba(30, 160, 90, 0.12); border: 1px solid rgba(30, 160, 90, 0.4); color: #4ade80; }
.alert-error { background: rgba(225, 29, 46, 0.1); border: 1px solid var(--accent); color: #f87171; }

/* Honeypot-Feld: für Menschen unsichtbar, für Formular-Bots aber im DOM vorhanden */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.82rem; color: var(--fg-muted); padding: 20px 0 0; }
.breadcrumbs a { color: var(--fg-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-elevated); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 32px; }
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted); font-family: var(--font-sans); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: 0.82rem; color: var(--fg-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .main-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        z-index: 100;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        overflow-y: auto;
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav > ul { flex-direction: column; gap: 4px; }
    .main-nav > ul > li { border-bottom: 1px solid var(--border); }
    .main-nav > ul > li > a { display: block; padding: 14px 4px; font-size: 1.1rem; }
    .dropdown-panel { display: block; position: static; border: none; margin: 0 0 0 12px; padding: 0; }
    .has-dropdown:hover .dropdown-panel { display: block; }
    .nav-toggle { display: inline-block; }
    .hero { padding: 60px 0 48px; }
}
