@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02D2-02DD, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F;
}
@font-face {
  font-family: DM Serif;
  src: url("./assets/dm-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --navy: #17233d;
  --ink: #16213a;
  --muted: #556071;
  --paper: #fbfaf7;
  --linen: #f1eee7;
  --line: #dedbd3;
  --accent: #f3ae76;
  --gutter: clamp(1.25rem, 5.7vw, 6rem);
  --measure: 78rem;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.65;
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; }
address { font-style: normal; }
:focus-visible { outline: 3px solid #a04a20; outline-offset: 5px; }
.light:focus-visible, .hero a:focus-visible, .contact a:focus-visible { outline-color: white; }
.wrap { width: min(var(--measure), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 3; transform: translateY(-150%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--paper); }
.header-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: block; width: clamp(10.25rem, 19vw, 16rem); flex: 0 0 auto; }
.wordmark img { height: auto; }
.site-footer .wordmark { width: clamp(9.75rem, 15vw, 12rem); }
nav { display: flex; gap: clamp(1.2rem, 3.2vw, 3.35rem); }
nav a, .footer-links a { font-size: .91rem; font-weight: 750; text-decoration: none; }
nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; padding: .8rem 1.2rem; min-height: 2.85rem; font-size: .94rem; font-weight: 800; line-height: 1.25; text-decoration: none; }
.button span, .text-link span { line-height: 1; font-size: 1.15em; }
.arrow-up { transform: rotate(-45deg); }
.arrow-down { transform: rotate(45deg); }
.button-header { border: 1px solid #a4a6ac; }
.button-header:hover { background: var(--linen); }
.hero { min-height: 37.5rem; background: var(--navy); color: white; display: grid; grid-template-columns: 46% 54%; }
.hero-copy { padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 3.5vw, 4.4rem) clamp(4rem, 7vw, 7rem) max(var(--gutter), calc((100vw - var(--measure)) / 2)); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow { display: flex; gap: .65rem; align-items: center; color: #525b6b; font-size: .81rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 1.35rem; height: 2px; background: #a6552c; flex: none; }
.hero .eyebrow, .contact .eyebrow { color: #f1bb92; }
.hero .eyebrow span, .contact .eyebrow span { background: var(--accent); }
h1, h2 { font-family: DM Serif, Georgia, serif; font-weight: 400; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
.hero-copy h1 { margin-top: 1.25rem; font-size: clamp(2.3rem, 5.25vw, 6.25rem); }
h2 { margin-top: .85rem; font-size: clamp(2.5rem, 4.25vw, 4.7rem); }
.hero-copy > p:not(.eyebrow) { margin-top: 1.45rem; max-width: 28rem; color: #e1e4ea; font-size: clamp(1.04rem, 1.4vw, 1.2rem); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.button-primary { background: var(--accent); color: var(--navy); }
.button-primary:hover { background: #ffd0a9; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; font-size: .91rem; font-weight: 800; text-underline-offset: .32em; text-decoration-color: #ac6845; }
.text-link:hover { text-decoration-thickness: 2px; }
.light { color: white; text-decoration-color: var(--accent); }
.hero-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); gap: 3px; min-width: 0; min-height: 0; overflow: hidden; contain: size; }
.hero-visual figure { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.hero-main-photo { grid-column: 1 / -1; }
.hero-visual img { height: 100%; min-height: 0; object-fit: cover; }
.hero-main-photo img { object-position: 38% 43%; }
.hero-house-photo { object-position: 50% 8%; }
.hero-visual figure::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, #151c26 92%); pointer-events: none; }
.hero-visual figcaption { position: absolute; bottom: clamp(1rem, 2vw, 1.6rem); left: clamp(1.25rem, 3.4vw, 4.25rem); right: 1rem; z-index: 1; border-left: 2px solid var(--accent); padding-left: .8rem; line-height: 1.4; font-size: 1.1rem; font-weight: 800; }
.hero-visual figure:not(.hero-main-photo) figcaption { bottom: .85rem; left: .85rem; right: .65rem; padding-left: .55rem; font-size: .95rem; }
.hero-visual small { display: block; font-size: .83rem; font-weight: 600; margin-top: .15rem; }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.section-heading p:not(.eyebrow), .profile p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.section-heading > a { flex: none; margin-bottom: .15rem; }
.services { background: var(--linen); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
.service-grid article { background: var(--paper); display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 2.65vw, 2.5rem); }
.service-icon { display: grid; place-items: center; color: var(--navy); background: #f3decf; width: 2.75rem; aspect-ratio: 1; font-size: 1.45rem; line-height: 1; margin-bottom: 1.1rem; }
h3 { font-size: 1.22rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 800; }
.service-grid p { color: var(--muted); margin: .7rem 0 1.2rem; }
.service-grid .text-link { margin-top: auto; }
.profile { display: grid; grid-template-columns: minmax(12rem, 22rem) minmax(0, 36rem); gap: clamp(2rem, 8vw, 8rem); align-items: start; justify-content: center; }
.profile figure img { aspect-ratio: 1; height: auto; object-fit: cover; object-position: 50% 28%; background: var(--linen); }
.profile p.profile-degree { margin-top: .45rem; color: var(--ink); font-size: 1.1rem; font-weight: 750; }
.profile .text-link { margin-top: 1.45rem; }
.profile-partner { display: inline-flex; align-items: center; gap: .9rem; max-width: 100%; border: 1px solid var(--line); margin-top: 1.2rem; padding: .45rem .95rem .45rem .65rem; background: white; text-decoration: none; font-weight: 800; }
.profile-partner img { width: clamp(4.5rem, 14vw, 6rem); height: auto; flex-shrink: 0; }
.profile-partner .arrow-up { display: inline-block; margin-left: .15rem; }
.profile-partner:hover { border-color: #a6552c; }
.contact { background: var(--navy); color: white; }
.contact h2 { max-width: 48rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; border-top: 1px solid #596278; padding-top: 1.8rem; margin-top: 2rem; }
.contact-grid h3 { margin-bottom: .55rem; }
.contact-grid a { display: block; width: fit-content; text-underline-offset: .3em; text-decoration-color: var(--accent); }
.contact-grid a:hover { text-decoration-thickness: 2px; }
.contact-grid address { color: #e1e4ea; }
.footer-inner { min-height: 7rem; display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; padding-block: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; }
.footer-links a { color: var(--muted); font-size: .84rem; }
.subpage { min-height: 100vh; display: flex; flex-direction: column; }
.subpage main { flex: 1; }
.subpage .site-header, .subpage .site-footer { border-block-end: 1px solid var(--line); }
.subpage .site-footer { border-block-start: 1px solid var(--line); }
.document { max-width: 51rem; margin-inline: auto; }
.document .back-link { margin-bottom: 2.25rem; }
.document h1 { font-size: clamp(2.75rem, 6vw, 5.4rem); margin-block: .8rem 1.75rem; }
.document-text { overflow-wrap: anywhere; }
.document-text h2 { font-family: Manrope, system-ui, sans-serif; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 800; margin-block: 1.65rem .6rem; }
.document-text p { margin-block: 0 .95rem; }
.document-text h3 { font-size: 1rem; margin-block: 1.35rem .55rem; }
.commission-table { width: 100%; margin-block: 1rem 1.25rem; border-collapse: collapse; font-size: .94rem; }
.commission-table caption { text-align: left; font-weight: 800; padding-bottom: .55rem; }
.commission-table th, .commission-table td { padding: .6rem clamp(.3rem, 2vw, .95rem); border-bottom: 1px solid var(--line); text-align: left; }
.commission-table thead { background: var(--linen); }
.commission-table tbody th { font-weight: 650; }
.commission-table td { white-space: nowrap; }
.document-text address { margin-bottom: .95rem; }
.document-text a:not(.button) { text-underline-offset: .22em; }
.document-text a:hover:not(.button) { text-decoration-thickness: 2px; }
.document-note { margin-bottom: 2rem; padding: 1.15rem 1.35rem; background: var(--linen); border-inline-start: 2px solid #a6552c; }
.document-note h2 { margin-top: 0; }
.document-note p:last-child { margin-bottom: 0; }
.download-list { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; border-top: 1px solid var(--line); }
.download-list li { border-bottom: 1px solid var(--line); }
.download-list a { display: flex; justify-content: space-between; align-items: center; gap: .85rem; padding-block: .8rem; font-weight: 750; }
.download-list a span { display: inline-block; white-space: nowrap; color: var(--muted); font-size: .84rem; }
.footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 960px) {
  .hero { min-height: 32rem; }
  .hero-copy { padding-right: 1.2rem; }
}
@media (max-width: 720px) {
  .header-inner { padding-block: .85rem; min-height: auto; gap: .75rem 1rem; flex-wrap: wrap; }
  .header-inner nav { width: 100%; order: 1; padding-top: .65rem; border-top: 1px solid var(--line); gap: .75rem clamp(1.25rem, 5vw, 2.6rem); }
  nav a { font-size: .88rem; }
  .hero { display: block; min-height: auto; }
  .hero-copy { padding: 3rem var(--gutter) 2.8rem; }
  .hero-copy h1 { font-size: clamp(2.3rem, 8.5vw, 3.8rem); }
  .hero-visual { height: clamp(18rem, 77vw, 31rem); }
  .hero-visual figcaption { bottom: 1.1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile figure { max-width: 23rem; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid > :first-child { grid-column: 1 / -1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 350px) {
  .button-header { padding-inline: .65rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-panel { margin-top: 2rem; max-width: 51rem; padding: clamp(1.2rem, 3vw, 2.25rem); background: var(--paper); color: var(--ink); }
.contact-panel h3 { font-size: 1.45rem; }
.form-fields { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 3fr); gap: .75rem 1rem; align-items: baseline; margin: 1.15rem 0; }
.form-fields label { font-weight: 750; }
.form-fields :is(input, select, textarea) { width: 100%; padding: .6rem .75rem; border: 1px solid #a4a6ac; border-radius: .2rem; background: white; color: var(--ink); font: inherit; line-height: 1.4; box-sizing: border-box; }
.form-fields textarea { resize: vertical; }
.form-hint { color: var(--muted); font-size: .91rem; margin: .55rem 0 1rem; }
.form-hint a:focus-visible { outline-color: #a6552c; }
.form-trap { display: none; }
.contact-panel button { border: 0; cursor: pointer; }
.contact-panel button:disabled { cursor: wait; opacity: .65; }
.form-status { margin-top: .9rem; font-weight: 750; }
.form-status[data-kind="error"] { color: #9e3224; }
.inbox-message { border-top: 1px solid var(--line); margin-top: 1.35rem; padding-top: 1rem; }
.inbox-meta { color: var(--muted); }
.inbox-body { white-space: pre-wrap; }
@media (max-width: 560px) {
  .form-fields { grid-template-columns: 1fr; gap: .3rem; }
  .form-fields :is(input, select, textarea) { margin-bottom: .55rem; }
}

.catalog { margin-top: 1.5rem; border: 1px solid var(--line); padding: clamp(1rem, 2.5vw, 2rem); background: var(--linen); }
.catalog p { max-width: 67ch; color: var(--muted); }
.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-top: 1rem; }
#katalog-umschalten { cursor: pointer; background: var(--paper); color: var(--ink); }
#katalog-umschalten[hidden] { display: none; }
.catalog iframe { display: block; width: 100%; height: 1200px; margin-top: 1.25rem; background: white; border: 1px solid var(--line); }
.energy-page .document { max-width: 65rem; }
#rechner-umschalten { border: 0; cursor: pointer; }
#rechner-umschalten[hidden] { display: none; }
.energy-comparison .catalog-controls a { margin: 0; }
.energy-comparison iframe { height: 46rem; }

.vineyard { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); align-items: center; gap: 1.5rem 2.5rem; border: 1px solid var(--line); padding: clamp(1.1rem, 3.5vw, 2.5rem); background: var(--linen); }
.vineyard h3 { font-family: DM Serif, Georgia, serif; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.08; }
.vineyard .text-link { margin-top: 1rem; }
.vineyard-images { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); align-items: center; gap: .75rem; }
.vineyard-images img { height: auto; }
.vineyard-images > img, .vineyard-images > a { border: 1px solid var(--line); background: white; }
@media (max-width: 720px) {
  .vineyard { grid-template-columns: minmax(0, 1fr); }
  .vineyard-images { max-width: 21rem; }
}
