/* Kofler Roman – Entwurf v5 (Vorschau) */

:root {
  --bg: #f6f7f7;
  --surface: #ffffff;
  --ink: #171a1c;
  --ink-2: #3b4246;
  --muted: #5d666b;
  --rule: #d7dbdc;
  --rule-strong: #a9b0b3;
  --copper: #9a5221;
  --copper-dark: #7d3f17;
  --slate: #1f272b;
  --radius: 2px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

a,
button,
summary {
  touch-action: manipulation;
}

.section[id],
#top {
  scroll-margin-top: 72px;
}

.head-call,
.button,
.call-bar a,
.contact-list dd a[href^="tel"] {
  white-space: nowrap;
}

.hero-copy,
.hero-figure,
.about-figure,
.about-copy,
.contact-copy,
.contact-list,
.service,
.steps li > div {
  min-width: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 8px;
}

/* Kopf */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  width: 30px;
  height: 27px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 700;
}

.brand-sub {
  font-size: 0.8125rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.head-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--copper);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  min-height: 44px;
}

.head-call:hover {
  color: var(--copper-dark);
  text-decoration: underline;
}

.icon {
  flex: none;
}

.menu {
  display: none;
}

/* Einstieg */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 16px;
  max-width: 32ch;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink-2);
}

.hero-text {
  margin: 0 0 28px;
  max-width: 52ch;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--copper);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.button:hover {
  background: var(--copper-dark);
  color: #fff;
}

.text-link {
  color: var(--copper);
  font-weight: 600;
}

.text-link:hover {
  color: var(--copper-dark);
}

.facts {
  max-width: 480px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.facts li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.fact-label {
  padding-top: 0.15em;
  font-size: 0.875rem;
  color: var(--muted);
}

.fact-value {
  font-weight: 600;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Abschnitte */

.section {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--rule);
}

.section-surface {
  background: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 12px 48px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  align-self: end;
  color: var(--muted);
}

/* Leistungen */

.services {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 6px 48px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.service h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.service p {
  margin: 0;
  max-width: 56ch;
  color: var(--ink-2);
}

/* Betrieb */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.about-figure {
  margin: 0;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-copy h2 {
  max-width: 20ch;
  margin-bottom: 20px;
}

.about-copy p {
  max-width: 60ch;
  margin: 0 0 16px;
  color: var(--ink-2);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Ablauf */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  padding-top: 0.15em;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 600;
}

.steps p {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-2);
}

/* Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
}

.contact-copy h2 {
  max-width: 20ch;
  margin-bottom: 16px;
}

address {
  font-style: normal;
}

.contact-copy p {
  margin: 0;
  color: var(--ink-2);
}

.contact-list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list dt {
  padding-top: 0.3em;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--copper);
  text-decoration: underline;
}

.external {
  display: inline-block;
  margin-left: 0.3em;
}

/* Fuß */

.site-foot {
  padding: 20px 0 28px;
  background: var(--slate);
  color: #e6e9ea;
  font-size: 0.9375rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 32px;
}

.foot-row p {
  margin: 0;
}

.credits {
  max-width: 60ch;
}

.credits summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.credits p,
.credits ul {
  margin: 8px 0 0;
  line-height: 1.5;
}

.credits ul {
  padding-left: 1.2em;
}

.credits a {
  color: inherit;
}

/* Anrufleiste (mobil) */

.call-bar {
  display: none;
}

/* Mittlere Breiten */

@media (max-width: 960px) {
  .hero h1 {
    font-size: clamp(2.25rem, 7vw, 3.5rem);
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-figure {
    order: -1;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .service {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }
}

/* Navigation als Menü */

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter) 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    font-size: 1.0625rem;
  }

  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
  }

  .menu[aria-expanded="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }

  .head-row {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .call-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: block;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--rule);
  }

  .call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    background: var(--copper);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
  }

  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .brand-sub,
  .head-call-num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .facts li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .fact-label {
    padding-top: 0;
  }

  .contact-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .contact-list dt {
    padding-top: 0;
  }
}

@media print {
  .site-head,
  .call-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}
