/* Tischlerei Breiter & Partner – Layout im Werkbuch-Stil
 * Eigenes CSS (ersetzt w3.css). Schriften liegen lokal unter /fonts (kein Google-Server).
 * Hell/Dunkel wechselt automatisch nach der Geräteeinstellung.
 */

/* ---- Schriften (lokal) ---- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff') format('woff'); }

/* ---- Farben ---- */
:root {
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --bg: #efece7;
  --surface: #f8f6f2;
  --ink: #2b2a28;
  --muted: #5f5a53;
  --line: #d9d4cb;
  --stripe: #ece8e1;
  --band: #2f2d2b;
  --band-ink: #efece7;
  --band-soft: #cfc8bd;
  --band-accent: #e08a4d;
  --band-muted: #a39d93;
  --band-line: #4a4743;
  --accent: #b4561b;
  --on-accent: #ffffff;
  --plate: #f3f0eb;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1e1c;
    --surface: #2a2826;
    --ink: #efece7;
    --muted: #b0aa9f;
    --line: #3d3a36;
    --stripe: #33302d;
    --band: #141312;
    --accent: #e08a4d;
    --on-accent: #1f1e1c;
  }
}

/* ---- Grundlagen ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Kopf ---- */
.site-header { background: var(--band); color: var(--band-ink); border-bottom: 3px solid var(--accent); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 10px; background: var(--plate); display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-soft); }
.brand-text strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--band-accent); }
.nav a { white-space: nowrap; }
.nav a.btn { color: var(--on-accent); padding: 10px 18px; }
.nav .btn:hover { color: var(--on-accent); }
.t-mob { display: none; }
.icon-btn { display: none; }
html:not(.js) .burger { display: none; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---- Kopf am Handy (unter 760px): Baustein WebNavMobil ---- */
@media (max-width: 759px) {
  .site-header .wrap { gap: 6px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; justify-content: flex-start; }
  .brand { flex: 1; min-width: 0; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text small { font-size: 11px; }
  .brand-text strong { font-size: clamp(14px, 4vw, 17px); }
  .icon-btn { display: inline-flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border: 0; padding: 0; border-radius: 8px; cursor: pointer; }
  .call { background: var(--accent); color: var(--on-accent); }
  .call svg { width: 22px; height: 22px; }
  .burger { background: transparent; color: var(--band-ink); }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; border-top: 1px solid var(--band-line); padding: 4px 0 16px; }
  .nav a { min-height: 48px; padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--band-line); }
  .nav a.btn { margin-top: 16px; border: 0; border-radius: 8px; justify-content: center; font-weight: 600; }
  .t-desk { display: none; }
  .t-mob { display: inline; }
  html.js .nav[hidden] { display: none; }
  .site-header :focus-visible { outline-color: var(--band-accent); }
}

/* ---- Knöpfe ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 8px; border: 2px solid transparent; font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { border-color: var(--band-ink); color: var(--band-ink); background: transparent; }
.btn-light:hover { background: var(--band-ink); color: var(--band); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Abschnitte ---- */
.section { padding-top: clamp(56px, 8vw, 104px); }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; }
.h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 580px; }
.head { margin-bottom: 32px; }

/* ---- Hero ---- */
.hero { padding-top: clamp(36px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-text p { margin: 0; }
.plate { background: #ffffff; color: #2b2a28; border: 1px solid #d9d4cb; border-radius: 20px; padding: clamp(18px, 3vw, 32px); }
.plate img { display: block; width: 100%; height: auto; padding-bottom: 12px; border-bottom: 1px solid #d9d4cb; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #d9d4cb; }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts span { font-size: 14px; color: #5f5a53; }
.facts strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-align: right; }

/* ---- Karten ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.card .nr { font-size: 14px; font-weight: 700; color: var(--accent); }
.card h3 { font-size: 24px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---- Galerie ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tile { aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--surface) 0 18px, var(--stripe) 18px 36px); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { font-weight: 500; font-size: 16px; }

/* ---- Team ---- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: start; }
.team { display: flex; flex-direction: column; gap: 12px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; gap: 18px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--band); color: #efece7; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; }
.person strong { display: block; font-size: 17px; font-weight: 500; }
.person span { font-size: 15px; color: var(--muted); }

/* ---- Kontakt ---- */
.contact-band { background: var(--band); color: var(--band-ink); border-radius: 20px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 36px; align-items: center; }
.contact-band .kicker { color: var(--band-accent); }
.contact-band .lead { color: var(--band-soft); }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--band-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list small { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-muted); }
.contact-list span, .contact-list a { font-size: 18px; text-decoration: none; }
.at::before { content: "@"; }
.map-box { margin-top: 16px; min-height: 420px; border-radius: 16px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--surface) 0 18px, var(--stripe) 18px 36px); overflow: hidden; position: relative; }

/* ---- Fuß ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 104px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; padding: 12px 0; display: inline-block; }
.site-footer a:hover { color: var(--accent); }

/* ---- Rechtstexte ---- */
.page { max-width: 860px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px) 0; }
.back { display: inline-block; padding: 10px 0; font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }
.rule { width: 56px; height: 5px; border-radius: 3px; background: var(--accent); margin: 18px 0 8px; }
.legal h2 { margin: 44px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 28px; line-height: 1.15; }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.legal h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.legal h4 { margin: 18px 0 6px; font-size: 16px; font-weight: 500; color: var(--muted); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal a { text-decoration: underline; word-break: break-word; }
.legal .src { color: var(--muted); font-size: 14px; margin-top: 28px; }

/* ---- Kontaktformular ---- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.form .f { display: flex; flex-direction: column; gap: 8px; }
.form label.l { font-weight: 500; font-size: 15px; }
.form .req { color: var(--accent); }
.field { width: 100%; padding: 13px 16px; border: 1.5px solid var(--muted); border-radius: 8px; background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font-body); min-height: 50px; }
.field:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
textarea.field { resize: vertical; min-height: 150px; }
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.captcha img { width: 140px; height: 40px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; background: #f3f0eb; }
.captcha .field { flex: 1 1 160px; width: auto; min-width: 0; }
.hint { font-size: 13px; color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--ink); text-decoration: underline; }
.notice { border-radius: 10px; padding: 14px 18px; font-size: 15px; border: 1px solid var(--line); background: var(--surface); }
.notice.err { border-color: var(--accent); }
.notice.ok { border-color: #3d8a4f; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-card { background: var(--band); color: var(--band-ink); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.info-card h2 { font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--band-line); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
