:root {
  --ink: #272421;
  --ink-soft: #625e58;
  --paper: #f7f3ec;
  --paper-deep: #eae0d2;
  --white: #fffdf9;
  --blue: #277d89;
  --blue-dark: #205860;
  --clay: #b65f43;
  --sand: #d7c0a4;
  --line: rgba(39, 36, 33, .14);
  --shadow: 0 24px 70px rgba(43, 35, 29, .12);
  --radius: 1.35rem;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--white); border-radius: .5rem; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 .75rem; color: var(--clay); font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.1; text-rendering: optimizeLegibility; }
h1 { max-width: 10ch; font-size: clamp(3.6rem, 7.7vw, 7.3rem); letter-spacing: -.025em; }
h2 { max-width: 16ch; font-size: clamp(2.4rem, 4.7vw, 4.6rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.lead { max-width: 66ch; font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); }
.section { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-head { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: end; margin-bottom: 3.25rem; }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto; height: 7rem;
  display: flex; align-items: center; color: var(--ink);
  background: rgba(247, 243, 236, .95); border-bottom: 1px solid transparent;
  transition: height .25s, box-shadow .25s, border-color .25s; backdrop-filter: blur(15px);
}
.site-header.scrolled { height: 5.8rem; border-color: var(--line); box-shadow: 0 8px 28px rgba(39,36,33,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.brand-mascot { width: 6.1rem; height: 5.5rem; object-fit: contain; transition: width .25s, height .25s; }
.site-header.scrolled .brand-mascot { width: 5rem; height: 4.5rem; }
.brand-words { display: grid; line-height: .9; }
.brand-words small { margin-left: .2rem; color: var(--blue-dark); font-size: .65rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.brand-words strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.35rem; font-style: italic; font-weight: 700; letter-spacing: -.055em; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-size: .96rem; font-weight: 700; letter-spacing: .005em; text-decoration: none; text-rendering: optimizeLegibility; }
.nav .button { font-size: .9rem; }
.nav a:not(.button):hover { color: var(--clay); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.15rem; padding: .82rem 1.3rem; border: 1px solid transparent; border-radius: 999px; color: var(--white); background: var(--clay); font-weight: 800; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); background: #984b34; box-shadow: 0 12px 28px rgba(126,60,37,.18); }
.button-light { color: var(--white); background: var(--ink); }
.button-light:hover { background: var(--blue-dark); }
.button-outline { border-color: currentColor; color: inherit; background: transparent; }
.button-outline:hover { color: var(--white); background: var(--blue-dark); }
.menu-toggle { display: none; width: 2.9rem; height: 2.9rem; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 1.2rem; height: 2px; margin: 4px auto; background: currentColor; transition: .2s; }

.hero { position: relative; min-height: 800px; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 7rem; color: var(--ink); background: var(--paper); }
.hero::before { content: ""; position: absolute; width: min(58vw, 760px); aspect-ratio: 1; right: -7%; top: 13%; border-radius: 50%; background: #e6d8c7; box-shadow: inset 0 0 0 5rem rgba(255,253,249,.28); }
.hero::after { content: ""; position: absolute; width: 52vw; height: 17rem; right: -8%; bottom: -10rem; border: 2px solid rgba(39,36,33,.14); border-radius: 50%; transform: rotate(-8deg); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: calc(100svh - 7rem); }
.hero-copy { padding: 4rem 0; }
.hero-copy > p:not(.eyebrow) { max-width: 49ch; margin: 1.7rem 0 2.2rem; font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); }
.hero-title-accent { color: var(--blue-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual { position: relative; align-self: end; display: flex; justify-content: center; height: calc(100svh - 7rem); max-height: 760px; min-height: 620px; }
.hero-mascot { position: absolute; z-index: 2; width: min(49vw, 610px); max-width: none; right: -6rem; bottom: -1.2rem; filter: drop-shadow(0 28px 24px rgba(39,36,33,.18)); }
.hero-stamp { position: absolute; z-index: 3; left: -1.5rem; bottom: 4rem; width: 10.5rem; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .16rem; padding: 1rem; border: 1px solid rgba(39,36,33,.3); border-radius: 50%; text-align: center; background: var(--paper); }
.hero-stamp strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.05; }
.hero-stamp span { color: var(--clay); font-size: 1rem; font-weight: 850; line-height: 1.1; }
.hero-stamp small { margin-top: .18rem; color: var(--ink-soft); font-size: .62rem; font-weight: 800; letter-spacing: .06em; line-height: 1.1; text-transform: uppercase; }

.intro-strip { color: var(--white); background: var(--ink); }
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.intro-item { padding: 2.25rem 2rem; border-left: 1px solid rgba(255,255,255,.14); }
.intro-item:last-child { border-right: 1px solid rgba(255,255,255,.14); }
.intro-item strong { display: block; margin-bottom: .25rem; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.intro-item span { color: rgba(255,255,255,.67); font-size: .9rem; }

#leistungen::before { content: ""; position: absolute; top: 4rem; left: 0; width: 5.5rem; height: 10rem; border: solid var(--clay); border-width: 2px 2px 2px 0; border-radius: 0 8rem 8rem 0; opacity: .34; }
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.service-card { position: relative; min-height: 29rem; grid-column: span 4; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); color: var(--white); box-shadow: var(--shadow); }
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 6; min-height: 24rem; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25,25,24,.9), rgba(25,25,24,.03) 72%); }
.service-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: saturate(.76) contrast(.97); transition: transform .5s, filter .5s; }
.service-card:hover img { transform: scale(1.035); filter: saturate(.95); }
.service-content { position: relative; z-index: 1; padding: 1.8rem; }
.service-number { display: block; margin-bottom: .75rem; color: #ef9a7e; font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.service-content p { max-width: 38ch; margin: .7rem 0 0; color: rgba(255,255,255,.76); }
.service-link { display: inline-flex; margin-top: 1rem; color: var(--white); font-size: .9rem; font-weight: 800; text-underline-offset: .25rem; }

.values { background: var(--paper-deep); }
.values-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.values-visual { position: relative; }
.values-visual::before { content: ""; position: absolute; inset: -1.25rem 1.5rem 1.5rem -1.25rem; border: 1px solid rgba(39,36,33,.22); border-radius: var(--radius); }
.values-visual img { position: relative; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); filter: saturate(.78); }
.values-badge { position: absolute; right: -1.5rem; bottom: 2rem; width: 9rem; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border-radius: 50%; color: var(--white); background: var(--blue-dark); font-family: Georgia, serif; font-size: 1.05rem; transform: rotate(-7deg); }
.value-list { display: grid; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.value-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.value-icon { display: grid; place-content: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--white); background: var(--clay); font-weight: 800; }
.value-item strong { display: block; margin-bottom: .15rem; }
.value-item p { margin: 0; color: var(--ink-soft); }

.materials { overflow: hidden; background: var(--white); }
.materials::after { content: ""; position: absolute; width: 34rem; height: 12rem; right: -10rem; top: 2rem; border: 1px solid rgba(39,36,33,.1); border-radius: 50%; transform: rotate(10deg); }
.materials > .container { position: relative; z-index: 1; }
.material-tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.tab-button { padding: .68rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 750; cursor: pointer; }
.tab-button[aria-selected="true"] { color: var(--white); border-color: var(--blue-dark); background: var(--blue-dark); }
.tab-panel { display: grid; grid-template-columns: 1fr .9fr; min-height: 29rem; overflow: hidden; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.tab-panel[hidden] { display: none; }
.tab-copy { padding: clamp(2rem, 5vw, 4rem); align-self: center; }
.tab-copy p { color: var(--ink-soft); }
.tab-copy ul { padding-left: 1.1rem; }
.tab-panel img { height: 100%; object-fit: cover; filter: saturate(.75); }
.floor-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.6rem; }
.floor-type { padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255,253,249,.7); }
.floor-type h4 { margin: 0 0 .3rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.floor-type p { margin: 0; font-size: .9rem; line-height: 1.5; }

.process { color: var(--white); background: var(--ink); }
.process .eyebrow { color: #ef9a7e; }
.process .lead { color: rgba(255,255,255,.68); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: rgba(255,255,255,.15); }
.process-step { padding: 2.25rem; background: var(--ink); }
.process-step span { display: grid; place-content: center; width: 2.7rem; height: 2.7rem; margin-bottom: 3.5rem; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #ef9a7e; font-weight: 850; }
.process-step p { color: rgba(255,255,255,.68); }

.contact { background: var(--paper); }
.contact-card { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.contact-copy { padding: clamp(2.5rem, 6vw, 5rem); }
.contact-copy p { max-width: 55ch; color: var(--ink-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 3rem; }
.contact-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-details small { display: block; color: var(--ink-soft); }
.contact-details a { font-weight: 800; text-decoration: none; }
.contact-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(2.5rem, 5vw, 4rem); color: var(--white); background: var(--blue-dark); }
.contact-aside::after { content: ""; position: absolute; width: 18rem; aspect-ratio: 1; right: -9rem; bottom: -8rem; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.contact-aside blockquote { position: relative; z-index: 1; margin: 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.2; }
.address { position: relative; z-index: 1; margin-top: 3rem; font-style: normal; }
.route-button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; margin-top: 1.5rem; padding: .9rem 1.05rem; border: 1px solid rgba(255,255,255,.55); border-radius: .8rem; color: var(--blue-dark); background: var(--white); font-style: normal; font-weight: 850; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.route-button:hover { transform: translateY(-2px); background: #f5eee4; box-shadow: 0 12px 30px rgba(16,43,47,.24); }

.site-footer { padding: 2.5rem 0; color: rgba(255,255,255,.68); background: #1d1b19; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.image-disclosure { max-width: 28rem; color: rgba(255,255,255,.48); font-size: .72rem; line-height: 1.45; }
.legal-page { min-height: 100vh; padding: 7rem 0 5rem; background: var(--paper); }
.legal-page .eyebrow { margin-top: 2rem; }
.legal-wrap { max-width: 780px; }
.legal-wrap h1 { max-width: none; font-size: clamp(3rem, 7vw, 5rem); }
.legal-wrap h2 { margin: 3rem 0 1rem; font-size: 2rem; }
.legal-wrap h3 { margin: 2rem 0 .5rem; font-family: inherit; font-size: 1.05rem; font-weight: 800; }
.legal-wrap p, .legal-wrap li { color: var(--ink-soft); }
.legal-back { display: inline-flex; margin-bottom: 2rem; font-weight: 800; text-decoration: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .site-header, .site-header.scrolled { height: 6rem; }
  .brand-mascot, .site-header.scrolled .brand-mascot { width: 4.9rem; height: 4.5rem; }
  .brand-words strong { font-size: 2rem; }
  .menu-toggle { display: block; }
  body.menu-open .site-header { background: #f7f3ec; backdrop-filter: none; }
  .nav { position: fixed; z-index: 200; inset: 6rem 0 0; min-height: calc(100dvh - 6rem); display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; padding: 2rem 1.25rem 3rem; color: var(--ink); background: #f7f3ec; box-shadow: 0 20px 40px rgba(39,36,33,.16); visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform .25s, visibility 0s linear .25s; isolation: isolate; }
  .nav.open { visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .nav a:not(.button) { padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
  .nav .button { margin-top: 1.5rem; }
  .hero { min-height: 760px; height: auto; padding-top: 6rem; }
  .hero-grid { min-height: 700px; grid-template-columns: 1fr 41%; }
  .hero-visual { height: 650px; min-height: 0; }
  .hero-mascot { width: 520px; right: -10rem; }
  .section-head, .values-grid, .tab-panel, .contact-card { grid-template-columns: 1fr; }
  .section-head { gap: 1.2rem; }
  .values-visual { max-width: 36rem; }
  .tab-panel img { max-height: 24rem; order: -1; }
  .service-card { grid-column: span 6; }
  .service-card:last-child { grid-column: span 12; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step span { margin-bottom: 1.5rem; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 1.5rem), var(--max)); }
  .brand { gap: .45rem; }
  .brand-mascot, .site-header.scrolled .brand-mascot { width: 4.25rem; height: 4rem; }
  .brand-words small { font-size: .5rem; }
  .brand-words strong { font-size: 1.65rem; }
  .hero { min-height: 880px; }
  .hero::before { width: 35rem; right: -17rem; top: 41%; }
  .hero-grid { min-height: 820px; display: block; }
  .hero-copy { position: relative; z-index: 3; padding: 4rem 0 0; }
  h1 { font-size: clamp(3.4rem, 16vw, 5.2rem); }
  .hero-visual { position: absolute; inset: auto 0 0; height: 430px; }
  .hero-mascot { width: 390px; right: -3.5rem; bottom: -1rem; }
  .hero-stamp { left: 0; bottom: 2rem; width: 8.7rem; }
  .hero-stamp strong { font-size: .95rem; }
  .hero-stamp span { font-size: .9rem; }
  .hero-stamp small { font-size: .52rem; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-item, .intro-item:last-child { padding: 1.5rem 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .services-grid { display: block; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { min-height: 25rem; margin-bottom: 1rem; }
  .values-badge { right: -.25rem; width: 7.5rem; }
  .contact-details { grid-template-columns: 1fr; }
  .floor-types { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
