/* Tischlerei Otto: four colours sampled from the supplied swatches.
   This file is the only palette override. Approved layout and contours are unchanged.
   No transparency on text or photos. The default without JavaScript is opaque. */
:root {
  --palette-sage:#c9d3c0;
  --palette-sand:#c1bba4;
  --palette-olive:#97946c;
  --palette-taupe:#64614b;
  --sage:var(--palette-sage); --olive:var(--palette-taupe);
  --cream:#eeeee5; --ivory:#f7f8f2;
  --ink:#24271f; --muted:#3d4034; --frame:#4f5141;
  --accent:var(--palette-taupe); --rule:rgba(100,97,75,.32);
  --glass-light-alpha:1; --glass-mid-alpha:1; --glass-dark-alpha:1;
  --glass-header-alpha:1; --glass-blur:0px; --glass-highlight:0;
}
body {
  background-color:var(--cream);
  background-image:linear-gradient(rgba(238,238,229,.87),rgba(238,238,229,.87)),url('otto-zeichenpapier-architektur.webp');
}
.site-header { background:rgba(201,211,192,var(--glass-header-alpha)); -webkit-backdrop-filter:blur(var(--glass-blur)); backdrop-filter:blur(var(--glass-blur)); }
.site-nav__link::after { background:var(--palette-taupe); }
a:hover { color:var(--ink); }
.eyebrow,.contact-details__label,.project-card__body .eyebrow { color:var(--muted); }
.section-heading h2::after { background:var(--palette-taupe); }
.button { background:rgba(201,211,192,var(--glass-light-alpha)); color:var(--ink); border-color:var(--palette-taupe); }
.button:hover { background:var(--palette-sand); color:var(--ink); }
.button--wood,.button--wood:hover {
  background:var(--palette-olive); background-image:none; border-color:var(--palette-taupe);
  color:var(--ink); box-shadow:none;
}
.button--wood:hover { background:var(--palette-sage); }
.references-actions .button { background:rgba(201,211,192,var(--glass-light-alpha)); }
.hero__copy h1::after { background:var(--palette-sand); }
.hero { background-color:var(--palette-taupe); }
.hero-media__wash { background:linear-gradient(90deg,rgba(36,39,31,.89) 0%,rgba(36,39,31,.82) 26%,rgba(51,52,40,.76) 52%,rgba(100,97,75,.18) 73%,rgba(100,97,75,.18) 100%); }
.hero .button--outline { background:rgba(100,97,75,.14); color:var(--ivory); border-color:var(--ivory); }
.hero .button--outline:hover { background:rgba(100,97,75,.62); color:var(--ivory); }
.video-control { background:rgba(36,39,31,.88); color:var(--ivory); }
.video-control:hover { background:var(--ink); color:var(--ivory); }
/* Same original Novy artwork, now twice as wide on desktop. */
.hero-partner-logo { width:92px; bottom:62px; border-color:rgba(247,248,242,.65); }
.hero-partner-logo img { display:block; width:100%; height:auto; }
/* A single translucent fill within the existing shared clipping path. */
.tile { --tile-fill:rgba(193,187,164,var(--glass-light-alpha)); }
.tile--sand { --tile-fill:rgba(193,187,164,var(--glass-light-alpha)); }
.tile--sage { --tile-fill:rgba(201,211,192,var(--glass-light-alpha)); }
.tile--moss { --tile-fill:rgba(151,148,108,var(--glass-mid-alpha)); }
.tile--olive { --tile-fill:rgba(100,97,75,var(--glass-dark-alpha)); --outline-color:var(--frame); color:var(--ivory); }
.tile__surface,.project-card .tile__surface {
  background-color:var(--tile-fill);
  background-image:linear-gradient(135deg,rgba(255,255,255,var(--glass-highlight)),transparent 58%);
  -webkit-backdrop-filter:blur(var(--glass-blur)); backdrop-filter:blur(var(--glass-blur));
}
.tile--olive .tile__surface { background-image:none; }
.tile--olive h3,.tile--olive p,.tile--olive .check-list { color:var(--ivory); }
.tile--moss p,.tile--moss .line-icon { color:var(--ink); }
.project-card__body { background:transparent; }
.project-card__image { opacity:1; filter:none; }
.check-icon__box { fill:var(--palette-sage); }
.check-icon { stroke:var(--ink); }
.step-number { color:var(--ink); }
.step-number::before { background:var(--palette-olive); }
.step-number path { stroke:var(--frame); }
.contact-details a { color:var(--ink); }
.contact-details a:hover { color:var(--palette-taupe); }
.contact-grain { background:var(--palette-olive); opacity:.18; }
.site-footer { background:rgba(193,187,164,.56); }
/* Settings are solid, independent of the effect being edited. */
[hidden] { display:none !important; }
.appearance-trigger { display:inline-flex; align-items:center; justify-content:center; width:42px; min-height:44px; padding:8px; margin-left:14px; border:0; border-radius:0; color:var(--ink); background:transparent; }
.appearance-trigger:hover { background:rgba(100,97,75,.12); }
.appearance-trigger svg { width:22px; height:22px; }
.appearance-trigger__label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.appearance-footer-button { border:0; padding:0; min-height:26px; background:transparent; color:var(--ink); font-size:12px; text-decoration:underline; text-underline-offset:4px; }
.appearance-dialog { padding:30px; width:min(510px,calc(100vw - 32px)); max-height:calc(100dvh - 36px); margin:auto; border:1.5px solid var(--frame); border-radius:0; background:#edf0e6; color:#24271f; box-shadow:0 18px 60px rgba(36,39,31,.20); overflow:auto; }
.appearance-dialog:not([open]) { display:none; }
.appearance-dialog::backdrop { background:rgba(36,39,31,.42); }
.appearance-dialog__heading { display:flex; align-items:start; justify-content:space-between; gap:14px; }
.appearance-dialog h2 { font-size:28px; line-height:1.15; letter-spacing:-.025em; }
.appearance-close { width:44px; min-width:44px; height:44px; border:1px solid #64614b; background:#c9d3c0; color:#24271f; font:26px/1 Arial,sans-serif; margin-top:-8px; }
.appearance-dialog p { font-size:14px; line-height:1.6; }
#appearance-intro { margin-top:14px; color:#3d4034; }
.appearance-control { margin-top:26px; }
.appearance-control__label { display:flex; justify-content:space-between; align-items:baseline; gap:16px; font-size:15px; }
.appearance-control__label label { font-weight:700; }
#glass-value { font-size:13px; white-space:nowrap; }
#glass-level { display:block; width:100%; height:44px; margin:5px 0 0; accent-color:#64614b; cursor:pointer; }
#glass-level:disabled { cursor:not-allowed; }
.appearance-scale { display:flex; justify-content:space-between; font-size:12px; color:#3d4034; margin-top:-4px; }
#glass-help { font-size:12px; color:#3d4034; margin-top:12px; }
.appearance-checkbox { display:flex; align-items:start; gap:12px; padding:15px 0; margin-top:20px; border-top:1px solid rgba(100,97,75,.3); border-bottom:1px solid rgba(100,97,75,.3); cursor:pointer; }
.appearance-checkbox input { width:22px; height:22px; flex:0 0 22px; margin:2px 0 0; accent-color:#64614b; }
.appearance-checkbox strong { display:block; font-size:14px; }
.appearance-checkbox small { display:block; font-size:12px; line-height:1.5; color:#3d4034; margin-top:3px; }
.appearance-note { padding:11px 12px; border-left:2px solid #64614b; background:#c9d3c0; margin-top:15px; font-size:12px !important; }
.appearance-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:22px; }
.appearance-off,.appearance-done { background:#c9d3c0; color:#24271f; border:1px solid #64614b; font-size:13px; min-height:44px; padding:10px 15px; }
.appearance-done { background:#64614b; color:#fff; min-width:110px; }
.appearance-done:hover { background:#3d4034; color:#fff; }
.appearance-reset { min-height:44px; padding:9px 3px; background:transparent; color:#24271f; border:0; text-decoration:underline; text-underline-offset:3px; font-size:13px; }
.appearance-storage { font-size:11px !important; color:#3d4034; margin-top:14px; }
.appearance-dialog__bottom { display:flex; justify-content:end; margin-top:20px; }
:where(a,button,input,summary):focus-visible { outline:3px solid #24271f; outline-offset:4px; box-shadow:0 0 0 6px #f7f8f2; }
/* The stronger contrast option is fully opaque; no decorative texture. */
html[data-otto-contrast="more"] { --ink:#191c16; --muted:#24271f; --frame:#24271f; --rule:rgba(36,39,31,.48); }
html[data-otto-contrast="more"] body { background-image:none; }
html[data-otto-contrast="more"] .tile__surface { background-image:none; }
html[data-otto-contrast="more"] .hero-media__wash { background:linear-gradient(90deg,rgba(24,27,20,.96),rgba(24,27,20,.90) 55%,rgba(24,27,20,.55)); }
html[data-otto-contrast="more"] .contact-grain { display:none; }
@media(max-width:1180px) { .appearance-trigger { margin-left:8px; width:36px; } }
@media(max-width:832px) {
  .appearance-trigger { margin:6px 0 0; width:auto; display:flex; gap:10px; padding:8px 0; }
  .appearance-trigger__label { position:static; width:auto; height:auto; overflow:visible; clip-path:none; font:18px/1.3 var(--serif); }
  .site-nav { background:var(--palette-sage); }
  .hero-media__wash { background:linear-gradient(90deg,rgba(36,39,31,.92),rgba(36,39,31,.78) 70%,rgba(100,97,75,.35)); }
}
@media(max-width:680px) {
  .hero-partner-logo { width:80px; bottom:16px; }
  .hero__grid { padding-bottom:118px; }
  .hero-media__wash { background:linear-gradient(90deg,rgba(36,39,31,.93),rgba(36,39,31,.87) 75%,rgba(36,39,31,.84)); }
  .appearance-dialog { padding:24px 20px; }
  .appearance-dialog h2 { font-size:25px; }
}
@media(prefers-reduced-transparency:reduce) {
  :root { --glass-light-alpha:1 !important; --glass-mid-alpha:1 !important; --glass-dark-alpha:1 !important; --glass-header-alpha:1 !important; --glass-blur:0px !important; --glass-highlight:0 !important; }
}
@media(forced-colors:active) {
  .tile__surface,.site-header,.site-footer,.button,.appearance-dialog,.appearance-note,.appearance-close { background:Canvas !important; color:CanvasText !important; background-image:none !important; box-shadow:none !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
  .tile__outline { stroke:CanvasText !important; }
  .tile--olive h3,.tile--olive p,.tile--olive .check-list,.hero h1,.hero .eyebrow,.hero__lead { color:CanvasText !important; }
  .hero-media { display:none; }
  .hero { background:Canvas; color:CanvasText; }
  :where(a,button,input,summary):focus-visible { outline:3px solid Highlight; box-shadow:none; }
  .check-icon__box { fill:Canvas; } .check-icon,.check-icon__tick { stroke:CanvasText; }
}

/* Explicit high-contrast native range track and thumb. */
#glass-level { -webkit-appearance:none; appearance:none; background:transparent; }
#glass-level::-webkit-slider-runnable-track { height:4px; border:0; background:#64614b; }
#glass-level::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:22px; height:22px; margin-top:-9px; border:2px solid #edf0e6; border-radius:50%; background:#64614b; box-shadow:0 0 0 1px #64614b; }
#glass-level::-moz-range-track { height:4px; border:0; background:#64614b; }
#glass-level::-moz-range-thumb { width:18px; height:18px; border:2px solid #edf0e6; border-radius:50%; background:#64614b; box-shadow:0 0 0 1px #64614b; }
#glass-level:disabled { opacity:.72; }
@media(forced-colors:active) {
  #glass-level::-webkit-slider-runnable-track { background:CanvasText; }
  #glass-level::-webkit-slider-thumb { background:Highlight; border-color:Canvas; box-shadow:0 0 0 1px CanvasText; }
  #glass-level::-moz-range-track { background:CanvasText; }
  #glass-level::-moz-range-thumb { background:Highlight; border-color:Canvas; }
}
