/* =====================================================================
   LaserDesign Lingen – Website-Design (Konzept Oktober 2026)
   Mobile-First. Warmes Off-White, Sand, Holzton, Schwarz. Inter.
   ===================================================================== */

:root {
    --c-bg: #f7f3ed;          /* Off-White */
    --c-sand: #ece4d8;        /* Sand */
    --c-beige: #dccbb2;       /* Beige */
    --c-holz: #a4713f;        /* Holzton */
    --c-holz-dunkel: #6e4a2a;
    --c-text: #1d1915;        /* Schwarz, leicht warm */
    --c-muted: #6f655a;
    --c-line: rgba(29, 25, 21, .14);
    --c-white: #ffffff;
    --c-ok: #2f6b3a;
    --c-fehler: #a23b2a;
    --radius: 14px;
    --schatten: 0 10px 30px rgba(29, 25, 21, .10);
    --inhalt: 1120px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--c-bg); color: var(--c-text);
    font-family: var(--font); font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.ld-muted { color: var(--c-muted); }
.ld-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 600; color: var(--c-holz); margin: 0 0 .6rem; }
.ld-lead { font-size: 1.08rem; color: var(--c-muted); max-width: 46ch; }
.ld-h3 { font-size: 1.05rem; margin: 1.6rem 0 .25rem; }
.ld-hinweis { font-size: .88rem; color: var(--c-muted); margin: 0 0 .7rem; }

/* ---------- Buttons ---------- */
.ld-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid var(--c-text);
    background: var(--c-text); color: var(--c-bg); font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer; min-height: 52px; transition: transform .12s, background .15s;
}
.ld-btn:hover { transform: translateY(-1px); background: #2b2520; }
.ld-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ld-btn-hell { background: transparent; color: var(--c-text); }
.ld-btn-hell:hover { background: rgba(29, 25, 21, .06); }
.ld-btn-breit { width: 100%; }
.ld-btn svg { width: 20px; height: 20px; }

/* ---------- Navigation ---------- */
.ld-nav {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
    padding: .8rem 1rem; background: rgba(247, 243, 237, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
}
.ld-brand { font-weight: 700; text-decoration: none; letter-spacing: -.01em; font-size: 1.05rem; }
.ld-brand span { font-weight: 500; color: var(--c-holz); letter-spacing: .14em; font-size: .78rem; margin-left: .3rem; }
.ld-links { display: none; gap: 1.4rem; }
.ld-links a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.ld-links a.aktiv { border-bottom-color: var(--c-holz); }
.ld-burger { background: none; border: 0; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 10px; }
.ld-burger span { display: block; height: 2px; background: var(--c-text); border-radius: 2px; }
.ld-nav.offen .ld-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding: .5rem 1rem 1rem;
}
.ld-nav.offen .ld-links a { padding: .85rem 0; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
@media (min-width: 820px) {
    .ld-nav { padding: .9rem 2rem; }
    .ld-links { display: flex; }
    .ld-burger { display: none; }
}

/* ---------- Abschnitte ---------- */
.ld-abschnitt { padding: 3.2rem 1.1rem; }
.ld-abschnitt > .ld-inhalt { max-width: var(--inhalt); margin: 0 auto; }
.ld-sand { background: var(--c-sand); }
.ld-beige { background: var(--c-beige); }
.ld-dunkel { background: var(--c-text); color: var(--c-bg); }
.ld-dunkel .ld-kicker { color: var(--c-beige); }
.ld-dunkel .ld-muted { color: rgba(247, 243, 237, .7); }
@media (min-width: 820px) { .ld-abschnitt { padding: 5rem 2rem; } }

/* ---------- Hero ---------- */
.ld-hero { padding: 1.2rem 1.1rem 2.6rem; max-width: var(--inhalt); margin: 0 auto; }
.ld-hero-bild { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); aspect-ratio: 4 / 3; }
.ld-hero-bild img { width: 100%; height: 100%; object-fit: cover; }
.ld-hero-text { padding-top: 1.4rem; }
.ld-hero-text h1 span { color: var(--c-holz); }
.ld-hero-cta { display: flex; flex-direction: column; gap: .7rem; margin: 1.3rem 0 1.2rem; }
.ld-hero-fakten { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .86rem; color: var(--c-muted); margin: 0; padding: 0; list-style: none; }
.ld-hero-fakten li::before { content: "·"; margin-right: .5rem; color: var(--c-holz); }
.ld-hero-fakten li:first-child::before { content: none; }
@media (min-width: 820px) {
    .ld-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 3rem 2rem 4rem; }
    .ld-hero-text { padding-top: 0; order: -1; }
    .ld-hero-cta { flex-direction: row; }
}

/* ---------- Slideshow ---------- */
.ld-slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-white); box-shadow: var(--schatten); }
.ld-slides { display: flex; transition: transform .5s ease; touch-action: pan-y; }
.ld-slide { flex: 0 0 100%; }
.ld-slide-bild { aspect-ratio: 1 / 1; background: #f0ebe3; }
.ld-slide-bild img { width: 100%; height: 100%; object-fit: cover; }
.ld-slide-text { padding: 1rem 1.1rem 1.2rem; }
.ld-slide-text strong { display: block; margin-bottom: .2rem; }
.ld-slide-text span { color: var(--c-muted); font-size: .92rem; }
.ld-slider-nav { position: absolute; top: 0; bottom: 0; width: 56px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; background: transparent; }
.ld-slider-nav::before { content: ""; width: 40px; height: 40px; border-radius: 50%; background: rgba(247, 243, 237, .85); display: block; }
.ld-slider-nav svg { position: absolute; width: 20px; height: 20px; }
.ld-slider-nav.links { left: 0; } .ld-slider-nav.rechts { right: 0; }
.ld-punkte { display: flex; justify-content: center; gap: .45rem; margin-top: 1rem; }
.ld-punkte button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(29, 25, 21, .25); padding: 0; cursor: pointer; }
.ld-punkte button.aktiv { background: var(--c-text); width: 22px; border-radius: 4px; }
@media (min-width: 820px) {
    .ld-slider { max-width: 640px; margin: 0 auto; }
    .ld-slide-bild { aspect-ratio: 4 / 3; }
}

/* ---------- Schritte (2×2) ---------- */
.ld-schritte { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.ld-schritt { background: var(--c-white); border-radius: var(--radius); padding: 1rem .95rem; box-shadow: 0 2px 10px rgba(29, 25, 21, .06); }
.ld-schritt svg { width: 30px; height: 30px; stroke: var(--c-text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.ld-schritt b { display: block; font-size: .98rem; margin-bottom: .25rem; }
.ld-schritt span { font-size: .84rem; color: var(--c-muted); }
.ld-schritt em { font-style: normal; font-size: .72rem; color: var(--c-holz); font-weight: 600; letter-spacing: .08em; }
@media (min-width: 820px) { .ld-schritte { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

/* ---------- Vorlagenservice (zwei Wege) ---------- */
.ld-wege-box { background: var(--c-white); border-radius: var(--radius); padding: 1.3rem 1.2rem; box-shadow: var(--schatten); }
.ld-weg-karte { border-top: 1px solid var(--c-line); padding: 1.2rem 0 .4rem; }
.ld-weg-karte:first-of-type { border-top: 0; padding-top: .4rem; }
.ld-weg-karte h3 { margin-bottom: .35rem; }
.ld-weg-karte p { color: var(--c-muted); font-size: .95rem; }
.ld-kostenlos { margin-top: 1.2rem; padding: .8rem 1rem; border-radius: 10px; background: var(--c-sand); font-size: .9rem; }
@media (min-width: 820px) {
    .ld-wege-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; padding: 2rem; }
    .ld-wege-box > h2, .ld-wege-box > .ld-kicker, .ld-wege-box > p.ld-lead, .ld-kostenlos { grid-column: 1 / -1; }
    .ld-weg-karte, .ld-weg-karte:first-of-type { border-top: 0; border-left: 0; padding: .4rem 0; }
}

/* ---------- Unser Tisch (Bild mit Hinweisen) ---------- */
.ld-tisch { display: grid; gap: 1.2rem; }
.ld-tisch-bild { border-radius: var(--radius); overflow: hidden; background: var(--c-white); box-shadow: var(--schatten); max-width: 420px; margin: 0 auto; width: 100%; }
.ld-fakten { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.ld-fakt { background: var(--c-white); border-radius: 12px; padding: .85rem 1rem; display: flex; gap: .8rem; align-items: flex-start; }
.ld-fakt i { flex: 0 0 10px; width: 10px; height: 10px; margin-top: .45rem; border-radius: 50%; background: var(--c-holz); }
.ld-fakt b { display: block; }
.ld-fakt span { font-size: .9rem; color: var(--c-muted); }
@media (min-width: 820px) {
    .ld-tisch { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
}

/* ---------- Die Gravur ---------- */
.ld-gravur { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ld-gravur figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--c-sand); }
.ld-gravur figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.ld-gravur img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 820px) {
    .ld-gravur { grid-template-columns: 1.4fr 1fr 1fr; }
    .ld-gravur figure, .ld-gravur figure:first-child { grid-column: auto; aspect-ratio: 1 / 1; }
}

/* ---------- Formulare ---------- */
.ld-formular { max-width: 640px; margin: 0 auto; }
.ld-feldgruppe { display: grid; gap: .8rem; margin-bottom: .6rem; }
.ld-feld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ld-feld-plz { grid-template-columns: 1fr 2fr; }
label { display: block; font-size: .86rem; font-weight: 600; color: var(--c-muted); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select {
    display: block; width: 100%; margin-top: .3rem; padding: .85rem .95rem; font: inherit; font-size: 1rem;
    color: var(--c-text); background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: 12px;
    min-height: 50px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-holz); box-shadow: 0 0 0 3px rgba(164, 113, 63, .18); }
textarea { resize: vertical; min-height: 160px; }
.ld-wege { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.ld-weg { position: relative; display: block; }
.ld-weg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ld-weg span { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-white); font-weight: 600; font-size: .95rem; cursor: pointer; }
.ld-weg input:checked + span { border-color: var(--c-text); background: var(--c-text); color: var(--c-bg); }
.ld-weg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(164, 113, 63, .3); }
.ld-fehler { background: #f6e3df; color: var(--c-fehler); border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
.ld-fehler ul { margin: .3rem 0 0 1.1rem; padding: 0; }
.ld-erfolg { background: #e3efe4; color: var(--c-ok); border-radius: 10px; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.ld-zusammenfassung { background: var(--c-sand); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.4rem; font-size: .95rem; }
.ld-zusammenfassung b { display: block; margin-bottom: .3rem; }
.ld-zusammenfassung pre { white-space: pre-wrap; font: inherit; margin: 0; color: var(--c-muted); }

/* Datei-Upload */
.ld-upload { display: block; border: 2px dashed var(--c-beige); border-radius: 12px; padding: 1.2rem 1rem; text-align: center; cursor: pointer; background: var(--c-white); }
.ld-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ld-upload strong { display: block; margin-bottom: .2rem; }
.ld-upload span { font-size: .85rem; color: var(--c-muted); font-weight: 400; }
.ld-upload-liste { margin: .6rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--c-muted); }

/* Schrittleiste (Vorlage / Idee) */
.ld-stepper { display: flex; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: .8rem; font-weight: 600; }
.ld-stepper li { flex: 1; text-align: center; padding: .5rem .3rem; border-radius: 999px; background: var(--c-sand); color: var(--c-muted); }
.ld-stepper li.aktiv { background: var(--c-text); color: var(--c-bg); }
.ld-stepper li.fertig { color: var(--c-text); }

/* ---------- Vorlagenbibliothek ---------- */
.ld-vorlagen { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ld-vorlage { background: var(--c-white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(29, 25, 21, .06); transition: box-shadow .15s; }
.ld-vorlage.offen { grid-column: 1 / -1; box-shadow: var(--schatten); }
.ld-vorlage-bild { aspect-ratio: 1 / 1; cursor: pointer; border: 0; padding: 0; background: var(--c-white); width: 100%; display: block; }
.ld-vorlage-bild img { width: 100%; height: 100%; object-fit: contain; }
.ld-vorlage.offen .ld-vorlage-bild { max-width: 420px; margin: 0 auto; }
.ld-vorlage-kopf { padding: .55rem .8rem .7rem; font-size: .84rem; color: var(--c-muted); display: flex; justify-content: space-between; align-items: center; }
.ld-vorlage-kopf b { color: var(--c-text); }
.ld-vorlage-form { display: none; padding: .4rem 1rem 1.2rem; border-top: 1px solid var(--c-line); }
.ld-vorlage.offen .ld-vorlage-form { display: block; }
.ld-vorlage-form .ld-hinweis { margin-top: .8rem; }
@media (min-width: 820px) {
    .ld-vorlagen { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    .ld-vorlage.offen { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
    .ld-vorlage.offen .ld-vorlage-bild { max-width: none; }
    .ld-vorlage.offen .ld-vorlage-kopf { grid-column: 1; }
    .ld-vorlage.offen .ld-vorlage-form { grid-column: 2; grid-row: 1 / span 2; border-top: 0; border-left: 1px solid var(--c-line); padding: 1.2rem 1.4rem; }
}

/* ---------- Footer ---------- */
.ld-footer { padding: 2rem 1.1rem 3rem; border-top: 1px solid var(--c-line); font-size: .88rem; display: grid; gap: 1rem; max-width: var(--inhalt); margin: 0 auto; }
.ld-footer-kontakt { display: flex; flex-wrap: wrap; gap: 1rem; }
.ld-footer-kontakt a { color: var(--c-muted); }
@media (min-width: 820px) { .ld-footer { grid-template-columns: 1fr auto; align-items: center; padding: 2.4rem 2rem 3rem; } }

/* Rechtliches (Impressum/Datenschutz) */
.ld-text { max-width: 720px; margin: 0 auto; }
.ld-text h2 { font-size: 1.25rem; margin-top: 1.8rem; }

/* ---------- Feinschliff (Feedback Niklas, 31.10.2026) ---------- */
/* Schrittzahlen als kleiner Kreis */
.ld-schritt em {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--c-holz);
    color: var(--c-holz); font-size: .78rem; font-weight: 700; letter-spacing: 0; margin-bottom: .45rem;
}
/* Die beiden Wege des Vorlagenservice als abgegrenzte Kästen */
.ld-weg-karte, .ld-weg-karte:first-of-type {
    border: 1.5px solid var(--c-line); border-radius: 12px; background: var(--c-bg);
    padding: 1.1rem 1.1rem 1.2rem; margin-top: .9rem;
}
@media (min-width: 820px) {
    .ld-weg-karte, .ld-weg-karte:first-of-type { padding: 1.3rem 1.4rem; margin-top: .3rem; }
}

/* ---------- Beta-Modus (Entwurf, nur für angemeldete Admins; includes/beta.php) ---------- */
.ld-beta-leiste {
    position: sticky; top: 0; z-index: 52; display: flex; align-items: center; gap: .7rem; min-height: 40px;
    padding: .3rem 1rem; background: var(--c-text); color: var(--c-bg); font-size: .82rem;
}
.ld-beta .ld-nav { top: 40px; }
.ld-beta-marke { font-weight: 700; letter-spacing: .14em; font-size: .68rem; text-transform: uppercase; color: var(--c-beige); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.ld-beta-text { opacity: .8; }
.ld-beta-abstand { flex: 1; }
.ld-beta-link { color: var(--c-bg); opacity: .8; text-decoration: none; font-weight: 500; white-space: nowrap; }
.ld-beta-link:hover { opacity: 1; }
@media (max-width: 819px) { .ld-beta-text { display: none; } }

/* ---------- Entwurf (Beta): Vorlagenbibliothek am Desktop – offene Vorlage über die volle Breite,
   Bild links begrenzt, Formular bekommt Platz, Hinweis kleiner (Feedback Nov. 2026) ---------- */
@media (min-width: 820px) {
    .ld-beta .ld-vorlage.offen { grid-column: 1 / -1; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); }
    .ld-beta .ld-vorlage.offen .ld-vorlage-bild { max-width: 400px; }
    .ld-beta .ld-vorlage.offen .ld-vorlage-form { padding: 1.4rem 1.8rem 1.6rem; }
    .ld-beta .ld-vorlage.offen .ld-feldgruppe { grid-template-columns: 1fr 1fr; }
    .ld-beta .ld-vorlage.offen .ld-feldgruppe label:last-child { grid-column: 1 / -1; }
}
.ld-beta .ld-vorlage-form .ld-hinweis { font-size: .8rem; line-height: 1.45; }
