/* Gidas Consulting & Büroservice: site styles. Self-hosted fonts only. */

/* ---------- Fonts (SIL OFL; served from this domain) ----------
   Trimmed to what the site sets: Fraunces is pinned at weight 400 (optical size axis kept),
   Inter keeps weights 400-600. Made with fontTools from the Google Fonts files. */
@font-face{font-family:"Fraunces";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/fraunces-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/fraunces-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url("/assets/fonts/inter-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url("/assets/fonts/inter-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url("/assets/fonts/inter-greek.woff2") format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url("/assets/fonts/inter-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
/* Metric-matched stand-ins shown until the web fonts arrive, so text does not jump when they swap in.
   Values measured against this site's own text (Fraunces at optical size 40). */
@font-face{font-family:"Fraunces Fallback";src:local("Georgia");size-adjust:101.98%;ascent-override:95.91%;descent-override:25.01%;line-gap-override:0%}
@font-face{font-family:"Inter Fallback";src:local("Arial"),local("ArialMT");size-adjust:105.43%;ascent-override:91.89%;descent-override:22.88%;line-gap-override:0%}

/* ---------- Tokens ---------- */
:root{
  --ink:#0e0e10;
  --ink-rule:rgba(247,245,240,.14);
  --paper:#f7f5f0;
  --stock:#f2ecdd;
  --paper-rule:#e3ded4;
  --paper-rule-strong:#cdc5b3;
  --gold:#c9a449;
  --gold-hover:#dbbb62;
  --gold-deep:#7a5b1e;
  --gold-rule:#8c6a26;
  --text:#121212;
  --text-mute:#565656;
  --on-ink:#f7f5f0;
  --on-ink-soft:#d9d4c8;
  --on-ink-mute:#b8b2a6;
  --ink-hover:#2a2a2f;
  --field-surface:#fffdf8;
  --field-edge:#8a8169;
  --field-edge-hover:#6b665c;
  --error:#a1301f;

  --serif:"Fraunces","Fraunces Fallback","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --sans:"Inter","Inter Fallback",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;

  --wrap:1120px;
  --pad:clamp(20px,5vw,40px);
  --s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;--s8:64px;--s9:96px;
  --section:clamp(72px,9vw,128px);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --radius:2px;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scrollbar-color:var(--gold-rule) var(--ink)}
body{margin:0;background:var(--paper);color:var(--text);font:400 1.0625rem/1.65 var(--sans);font-feature-settings:"cv11","ss03";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;overflow-wrap:break-word}
img,svg{display:block;max-width:100%}
img{height:auto}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit;text-underline-offset:.22em;text-decoration-thickness:1px}
::selection{background:var(--gold);color:var(--ink)}
input,textarea,button,select{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px;border-radius:1px}
.on-ink :focus-visible,.site-header :focus-visible,.site-footer :focus-visible{outline-color:var(--gold)}
/* The card is card stock even when it lies on the ink desk: bright gold falls to 2.0:1 there. */
.on-ink .vcard :focus-visible{outline-color:var(--gold-deep)}
.tnum{font-variant-numeric:tabular-nums lining-nums}
/* The Dialled Number Rule: a phone number is read and dialled as one unit, so it never breaks across lines. */
a[href^="tel:"]{white-space:nowrap}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Hidden by its own height, not a fixed offset: with large text it wraps to two lines and would peek in. */
.skip-link{position:absolute;left:var(--pad);top:12px;z-index:100;transform:translateY(calc(-100% - 24px));background:var(--gold);color:var(--ink);padding:10px 16px;font-weight:600;text-decoration:none;border-radius:var(--radius);transition:transform .2s var(--ease-out)}
.skip-link:focus{transform:none}

.wrap{width:100%;max-width:calc(var(--wrap) + 2 * var(--pad));margin-inline:auto;padding-inline:var(--pad)}
.on-ink{background:var(--ink);color:var(--on-ink)}

/* ---------- Type ---------- */
h1,h2,h3{font-family:var(--serif);font-weight:400;font-optical-sizing:auto;letter-spacing:-.02em;text-wrap:balance;color:inherit}
h1{font-size:clamp(2.375rem,1.5rem + 2.9vw,3.75rem);line-height:1.04;letter-spacing:-.028em}
h2{font-size:clamp(2rem,1.45rem + 1.7vw,2.75rem);line-height:1.1}
h3{font-size:clamp(1.375rem,1.2rem + .55vw,1.75rem);line-height:1.2;letter-spacing:-.012em}
.lede{font-size:clamp(1.0625rem,1rem + .25vw,1.1875rem);line-height:1.6;max-width:36em;text-wrap:pretty}
.on-ink .lede{color:var(--on-ink-soft)}
p,li{text-wrap:pretty}

/* ---------- Buttons & links ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6em;min-height:50px;padding:12px 22px;border:0;border-radius:var(--radius);font:600 .9375rem/1.25 var(--sans);text-align:center;text-decoration:none;cursor:pointer;transition:background-color .2s var(--ease-out),color .2s var(--ease-out),transform .2s var(--ease-out)}
.btn:active{transform:translateY(1px)}
.btn--gold{background:var(--gold);color:var(--ink)}
.btn--gold:hover{background:var(--gold-hover)}
.btn--ink{background:var(--ink);color:var(--paper)}
.btn--ink:hover{background:var(--ink-hover)}
.btn[disabled]{cursor:progress;opacity:.7}
.btn svg{width:18px;height:18px;flex:none}

.link-arrow{display:inline-flex;align-items:center;gap:.45em;overflow-wrap:anywhere;font-weight:600;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:.3em;transition:gap .25s var(--ease-out),color .2s}
.link-arrow svg{width:18px;height:18px;flex:none}
.link-arrow:hover{gap:.7em}
.on-ink .link-arrow{color:var(--gold)}
.on-ink .link-arrow:hover{color:var(--gold-hover)}
.on-paper-link{color:var(--gold-deep)}

/* ---------- Header ---------- */
.site-header{background:var(--ink);color:var(--on-ink);border-bottom:1px solid var(--ink-rule);position:relative;z-index:10}
.site-header__bar{display:flex;align-items:center;justify-content:space-between;gap:var(--s5);min-height:88px}
.site-header__logo{display:block;flex:none;border-radius:var(--radius)}
.site-header__logo img{width:auto;height:58px}
.site-nav{display:flex;align-items:center;gap:clamp(18px,2.6vw,36px)}
.site-nav a{font:500 .9375rem/1 var(--sans);text-decoration:none;color:var(--on-ink);padding:10px 0;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.site-nav a:hover{color:var(--gold)}
.site-nav a[aria-current="page"]{color:var(--gold);border-bottom-color:var(--gold)}
.site-nav .btn{min-height:44px;padding:10px 18px;border-bottom:0;color:var(--ink)}
.site-nav .btn:hover{color:var(--ink)}
/* Tap-to-call in the header: shown on an upright phone and on a phone turned sideways (see Responsive). */
.site-header__call{display:none;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--gold);border-radius:var(--radius);color:var(--gold);font:600 .875rem/1 var(--sans);text-decoration:none}
.site-header__call svg{width:17px;height:17px}

/* ---------- The business card ----------
   One card everywhere. Landscape 85:55 by default; inside a narrow holder
   (an aside, a phone) it turns to the portrait 55:85 format. */
.card-holder{container-type:inline-size;width:100%;max-width:620px}
.vcard{
  --card-pad:clamp(20px,5cqi,34px);
  position:relative;
  aspect-ratio:85/55;
  width:100%;
  background:var(--stock);
  color:var(--text);
  border-radius:3px;
  padding:var(--card-pad) calc(var(--card-pad) * 1.1);
  display:grid;
  grid-template-columns:minmax(0,1fr) 30%;
  grid-template-rows:auto auto 1fr auto;
  grid-template-areas:"brand photo" "id photo" "lines photo" "foot foot";
  column-gap:clamp(16px,4cqi,32px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 2px 3px rgba(0,0,0,.35),0 16px 28px -14px rgba(0,0,0,.75);
}
.on-paper .vcard{box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 1px 2px rgba(60,45,10,.22),0 14px 26px -16px rgba(60,45,10,.4)}
.hero .vcard{animation:card-settle 1.2s var(--ease-out) both}
@keyframes card-settle{
  from{transform:translateY(-10px);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 10px 16px rgba(0,0,0,.18),0 40px 60px -20px rgba(0,0,0,.55)}
  to{transform:none}
}
.vcard__brand{grid-area:brand;display:flex;align-items:flex-end;gap:12px}
.vcard__brand img{width:auto;height:clamp(34px,7cqi,46px)}
.vcard__brand span{font:600 .6875rem/1.2 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep);padding-bottom:5px}
.vcard__id{grid-area:id;margin-top:clamp(14px,3.6cqi,26px)}
.vcard__name{display:block;text-wrap:balance;font-family:var(--serif);font-weight:400;font-size:clamp(1.625rem,.9rem + 3.4cqi,2.25rem);line-height:1.05;letter-spacing:-.02em}
/* The qualification line is a phrase, not a field label: set in sentence case so it reads as one line. */
.vcard__title{display:block;margin-top:6px;font:600 .75rem/1.3 var(--sans);letter-spacing:.01em;color:var(--gold-deep)}
.vcard__lines{grid-area:lines;align-self:end;margin-top:var(--s4);display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--s4);row-gap:2px;font-size:.9375rem;line-height:1.55}
.vcard__lines dt{font:600 .6875rem/2.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--text-mute)}
.vcard__lines a[href^="tel:"]{font-variant-numeric:tabular-nums lining-nums}
.vcard__lines a{text-decoration:none;background:linear-gradient(var(--gold-rule),var(--gold-rule)) 0 100%/100% 1px no-repeat;padding-bottom:1px;transition:background-size .25s var(--ease-out),color .2s}
.vcard__lines a:hover{color:var(--gold-deep);background-size:100% 2px}
.vcard__photo{grid-area:photo;align-self:start;margin:0}
.vcard__photo img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 22%;border-radius:1px}
.vcard__foot{grid-area:foot;display:flex;align-items:center;justify-content:space-between;gap:var(--s4);margin-top:var(--s4);padding-top:var(--s3);border-top:1px solid var(--paper-rule-strong)}
.vcard__services{font:500 .6875rem/1.5 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--text-mute);overflow-wrap:anywhere}
.vcard__save{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:36px;font:600 .75rem/1 var(--sans);color:var(--gold-deep);text-decoration:none}
.vcard__save svg{width:15px;height:15px}
.vcard__save:hover{text-decoration:underline}
.nw{white-space:nowrap}
/* A phone with enlarged text (19.5em is 312px at the default 16px, so no real phone at the default
   size): groups may wrap inside, and long German compounds break with a hyphen, not mid-letter. */
@media (max-width:19.5em){
  .nw{white-space:normal;display:inline-block}
  body{hyphens:auto}
}

/* The landscape card holds its 85:55 only from about 550px wide (569px with touch targets); below
   that its content would stretch it. So under 36rem it turns portrait, and a portrait card never
   grows past 27.5rem, the width it was drawn for. */
@container (max-width:36rem){
  .vcard{max-width:27.5rem;aspect-ratio:55/85;grid-template-columns:minmax(0,1fr) 36%;grid-template-rows:auto auto 1fr auto;grid-template-areas:"brand photo" "id id" "lines lines" "foot foot";padding:22px 22px 14px}
  .vcard__id{margin-top:var(--s5)}
  .vcard__brand{flex-direction:column;align-items:flex-start;gap:6px}
  .vcard__lines{align-self:center;margin-top:var(--s5);row-gap:0}
  .vcard__lines dt{line-height:44px}
  .vcard__lines dd{display:flex;align-items:center;min-height:44px;line-height:1.35}
  .vcard__lines dd a{display:inline-flex;align-items:center;min-height:44px;background-position:0 calc(100% - 9px);font-size:1rem}
  .vcard__foot{flex-direction:column;align-items:flex-start;gap:0;margin-top:var(--s3)}
}
/* A portrait card narrower than 24rem (a 360-390px phone) keeps its 55:85 with the 44px contact rows:
   the gaps above the name and the contact lines tighten and the portrait inset steps down a little. */
@container (max-width:24rem){
  .vcard__id,.vcard__lines{margin-top:var(--s3)}
  .vcard__photo{width:84%;justify-self:end}
  .vcard__title{font-size:.6875rem}
}
/* Only with enlarged text: the label column would squeeze the numbers, so each label sits above
   its value. 16rem stays below the narrowest card at the default size (about 265px, the aside on
   Bauunternehmen just above the 860px breakpoint). */
@container (max-width:16rem){
  /* The firm line moves under the logo so it never runs beneath the portrait. */
  .vcard{grid-template-areas:"logo photo" "firm firm" "id id" "lines lines" "foot foot";grid-template-rows:auto auto auto 1fr auto}
  .vcard__brand{display:contents}
  .vcard__brand img{grid-area:logo;align-self:start}
  .vcard__brand span{grid-area:firm;margin-top:var(--s4);padding-bottom:0}
  .vcard .nw{white-space:normal;display:inline-block}
  .vcard__lines{grid-template-columns:minmax(0,1fr)}
  .vcard__lines dt{line-height:1.3;margin-top:var(--s3)}
}

/* ---------- Home: hero ---------- */
.hero{padding-block:clamp(48px,6.5vw,88px) clamp(72px,8vw,112px)}
.hero__grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"title card" "lede card" "actions card";column-gap:clamp(32px,5vw,72px);align-items:start}
.hero__grid h1{grid-area:title;padding-top:clamp(0px,1.5vw,20px)}
.hero__grid .lede{grid-area:lede;margin-top:var(--s5)}
.hero__actions{grid-area:actions;display:flex;flex-wrap:wrap;align-items:center;gap:var(--s4) var(--s6);margin-top:var(--s7)}
.hero__card{grid-area:card;justify-self:end;align-self:center}
.hero__langs{margin-top:var(--s5);font-size:.875rem;color:var(--on-ink-mute);width:100%}
.hero__langs span{color:var(--on-ink-soft)}

/* ---------- Home: services sheet ---------- */
.section{padding-block:var(--section)}
.sheet__head{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(32px,5vw,72px);align-items:end;padding-bottom:var(--s6);border-bottom:2px solid var(--text)}
.sheet__head p{color:var(--text-mute);max-width:34em}
.sheet__row{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(32px,5vw,72px);padding-block:var(--s6) var(--s7);border-bottom:1px solid var(--paper-rule-strong)}
.sheet__row h3{padding-top:2px}
.sheet__name p{margin-top:var(--s3);color:var(--text-mute);font-size:.9375rem;line-height:1.55;max-width:22em}
.sheet__tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s6)}
.sheet__tasks li{padding:var(--s3) 0;border-top:1px solid var(--paper-rule);line-height:1.5}
.sheet__tasks li:nth-child(-n+2){border-top:0;padding-top:4px}
.sheet__more{grid-column:2;margin-top:var(--s4);font-size:.9375rem}

/* ---------- Home: why ---------- */
.why__grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(32px,5vw,72px)}
.why__list li{padding-block:var(--s5) var(--s6);border-top:1px solid var(--ink-rule)}
.why__list li:last-child{border-bottom:1px solid var(--ink-rule)}
.why__claim{display:block;text-wrap:balance;font-family:var(--serif);font-weight:400;font-size:clamp(1.375rem,1.25rem + .4vw,1.625rem);line-height:1.25;letter-spacing:-.012em}
.why__note{display:block;margin-top:var(--s3);color:var(--on-ink-mute);font-size:1rem}
/* Über mich: the owner's own words in the ink band, then the greetings and the trade line. */
.about > p{color:var(--on-ink-soft);max-width:36em}
.about > p + p{margin-top:var(--s4)}
.about > .about__id{margin-bottom:var(--s5);color:var(--on-ink)}
.about > .greetings{margin-top:var(--s5)}
.about > .why__list{margin-top:var(--s7)}
.greetings{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:var(--s3);color:var(--on-ink-soft);font-size:1rem}
.greetings span{white-space:nowrap}
.greetings abbr{text-decoration:none;font:600 .6875rem/1 var(--sans);letter-spacing:.14em;color:var(--gold);margin-right:6px;vertical-align:2px}

/* ---------- Home: close ---------- */
.close__cta{display:inline-flex;align-items:baseline;gap:.35em;overflow-wrap:anywhere;font-family:var(--serif);font-size:clamp(max(min(2rem,10vw),1.25rem),min(1.4rem + 2vw,10vw),3.25rem);line-height:1.08;letter-spacing:-.025em;text-decoration:none;text-wrap:balance;color:var(--text)}
.close__cta span{min-width:0}
.close__cta svg{width:.7em;height:.7em;flex:none;transform:translateY(.05em);transition:transform .3s var(--ease-out)}
.close__cta:hover svg{transform:translate(.15em,.05em)}
.close__cta:hover span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.14em}
.close__lines{display:flex;flex-wrap:wrap;gap:var(--s3) var(--s6);margin-top:var(--s6);font-size:1.0625rem}
.close__lines a{color:var(--gold-deep);font-weight:600}
.close__lines span{color:var(--text-mute)}
.close__notice{margin-top:var(--s8)}

.notice{border:1px solid var(--paper-rule-strong);border-radius:var(--radius);padding:var(--s5) var(--s5) var(--s5);font-size:.9375rem;line-height:1.6;color:var(--text-mute);max-width:38em}
.notice strong{display:block;margin-bottom:6px;color:var(--text);font-weight:600}

/* ---------- Footer ---------- */
.site-footer{padding-block:var(--s9) var(--s6);font-size:.9375rem}
.site-footer__top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--s5);padding-bottom:var(--s7);border-bottom:1px solid var(--ink-rule)}
.site-footer__top img{width:auto;height:72px}
.site-footer__top p{font-family:var(--serif);font-size:1.25rem;color:var(--on-ink-soft)}
.site-footer__cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s6);padding-block:var(--s7)}
.site-footer h2{font:600 .75rem/1.3 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:var(--s4)}
.site-footer li+li{margin-top:6px}
.site-footer a{color:var(--on-ink-soft);text-decoration:none}
.site-footer a:hover{color:var(--on-ink);text-decoration:underline}
.site-footer address{font-style:normal;color:var(--on-ink-soft);line-height:1.8}
.site-footer__base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--s3) var(--s6);padding-top:var(--s5);border-top:1px solid var(--ink-rule);font-size:.8125rem;color:var(--on-ink-mute)}

/* ---------- Subpages ---------- */
.page-head{padding-block:clamp(56px,7vw,96px) var(--s7)}
.page-head .lede{margin-top:var(--s5);color:var(--text-mute)}
.split{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);column-gap:clamp(32px,6vw,96px);align-items:start;padding-bottom:var(--section)}
.split__aside{position:sticky;top:var(--s6)}

.ruled{border-top:2px solid var(--text)}
.ruled li{display:grid;grid-template-columns:minmax(0,1fr);padding:var(--s5) 0;border-bottom:1px solid var(--paper-rule-strong)}
.ruled li strong{font-family:var(--serif);font-weight:400;font-size:1.375rem;line-height:1.25;letter-spacing:-.01em}
.ruled li span{margin-top:6px;color:var(--text-mute);max-width:40em}

.statement span{display:block}
.statement{margin-top:var(--s8);font-family:var(--serif);font-size:clamp(1.5rem,1.2rem + 1vw,2rem);line-height:1.2;letter-spacing:-.018em;max-width:22em}
.statement + .btn{margin-top:var(--s6)}
.split .notice{margin-top:var(--s8)}

/* Kontakt */
.contact{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:clamp(32px,6vw,96px);row-gap:var(--s8);align-items:start;padding-bottom:var(--section)}

.form{display:grid;gap:var(--s5)}
.field{display:grid;gap:6px}
.field label{font-weight:600;font-size:.875rem}
.field label small{font-weight:400;color:var(--text-mute);font-size:inherit}
.field input,.field textarea{width:100%;background:var(--field-surface);border:1px solid var(--field-edge);border-radius:var(--radius);padding:13px 14px;font-size:1rem;line-height:1.5;caret-color:var(--gold-deep);transition:border-color .2s,box-shadow .2s}
.field textarea{min-height:168px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:var(--field-edge-hover);opacity:1}
.field input:hover,.field textarea:hover{border-color:var(--field-edge-hover)}
.field input:focus,.field textarea:focus{outline:2px solid transparent;outline-offset:2px;border-color:var(--gold-deep);box-shadow:0 0 0 3px rgba(201,164,73,.35)}
.field [aria-invalid="true"]{border-color:var(--error);box-shadow:0 0 0 3px rgba(161,48,31,.15)}
.field__error{color:var(--error);font-size:.875rem;font-weight:500}
.field__error:empty{display:none}
.check{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;font-size:.9375rem}
.check input{appearance:none;width:22px;height:22px;margin:1px 0 0;border:1.5px solid var(--field-edge);border-radius:3px;background:var(--field-surface);display:grid;place-content:center;cursor:pointer;transition:background .15s,border-color .15s}
.check input::after{content:"";width:11px;height:6px;border-left:2px solid var(--paper);border-bottom:2px solid var(--paper);transform:rotate(-45deg) translate(1px,-1px) scale(0);transition:transform .15s var(--ease-out)}
.check input:checked{background:var(--ink);border-color:var(--ink)}
.check input:checked::after{transform:rotate(-45deg) translate(1px,-1px) scale(1)}
.check input[aria-invalid="true"]{border-color:var(--error)}
.check a{color:var(--gold-deep)}
.form__foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s4) var(--s5)}
.form__status{font-size:.9375rem;font-weight:500}
.form__status[data-state="error"]{color:var(--error)}
.form__status[data-state="sending"]{color:var(--text-mute)}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.form-error-banner{display:none;border:1px solid var(--error);background:color-mix(in srgb,var(--error) 6%,var(--field-surface));color:var(--error);border-radius:var(--radius);padding:var(--s4) var(--s5);font-size:.9375rem}
.form-error-banner:target{display:block;margin-bottom:var(--s5);scroll-margin-top:var(--s6)}
.form-done{border-top:2px solid var(--text);padding-top:var(--s6)}
.form-done h2{font-size:clamp(1.75rem,1.4rem + 1vw,2.25rem)}
.form-done p{margin-top:var(--s4);color:var(--text-mute);max-width:32em}

/* Legal (Read mode) */
.legal{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,8fr);column-gap:clamp(32px,6vw,96px);padding-bottom:var(--section)}
.legal__toc{position:sticky;top:var(--s6);align-self:start;font-size:.875rem}
.legal__toc h2{font:600 .75rem/1.3 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--text-mute);margin-bottom:var(--s3)}
.legal__toc li{border-top:1px solid var(--paper-rule)}
.legal__toc a{display:block;padding:7px 0;text-decoration:none;color:var(--text-mute)}
.legal__toc a:hover{color:var(--text)}
.prose{max-width:60ch}
.prose section+section{margin-top:var(--s7)}
.prose h2{font-size:1.5rem;line-height:1.25;margin-bottom:var(--s3);scroll-margin-top:var(--s6)}
.prose p+p{margin-top:var(--s3)}
.prose a{color:var(--gold-deep)}
.prose address{font-style:normal}
.stats-optout{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3) var(--s5);margin-top:var(--s4)}
.stats-optout[hidden]{display:none}
.stats-optout p{margin:0;font-size:.9375rem;color:var(--text-mute)}
/* Marks text that must be confirmed before publishing; remove the span once confirmed. */
.prose .todo{background:#fbf1d6;outline:1px dashed var(--gold-rule);padding:0 4px}
.prose .stand{margin-top:var(--s7);color:var(--text-mute);font-size:.9375rem}

/* 404 */
.lost{min-height:62vh;display:grid;align-content:center;padding-block:var(--s9)}
.lost p{margin-top:var(--s5)}
.lost ul{display:flex;flex-wrap:wrap;gap:var(--s3) var(--s6);margin-top:var(--s6)}

/* ---------- Responsive ----------
   Breakpoints in em follow the visitor's own font-size setting: at the default 16px they are
   1152 (hero) / 860 / 640 / 400px; with larger text the narrower layouts arrive earlier.
   Single columns use minmax(0,1fr) so one wide child (the card, a long word) cannot widen the page. */
/* The hero stays in one column up to 72em (1152px): narrower than that, the card beside the
   headline would fall under the 36rem it needs as a landscape card. */
@media (max-width:72em){
  .hero__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "lede" "card" "actions"}
  .hero__card{justify-self:start;margin-top:var(--s7)}
  .hero__grid h1{max-width:16em}
}
/* Bauunternehmen: the aside holding the card is 4/11 of the row. Below 64em (1024px) it would be
   narrower than the 320px a portrait card needs for its 55:85, so the page goes to one column. */
@media (max-width:64em){
  .split{grid-template-columns:minmax(0,1fr)}
  .split__aside{position:static;margin-top:var(--s8)}
}
@media (max-width:53.75em){
  .sheet__head,.sheet__row,.why__grid,.contact,.legal{grid-template-columns:minmax(0,1fr)}
  .sheet__head h2{margin-bottom:var(--s4)}
  .sheet__name{margin-bottom:var(--s4)}
  .sheet__more{grid-column:1}
  .why__grid h2{margin-bottom:var(--s6)}
  .legal__toc{position:static;margin-bottom:var(--s7)}
  .site-footer__cols{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:40em){
  .site-header__bar{min-height:0;padding-block:12px 0;flex-wrap:wrap;row-gap:6px}
  .site-header__logo img{height:44px}
  .site-header__call{display:inline-flex}
  .site-nav{order:3;width:100%;flex-wrap:wrap;justify-content:space-between;gap:0 12px}
  .site-nav .btn{display:none}
  .hero{padding-top:var(--s6)}
  .hero__grid{grid-template-areas:"title" "card" "lede" "actions"}
  .hero__card{margin-top:var(--s5)}
  .hero__grid .lede{margin-top:var(--s6)}
  .hero__actions{margin-top:var(--s5);flex-direction:column;align-items:stretch;gap:var(--s4)}
  .hero__actions .btn{width:100%}
  .hero__actions .link-arrow{align-self:flex-start}
  .hero__langs{margin-top:0}
  .sheet__tasks{grid-template-columns:minmax(0,1fr)}
  .sheet__tasks li:nth-child(2){border-top:1px solid var(--paper-rule);padding-top:var(--s3)}
  .site-footer__cols{grid-template-columns:minmax(0,1fr)}
  .form__foot .btn{width:100%}
}
@media (max-width:25em){
  /* 2rem at default text. With enlarged text the phone headline stops at a tenth of the screen so
     its words still fit, but never drops below 1.25x the body text. */
  h1{font-size:max(min(2rem,10vw),1.25rem)}
}
/* A phone turned sideways: wide enough for the desktop header, too short for it. The call button
   comes back as on the upright phone, the bar gets slimmer, and the gold Erstgespräch button gives
   way (the Kontakt link next to it goes to the same page). */
@media (pointer:coarse) and (max-height:30em) and (min-width:40.0625em){
  .site-header__bar{min-height:64px}
  .site-header__logo img{height:44px}
  .site-header__call{display:inline-flex;margin-left:auto}
  .site-nav .btn{display:none}
}

/* ---------- Touch ----------
   On a touch screen every link a thumb is meant to hit gets a 44px target. pointer:coarse only, so
   with a mouse the layout stays exactly as designed. Links inside running text are exempt. */
@media (pointer:coarse){
  .site-nav a{padding-block:14px}
  .link-arrow,.vcard__save,.close__lines a,.site-footer li a,.site-footer address a{display:inline-flex;align-items:center;min-height:44px}
  .site-footer li+li{margin-top:0}
  .legal__toc a{display:flex;align-items:center;min-height:44px;padding-block:6px}
}

@media (forced-colors:active){
  /* High-contrast themes drop backgrounds and shadows: give the card and the buttons a drawn edge. */
  .btn,.vcard{border:1px solid}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@media print{
  @page{margin:16mm 14mm}
  /* Navigation, buttons and the form do nothing on paper. */
  .site-header,.hero__actions,.form,.legal__toc,.btn{display:none}
  /* Printers drop the ink background, so the light-on-ink colours would land near-invisible on white
     paper: inside ink sections the ink tokens take their paper counterparts, and bright gold text
     turns deep gold (the Two Golds Rule, on paper). */
  .on-ink{--on-ink:var(--text);--on-ink-soft:var(--text);--on-ink-mute:var(--text-mute);--ink-rule:var(--paper-rule-strong);background:none;color:var(--text)}
  .on-ink .link-arrow,.greetings abbr,.site-footer h2{color:var(--gold-deep)}
  .vcard{box-shadow:none;border:1px solid var(--paper-rule-strong)}
  /* Of the footer only the contact column goes on paper, so every printout says how to reach Gidas. */
  .site-footer{padding-block:var(--s6) 0}
  .site-footer__top,.site-footer__cols section:not([aria-labelledby="f-kontakt"]),.site-footer__base p+p{display:none}
  .site-footer__cols{display:block;padding-block:0 var(--s4)}
  /* Paper cannot be clicked: external links in the legal text show their address. */
  .prose a[href^="http"]::after{content:" (" attr(href) ")";font-size:.85em;color:var(--text-mute);overflow-wrap:anywhere}
  h1,h2,h3{break-after:avoid}
  .sheet__row,.ruled li,.vcard,.notice,.prose section,.why__list li{break-inside:avoid}
}

