/* Das-Stein-Team – Layout "Handwerk / Naturstein" */
:root {
  --sand: #efe7da;
  --sand-2: #e4d8c5;
  --paper: #f8f4ec;
  --slate: #2c2a27;
  --slate-2: #3a3733;
  --text: #4a443d;
  --muted: #857b6e;
  --rust: #9b3b26;
  --rust-2: #b8553a;
  --line: rgba(44, 42, 39, .14);
  --pad: 16px;
  /* Steinstruktur als SVG-Rauschen */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--sand) var(--grain); color: var(--text); font: 17px/1.7 "Work Sans", system-ui, sans-serif; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--slate); line-height: 1.08; margin: 0; font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(var(--pad), env(safe-area-inset-left)); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tag { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 244, 236, .94) var(--grain); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo img { height: 42px; width: auto; display: block; }
.site-header ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.site-header ul a { text-decoration: none; font-weight: 500; color: var(--slate); }
.site-header ul a:hover { color: var(--rust); }
.phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--rust); white-space: nowrap; }
#menu { display: none; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--slate); position: relative; content: ""; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }

/* Hero */
.hero { padding: 64px 0 0; }
.hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.02em; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--rust); }
.hero .trio { font-family: "Fraunces", serif; font-size: clamp(20px, 2.4vw, 28px); color: var(--slate-2); margin: 18px 0 28px; }
.hero .trio span { color: var(--rust-2); padding: 0 6px; }
.hero address { font-style: normal; display: grid; gap: 4px; border-left: 3px solid var(--rust); padding-left: 18px; }
.hero address a { text-decoration: none; font-weight: 600; color: var(--slate); }
.collage { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 520px; }
.collage > * { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.collage > :first-child { grid-row: span 2; }
.empty { background: #000; }
.strip { margin-top: 64px; background: var(--slate); color: var(--sand); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding-top: 18px; padding-bottom: 18px; font-family: "Fraunces", serif; font-size: 20px; letter-spacing: .04em; }
.strip i { font-style: normal; color: var(--rust-2); }

section { padding: 104px 0; }
.title { max-width: 680px; margin-bottom: 56px; }
.title h2 { font-size: clamp(34px, 5vw, 58px); margin-top: 10px; }

/* Leistungen – Bild/Text im Wechsel */
.rows { display: grid; gap: 72px; }
.row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.row:nth-child(even) .pic { order: 2; }
.pic { position: relative; isolation: isolate; }
.pic img, .pic .empty { width: 100%; height: auto; aspect-ratio: 5/4; object-fit: cover; border-radius: 2px; }
.pic::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--rust); z-index: -1; }
.row:nth-child(even) .pic::after { inset: 14px 14px -14px -14px; }
.no { font-family: "Fraunces", serif; font-size: 64px; line-height: 1; color: var(--sand-2); -webkit-text-stroke: 1px var(--muted); }
.row h3 { font-size: clamp(30px, 3.4vw, 42px); margin: 8px 0 18px; }
.row ul { margin: 0; padding: 0; list-style: none; }
.row li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.row li::before { content: "◆"; color: var(--rust); font-size: 10px; margin-top: 7px; }
.trade { background: var(--paper) var(--grain); border: 1px solid var(--line); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.trade h3 { font-size: 34px; }
.trade .no { font-size: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--slate); color: var(--sand); padding: 10px 20px; font-weight: 500; }

/* Firmenwagen */
.van { background: var(--slate) var(--grain); color: var(--sand); }
.van .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.van h2 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); margin: 10px 0 20px; }
.van img { width: 100%; height: auto; border-radius: 2px; }
.van p { color: #cfc5b6; margin: 0 0 8px; }
.van a { color: #fff; text-decoration: none; font-weight: 600; }
.van .tag { color: var(--rust-2); }

/* Referenzen */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 36px; }
.filters button { font: 500 16px "Work Sans", sans-serif; color: var(--slate); background: transparent; padding: 10px 18px; min-height: 44px; border: 1px solid var(--slate); cursor: pointer; }
.filters button.on { background: var(--slate); color: var(--sand); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; }
.mosaic figure[hidden] { display: none; }
.mosaic a { display: block; height: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 0; bottom: 0; background: var(--rust); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; pointer-events: none; }
.mosaic .w { grid-column: span 2; }
.mosaic .t { grid-row: span 2; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: transparent; color: #fff; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 18, 16, .94); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; transition: transform .2s ease, opacity .2s ease; }
.lightbox img { display: block; max-width: calc(100vw - 144px); max-height: calc(100dvh - 120px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { display: flex; gap: 16px; align-items: center; font-size: 14px; letter-spacing: .08em; }
.lightbox .lb-cat { background: var(--rust); padding: 4px 12px; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.lightbox .lb-count { opacity: .75; }
.lightbox button { position: fixed; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 52px; height: 52px; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: var(--rust); }
.lightbox .lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; background: var(--rust); }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { right: 12px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
body.lb-open { overflow: hidden; }

/* Zahlen */
.numbers { background: var(--rust); color: #fff; padding: 72px 0; }
.numbers .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.numbers b { display: block; font: 700 clamp(56px, 8vw, 104px)/1 "Fraunces", serif; }
.numbers span { letter-spacing: .18em; text-transform: uppercase; font-size: 14px; opacity: .85; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.card { background: var(--paper) var(--grain); border: 1px solid var(--line); padding: 40px; }
.card h3 { font-size: 30px; margin-bottom: 22px; }
.card p { margin: 0 0 18px; }
.card a { text-decoration: none; color: var(--slate); font-weight: 600; }
.card .big { font-family: "Fraunces", serif; font-size: 28px; color: var(--rust); }
.card .label { letter-spacing: .12em; color: var(--rust); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }
.fields input, .fields textarea { width: 100%; font: inherit; font-size: 16px; padding: 14px 4px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: var(--slate); border-radius: 0; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--rust); }
.fields textarea { min-height: 130px; resize: vertical; }
.recaptcha-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.recaptcha-note a { font-weight: 400; text-decoration: underline; color: inherit; }
/* Badge ausgeblendet – der Hinweis steht direkt am Formular (von Google erlaubt) */
.grecaptcha-badge { visibility: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; background: var(--slate); color: var(--sand); border: 0; font: 600 16px "Work Sans", sans-serif; cursor: pointer; text-decoration: none; letter-spacing: .04em; }
.btn:hover { background: var(--rust); }
.alert { padding: 16px 20px; margin-bottom: 20px; border-left: 4px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: #e6eedf; border-color: #4f7a3a; color: #2f4a22; }
.alert-danger { background: #f6e1db; border-color: var(--rust); color: #6d2616; }

/* Impressum / Datenschutz */
.legal { padding: 72px 0 104px; }
.legal .wrap { max-width: 860px; }
.legal .card { padding: 48px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 28px; }
.legal h2 { font-size: 26px; margin: 40px 0 14px; }
.legal h3 { font-size: 21px; margin: 28px 0 10px; }
.legal h4, .legal h5, .legal h6 { font: 600 17px "Work Sans", sans-serif; color: var(--slate); margin: 22px 0 8px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.legal p, .legal li { overflow-wrap: anywhere; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.facts .k { font-weight: 600; color: var(--slate); }
.facts p { margin: 0; grid-column: 1 / -1; }

/* Footer */
.site-footer { background: var(--slate); color: #b5ab9c; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Cookie-Einwilligung */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; background: rgba(44, 42, 39, .97); color: var(--sand); font-size: 14px; line-height: 1.5; padding: 16px max(var(--pad), env(safe-area-inset-left)) calc(16px + env(safe-area-inset-bottom)); }
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 760px; }
.consent a { color: #fff; }
.consent-buttons { display: flex; gap: 10px; }
.consent button { min-height: 44px; min-width: 130px; padding: 0 22px; border: 1px solid var(--sand); background: transparent; color: #fff; font: 600 14px "Work Sans", sans-serif; cursor: pointer; }
.consent button:hover { background: var(--rust); border-color: var(--rust); }

@media (max-width: 960px) {
  .site-header ul, .site-header .phone { display: none; }
  .burger { display: flex; }
  #menu:checked ~ ul {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px var(--pad) 12px;
  }
  #menu:checked ~ ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .hero .grid, .row, .van .wrap, .contact { grid-template-columns: 1fr; gap: 36px; }
  .row:nth-child(even) .pic { order: 0; }
  .collage { height: 420px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 600px) {
  section { padding: 72px 0; }
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .logo img { height: 32px; }
  .hero { padding-top: 40px; }
  .collage { height: 340px; grid-template-columns: 1.3fr 1fr; gap: 8px; }
  .strip { margin-top: 40px; }
  .strip .wrap { font-size: 16px; gap: 8px 20px; }
  .rows { gap: 56px; }
  .pic::after, .row:nth-child(even) .pic::after { inset: 10px -8px -10px 8px; }
  .no { font-size: 48px; }
  .trade, .card, .legal .card { padding: 28px 20px; }
  .mosaic { grid-auto-rows: 150px; gap: 8px; }
  .numbers .wrap { grid-template-columns: 1fr; gap: 32px; }
  .fields { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .consent-buttons { width: 100%; }
  .consent button { flex: 1; min-width: 0; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .lightbox img { max-width: 100vw; max-height: calc(100dvh - 180px); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; }
  .lightbox .lb-prev { left: 16px; }
  .lightbox .lb-next { right: 16px; }
  .legal { padding-top: 40px; }
}
