/* Section order and responsive navigation. */
.hero {
  height: auto;
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro picture";
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding-block: var(--section-space);
}
.hero .hero-content {
  grid-area: intro;
  position: static;
  width: 100%;
  padding: 0;
  margin: 0;
}
.hero h1 { font-size: clamp(42px, 6vw, 96px); }
.hero .hero-image {
  grid-area: picture;
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 75% center;
  border: 1px solid var(--line);
}
.hero-shade, .hero-bottom { display: none; }
.mobile-actions { display: none; }
#telefon:focus { outline: 2px solid var(--cyan); outline-offset: 5px; }
@media (min-width: 761px) {
  .header nav a { padding: 12px 4px; }
}
@media (max-width: 760px) {
  :root { --mobile-bar: calc(70px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: var(--mobile-bar); }
  body { padding-bottom: var(--mobile-bar); }
  .header { height: 84px; }
  .header .brand, .header .brand-crop { width: 174px; }
  .header .brand-crop { height: 76px; }
  .header .brand-crop img { width: 174px; top: -50px; }
  .header .menu-toggle {
    display: inline-flex;
    flex: 0 0 106px;
    width: 106px;
    height: 44px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 0;
    border-radius: 4px;
    color: var(--white);
    font-size: 14px;
    line-height: 1;
  }
  .header .menu-toggle .menu-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }
  .menu-icon-close, .menu-toggle[aria-expanded="true"] .menu-icon-bars { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-icon-close { display: inline; }
  .header nav {
    top: 100%;
    padding: 8px 6% 12px;
    max-height: calc(100dvh - 84px - var(--mobile-bar));
    overflow-y: auto;
  }
  .header nav > a + a { border-top: 1px solid var(--line); }
  .mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    position: fixed;
    inset: auto 0 0;
    z-index: 19;
    padding: 10px max(6%, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(6%, env(safe-area-inset-left, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px #0005;
  }
  .mobile-actions a {
    display: grid;
    place-items: center;
    min-height: 48px;
    border: 1px solid var(--cyan);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
  }
  .mobile-actions a:last-child {
    color: var(--bg);
    background: var(--cyan);
    border-color: var(--cyan);
  }
  body:has(dialog[open]) .mobile-actions { visibility: hidden; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "picture";
    gap: 24px;
  }
  .hero h1 { font-size: clamp(39px, 12vw, 78px); }
  .hero .hero-image { aspect-ratio: 16 / 10; filter: none; }
}
@media (min-width: 761px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "title image" "description image" "gallery image" "link image";
    gap: clamp(10px, 1.5vw, 20px) var(--service-inset);
    align-items: start;
  }
  .service-card h3 { grid-area: title; }
  .service-card .service-intro { grid-area: description; margin: 0; }
  .service-card .service-gallery { grid-area: gallery; margin: 0; }
  .service-card .card-footer { grid-area: link; align-self: end; margin: 0; }
  .service-card .service-visual { grid-area: image; align-self: center; margin: 0; border: 1px solid var(--line); }
  .service-card:nth-child(even) {
    grid-template-areas: "image title" "image description" "image gallery" "image link";
  }
}

/* The blackletter artwork uses more vertical space than the former signature. */
.header .brand { width: 154px; }
.header .brand-crop {
  width: 100%;
  height: auto;
  aspect-ratio: 1254 / 810;
}
.header .brand-crop img {
  width: 100%;
  max-width: none;
  top: -26%;
}
@media (max-width: 760px) {
  .header .brand { width: 118px; }
}

/* Alternating full-width section colors. */
.header, .hero, .band-light, .process, .contact {
  --ink: var(--white);
  --light-muted: var(--muted);
  --line: var(--cyan);
  --accent-ink: var(--cyan);
  color: var(--ink);
  background: #0f1314;
}
.header { background: var(--bg); border-color: var(--line); }
.header .brand-crop { background: #080b14; border-radius: 5px; }
.header nav a, .legal-header .legal-back { position: relative; }
.header nav a::after, .legal-header .legal-back::after {
  content: "";
  position: absolute;
  inset: auto 4px 5px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.header nav a[aria-current="location"] {
  color: var(--accent-ink);
}
@media (hover: hover) {
  .header nav a:hover::after, .legal-header .legal-back:hover::after { transform: scaleX(1); }
}
.hero .eyebrow, .hero .text-link span, .band-light .eyebrow,
.process .eyebrow, .contact .eyebrow {
  color: var(--accent-ink);
}
.hero h1 > .chrome { font-weight: inherit; }
.hero h1 > .outline, main h2 .outline, .service-card h3 .outline,
.gallery-preview-title .outline, .gallery-dialog-head .outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
  text-shadow: none;
}
.hero .hero-copy, .band-light .section-intro,
.process .section-intro, .steps p, .contact-lead, .contact-details div > span,
.placeholder-note { color: var(--light-muted); }
.band-light .service-card { color: var(--white); --line: var(--cyan); }
.garage, .band-dark { background: var(--bg); }
.contact form { color: var(--white); }
@media (max-width: 760px) {
  .header nav { background: var(--bg); border-color: var(--line); }
  .header .menu-toggle, .header .menu-toggle .menu-icon { color: var(--accent-ink); }
  .header nav a::after { inset-inline: 5px auto; width: 42px; }
}

/* Use the same content edges in the header, sections and footer. */
:root {
  --content-gutter: max(6%, calc((100% - 1360px) / 2));
  --section-space: clamp(38px, 5vw, 72px);
  --service-inset: clamp(20px, 2.5vw, 34px);
}
.wrap { width: min(88%, 1360px); }
.header, .hero { padding-inline: var(--content-gutter); }
@media screen {
  .section { padding-block: var(--section-space); }
}
@media (min-width: 761px) {
  .header nav a:last-child { padding-inline-end: 0; }
  .header nav a:last-child::after { inset-inline-end: 0; }
}
@media (max-width: 760px) {
  .mobile-actions {
    padding-inline: max(var(--content-gutter), env(safe-area-inset-left, 0px))
      max(var(--content-gutter), env(safe-area-inset-right, 0px));
  }
}

/* Navigation and the primary action share the logo's ice-blue accents. */
.header nav a[aria-current="location"]:hover { color: var(--cyan); }
.hero-actions { width: 100%; }
.cta-button {
  gap: clamp(10px, 2vw, 26px);
  width: min(100%, 276px, calc(88vw - 2 * var(--service-inset) - 2px));
  min-height: 54px;
  padding: 5px 5px 5px 22px;
  color: #eefaff;
  border: 1px solid var(--cyan);
  border-radius: 4px 15px 4px 15px;
  background: linear-gradient(180deg, #2b4357, #101a27 53%, #20394f);
  box-shadow: inset 0 1px #d8f2ff66, 0 6px 18px #0005;
  font-size: 13px;
  letter-spacing: .035em;
}
.cta-button .cta-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 42px;
  color: #102338;
  background: linear-gradient(155deg, #f1fbff, #91cfee 52%, #548db4);
  border-radius: 2px 11px 2px 9px;
}
.cta-button:hover {
  background: linear-gradient(180deg, #395974, #142638 53%, #2a4964);
  box-shadow: inset 0 1px #d8f2ff88, 0 0 18px #91cfee40;
}

/* One continuous introduction and one continuous process section. */
html { scroll-behavior: auto; }
.kuhni, .kuhni .hero { background: #0f1314; }
.band-light { background: var(--bg); }
.process .faq {
  margin-top: var(--section-space);
  padding-block: var(--section-space) 0;
  border-top: 1px solid var(--cyan);
}
.faq-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.contact { background: var(--bg); }
.form-ornament {
  display: block;
  width: min(45%, 190px);
  height: auto;
  margin: 16px auto 0;
}
.cta-icon > :is(img, svg) { width: 30px; height: 30px; }
.footer.wrap {
  width: 100%;
  max-width: none;
  padding: 0;
  background: #0f1314;
  border-top: 1px solid var(--cyan);
}
.footer-bottom {
  padding: 18px var(--content-gutter);
  border-top: 0;
}

.hero-art {
  grid-area: picture;
  align-self: center;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
}
.hero .hero-art .hero-image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
@media (max-width: 760px) {
  .hero-art { aspect-ratio: 16 / 10; }
}

/* Consistent West Coast frames and reference-sized typography. */
:root {
  --section-heading-size: clamp(1.85rem, 3.1vw, 2.75rem);
  --subheading-size: clamp(1.35rem, 1.95vw, 1.65rem);
}
.hero h1, .section-heading h2, .process .faq h2, .contact h2 {
  font-size: var(--section-heading-size);
  line-height: 1.15;
}
.contact form h3 {
  font-size: var(--subheading-size);
  line-height: 1.25;
}
.hero .eyebrow, .section-heading .eyebrow,
.process .eyebrow, .contact .eyebrow {
  font-size: var(--subheading-size);
  line-height: 1.25;
  letter-spacing: .01em;
}
.service-card { padding-inline: var(--service-inset); }
.service-card h3 {
  margin: 0;
  font-size: var(--section-heading-size);
  line-height: 1.15;
}
.service-card h3 .outline { font-style: italic; }
.hero .hero-copy, .section-intro,
.service-card p, .steps p, .faq details p, .faq summary, .contact .contact-lead {
  font-size: 1rem;
  line-height: 1.7;
}
.hero-copy p { margin: 0; }
.hero-copy p + p { margin-top: .75em; }
.hero-copy .lead { margin-bottom: .65em; color: var(--white); font-weight: 700; }
.service-intro { margin-block: 16px 22px; }
.steps p { max-width: 60ch; }
.faq summary { font-weight: 700; }
.steps h3 {
  display: flex;
  align-items: baseline;
  gap: .5em;
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}
.steps article { padding-left: 0; }
.steps h3 .step-number {
  position: static;
  display: inline;
  margin: 0;
  color: var(--cyan);
  font: inherit;
}
.hero-art, .service-card .service-visual {
  position: relative;
  height: auto;
  aspect-ratio: 9 / 8;
  border: 1px solid var(--cyan);
  border-radius: 16px 4px 16px 4px;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  /* A taller text column must not widen the image beyond its grid track. */
  width: 100%;
}
.hero .hero-art .hero-image { border: 0; object-position: center; }
.hero-art::before, .service-visual::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 3;
  border: 1px solid #91cfee90;
  border-radius: 10px 2px 10px 2px;
  background:
    linear-gradient(135deg, transparent 41%, #91cfee 42% 44%, transparent 45% 50%, #91cfee99 51% 53%, transparent 54%) top left / 66px 66px no-repeat,
    linear-gradient(135deg, transparent 41%, #91cfee99 42% 44%, transparent 45% 50%, #91cfee 51% 53%, transparent 54%) bottom right / 66px 66px no-repeat;
  pointer-events: none;
}
.hero-art .art-star, .service-visual .art-star {
  position: absolute;
  inset: auto auto 12px 13px;
  z-index: 4;
  font-size: clamp(24px, 3vw, 41px);
  line-height: 1;
  color: #caedff;
  text-shadow: 0 0 10px #2e8ec2;
}
.service-visual .visual-chip { left: 53px; bottom: 18px; z-index: 4; }
@media (min-width: 761px) {
  .hero { align-items: stretch; }
  .hero-actions {
    margin-top: auto;
    padding-top: clamp(16px, 2vw, 28px);
  }
}
@media (max-width: 760px) {
  :root {
    --section-heading-size: clamp(1.7rem, 6.1vw, 2.25rem);
    --subheading-size: 1.35rem;
  }
}

.hero-art::before, .service-visual::before { background: none; }
.service-visual .visual-chip { left: 18px; }

.steps article { padding-top: clamp(18px, 2vw, 28px); }
.steps article p:last-child { margin-bottom: 0; }
.faq summary { padding-block: clamp(16px, 1.7vw, 24px); }
.faq details p { padding-bottom: clamp(16px, 1.7vw, 24px); }
.service-card .card-footer {
  justify-content: center;
  padding-top: clamp(16px, 1.7vw, 24px);
}

.service-gallery {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: clamp(18px, 2vw, 26px);
}
.service-gallery:empty { display: none; }
.gallery-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.gallery-preview-head { display: grid; gap: 3px; }
.gallery-kicker {
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.gallery-preview-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--cyan); }
.gallery-preview-title .outline, .gallery-dialog-head .outline { font-style: italic; }
.gallery-preview-title .outline { -webkit-text-stroke-width: .65px; }
.gallery-control {
  color: var(--white);
  border: 1px solid #91cfee80;
  border-radius: 4px;
  background: #142432;
  cursor: pointer;
}
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.gallery-thumbnails a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--cyan);
  border-radius: 6px 2px 6px 2px;
  background: var(--bg);
}
.gallery-thumbnails img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-thumbnails a:focus-visible, .gallery-control:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
@media (hover: hover) {
  .gallery-thumbnails a:hover { box-shadow: 0 0 0 1px var(--cyan); }
  .gallery-control:hover { border-color: var(--cyan); background: #223e52; }
}
.gallery-dialog {
  --gallery-width: min(100%, 590px, max(156px, calc(100dvh - 194px)));
  width: min(720px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 2.4vw, 24px);
  border-radius: 16px 4px 16px 4px;
  background: #10181d;
}
.gallery-dialog-head, .gallery-picture { width: var(--gallery-width); margin-inline: auto; }
.gallery-dialog-head > div { min-width: 0; }
.gallery-dialog-head h2 {
  margin: 2px 0 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.2;
  text-transform: uppercase;
}
.gallery-title-divider { color: var(--cyan); }
@media (max-height: 440px) {
  .gallery-dialog-head .gallery-kicker { font-size: .625rem; letter-spacing: .04em; }
  .gallery-dialog-head h2 { font-size: 1.15rem; }
}
.gallery-figure { margin: 12px 0 0; text-align: center; }
.gallery-picture {
  display: block;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #91cfee80;
  border-radius: 6px;
  background: var(--bg);
  touch-action: pan-y pinch-zoom;
}
.gallery-figure figcaption {
  min-height: 2.8em;
  padding-top: 5px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}
.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  color: var(--cyan);
  font-weight: 700;
}
#gallery-count { min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; }
.gallery-control {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
}
.gallery-control svg { width: 22px; height: 22px; }

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font: inherit;
}
.faq-question svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.contact-channels { margin-top: 28px; }
.contact-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  color: var(--white);
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.contact-links a:hover { color: var(--cyan); }
.contact-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #91cfee80;
  border-radius: 6px;
  background: #163042;
  color: #c9ecff;
}
.contact-icon svg { width: 17px; height: 17px; }
.opening-hours { display: grid; gap: 3px; margin-top: 23px; color: var(--muted); }
.opening-hours strong { color: var(--cyan); }
.footer-bottom > span { font-size: .875rem; }
.footer-bottom .legal-links { margin-inline-start: auto; }
@media (max-width: 600px) {
  .footer-bottom { gap: 12px 18px; }
}

.legal-page { max-width: 840px; padding-block: var(--section-space); }
.legal-page h1, .legal-page h2 { font-family: var(--body); font-weight: 700; }
.legal-page h1 { margin: 0 0 24px; font-size: var(--section-heading-size); }
.legal-page h2 { margin-bottom: 14px; font-size: var(--subheading-size); }
.legal-page section { padding-block: 23px; }
.legal-page section:first-of-type { padding-top: 0; }
.legal-page section:last-of-type { padding-bottom: 0; }
.legal-page section + section { border-top: 1px solid var(--cyan); }
.legal-page p { font-size: 1rem; line-height: 1.7; }
.legal-page p a { color: var(--cyan); }

.legal-header { position: static; gap: 16px; }
.legal-header .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 0;
  font-size: .9rem;
  color: var(--white);
}
.legal-header .legal-back::after { inset-inline: 0; }
.legal-back svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--cyan); }
.legal-page .legal-heading { display: flex; align-items: center; gap: .55em; }
.legal-heading .legal-icon { flex: 0 0 1em; width: 1em; height: 1em; color: var(--cyan); }
.legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.legal-links a { font-size: .875rem; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: var(--cyan); }
@media (max-width: 400px) {
  .legal-header .legal-back { gap: 6px; font-size: .8rem; }
}

.faq-item {
  --faq-item-spacing: clamp(18px, 2.2vw, 30px);
  padding-block: var(--faq-item-spacing);
}
.faq-item + .faq-item { border-top: 1px solid var(--cyan); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { padding-bottom: 0; }
.faq-item .faq-question {
  margin: 0 0 12px;
  font: 700 1rem/1.5 var(--body);
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Recognizable colors for contact channels. */
.contact-links .contact-icon { color: #fff; border-color: #ffffff30; }
.contact-links a[href^="tel:"] .contact-icon { background: #17758a; }
.contact-links a[href^="https://wa.me/"] .contact-icon { background: #25d366; color: #092b16; }
.contact-links a[href^="mailto:"] .contact-icon { background: #226bc0; }
.contact-links a[href^="https://www.instagram.com/"] .contact-icon {
  background: linear-gradient(35deg, #ffb443 0%, #d62976 48%, #6b36c4 100%);
}

.header .brand-crop {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
.header .brand-crop img {
  position: static;
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
}

/* Follow the same label, chrome and outline rhythm across the main sections. */
.headline > .eyebrow {
  margin: 0 0 clamp(18px, 2.5vw, 28px);
  color: var(--cyan);
}
.headline > :is(h1, h2) {
  margin: 0;
  font-size: var(--section-heading-size);
  line-height: 1.15;
}
.headline > :is(h1, h2) > span { display: block; }
.headline > :is(h1, h2) > .chrome {
  color: transparent;
  font-style: normal;
  transform: none;
}
.headline > :is(h1, h2) > .outline {
  font-style: italic;
  transform: translateX(-3px);
}
.headline + :is(.hero-copy, .section-copy, .lead) {
  margin-top: clamp(18px, 2.5vw, 32px);
}
.section-heading-stacked { display: block; }
.section-copy {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.section-copy p { margin: 0; }
.section-copy p + p { margin-top: 12px; }
.section-copy .lead { color: var(--white); }
