:root {
  color-scheme: light;
  --ink: #14213a;
  --muted: #526179;
  --blue: #224ed7;
  --light-blue: #eef3ff;
  --line: #dbe2ef;
  --canvas: #f5f7fb;
  --white: #fff;
  --shadow: 0 16px 48px #13254c0b;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #6c99ff; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: 1rem; background: white; z-index: 3; transform: translateY(-180%); }
.skip:focus { transform: none; }
.topbar { background: white; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; white-space: nowrap; font-size: 1.25rem; font-weight: 650; letter-spacing: -.03em; }
.brand b { color: var(--blue); }
.brand-mark { display: grid; place-items: center; position: relative; width: 40px; height: 40px; border-radius: 10px; background: #152341; color: white; font-weight: 850; font-size: 1.2rem; }
.brand-mark span { width: 5px; height: 5px; background: #78a5ff; border-radius: 50%; position: absolute; top: 8px; right: 7px; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { display: flex; min-height: 80px; align-items: center; position: relative; text-decoration: none; color: #43536e; font-weight: 650; font-size: .94rem; }
nav a:hover, nav a[aria-current] { color: var(--blue); }
nav a[aria-current]::after { content: ""; height: 3px; background: var(--blue); position: absolute; inset: auto 0 0; border-radius: 3px 3px 0 0; }
.header-phone { text-decoration: none; color: var(--ink); font-size: .94rem; font-weight: 700; white-space: nowrap; }
.hero { color: white; background: #111f37; position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.hero::before { inset: 0 0 0 33%; background: var(--hero-image) center 52% / cover no-repeat; }
.hero::after { inset: 0; background: linear-gradient(90deg, #111f37 11%, #111f37fc 30%, #111f37b0 52%, #111f3714 100%); }
.hero--credit { --hero-image: url("/assets/kredit.webp"); }
.hero--property { --hero-image: url("/assets/haus.webp"); }
.hero--property::before { background-position: center 61%; }
.hero-inner { min-height: 392px; display: flex; align-items: center; padding-block: 4.5rem; }
.hero-content { max-width: 580px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { letter-spacing: -.053em; line-height: 1.04; }
h1 { font-size: clamp(2.85rem, 6vw, 5rem); font-weight: 780; }
.hero p { max-width: 515px; color: #e0e8f7; margin: 1.2rem 0 1.75rem; font-size: 1.14rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; padding: .77rem 1.15rem; min-height: 46px; font-size: .95rem; line-height: 1.35; font-weight: 720; text-align: center; text-decoration: none; }
.button--primary { background: var(--blue); color: white; }
.hero .button--primary { background: #365ee7; color: white; }
.button--primary:hover { background: #1c3fb3; }
.button--line { background: white; color: #2444a2; border-color: #bfcff4; }
.button--line:hover { background: #edf2ff; }
button:disabled { opacity: .48; cursor: default; }
.section { padding-block: 4rem; scroll-margin-top: 1.2rem; }
.work-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.section-intro { max-width: 650px; }
.section-intro h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.section-intro p { margin-top: .9rem; color: var(--muted); }
.contact-card { display: grid; gap: .42rem; align-content: start; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.45rem; }
.contact-card h3 { font-size: 1rem; }
.contact-card p { margin: 0 0 .45rem; }
.contact-card a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; width: fit-content; overflow-wrap: anywhere; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.form-panel, .calculator { padding: clamp(1.25rem, 3.2vw, 2rem); }
.form-panel { display: grid; gap: 1.15rem; }
.form-panel h3, .calculator h3 { line-height: 1.25; font-size: 1.43rem; letter-spacing: -.025em; }
.form-panel h3 + .hint { margin-top: -.8rem; }
label { display: block; font-size: .91rem; font-weight: 690; min-width: 0; }
label > span { color: var(--blue); }
small { color: var(--muted); font-size: .82rem; font-weight: 500; margin-left: .18rem; }
input:not([type=checkbox],[type=file],[type=hidden]), textarea, select { display: block; width: 100%; color: var(--ink); background: white; border: 1px solid #c5d0e2; border-radius: 8px; min-height: 46px; padding: .55rem .68rem; margin-top: .35rem; font-size: 1rem; font-weight: 450; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 1.65rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23526179' stroke-width='2'/%3E%3C/svg%3E"); background-position: right .65rem center; background-repeat: no-repeat; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.hint, .source-note { color: var(--muted); font-size: .9rem; }
.attachments h4 { margin-bottom: .5rem; }
.drop-zone { display: grid; place-items: center; gap: .27rem; min-height: 165px; border: 1px dashed #7e9ae4; border-radius: 12px; background: #f5f8ff; padding: 1rem; text-align: center; }
.drop-zone.is-dragging, .drop-zone:focus-within { border-color: var(--blue); background: var(--light-blue); }
.upload-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #e1eaff; color: var(--blue); font-size: 1.5rem; line-height: 1; }
.file-picker { position: relative; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.file-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-picker:focus-within { outline: 3px solid #6c99ff; outline-offset: 3px; }
.file-list { margin: 0; padding: 0; list-style: none; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .57rem .15rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: .94rem; }
.text-button { border: 0; background: transparent; padding: .25rem .4rem; color: var(--blue); text-decoration: underline; text-underline-offset: .16em; font-weight: 650; white-space: nowrap; min-height: 36px; }
.form-actions { display: grid; justify-items: start; gap: .7rem; }
.form-status:empty, .upload-status:empty { display: none; }
.form-status, .upload-status, .row-error { font-size: .92rem; color: #345334; }
.form-status[data-error], .upload-status, .row-error { color: #a12538; }
.upload-status:not(:empty) { margin-top: .5rem; }
.calculator { margin-top: 1.35rem; }
.calc-head, .calc-total, .room-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.room-row { min-width: 0; margin: 1.1rem 0 0; border: 1px solid var(--line); background: #fafbfe; border-radius: 12px; padding: .75rem 1rem; }
.room-row legend { padding: 0 .3rem; font-size: .91rem; font-weight: 700; }
.room-fields { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr 1.6fr; gap: .65rem; }
.room-bottom { margin-top: .45rem; }
.room-bottom span { font-size: .91rem; font-weight: 650; }
.calc-total { background: var(--light-blue); border-radius: 12px; margin-top: 1.25rem; padding: 1rem 1.15rem; }
.calc-total span { font-size: .92rem; font-weight: 700; }
.calc-total output { display: block; color: #163dad; font-size: 2.15rem; font-weight: 780; letter-spacing: -.035em; line-height: 1.2; }
.source-note { margin-top: 1rem; }
.source-note a { color: var(--blue); text-underline-offset: .18em; }
.contact-section { background: #eaf0fb; }
label.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: 19px; height: 19px; accent-color: var(--blue); }
.footer { background: #111e35; color: white; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 2rem; }
.footer p { color: #c1cde3; margin-top: .45rem; font-size: .93rem; }
.footer .brand-mark { background: #293d62; }
.footer .brand b { color: #91b2ff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.7rem; font-size: .92rem; }
.footer-links a { text-underline-offset: .2em; }
.inbox { min-height: 63vh; }
.inbox h1 { font-size: 3rem; }
.inbox > .hint { margin-block: 1rem; }
.inquiry { padding: 1rem 1.25rem; margin-block: .9rem; overflow-wrap: anywhere; }
.inquiry summary { cursor: pointer; }
.inquiry p { margin-top: .55rem; white-space: pre-wrap; }
.inquiry ul { padding-left: 1.25rem; }

@media (max-width: 850px) {
  .room-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-fields label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 0 1rem; padding-top: .75rem; }
  .header-phone { font-size: .84rem; }
  nav { width: 100%; order: 2; gap: 1.35rem; }
  nav a { min-height: 49px; }
  .hero-inner { min-height: 330px; padding-block: 3.5rem; }
  .hero::before { left: 15%; }
  .hero::after { background: linear-gradient(90deg, #111f37fa 0%, #111f37de 50%, #111f3770 100%); }
  .work-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .work-grid .section-intro .contact-card { display: none; }
  .section { padding-block: 2.6rem; }
  .footer-inner { flex-direction: column; align-items: start; gap: 1rem; }
}
@media (max-width: 450px) {
  .field-grid { grid-template-columns: 1fr; }
  .calc-head, .calc-total { align-items: start; flex-direction: column; }
  .hero p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; }
  .topbar, .hero, .contact-section, .footer, .secondary-action, .skip { display: none !important; }
  .shell { width: 100%; }
  .section { padding-block: .5rem; }
  .panel { box-shadow: none; }
  .room-row { break-inside: avoid; }
}
.brand-original img { display: block; width: 215px; height: auto; }
.footer .brand-original { background: #f7f7f7; border-radius: 6px; padding: 5px; }
@media(max-width:720px) { .brand-original img { width: 170px; } }
.spaced { margin-top: 1.5rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.project-card { overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.project-info { padding: 1.4rem; display: grid; gap: .6rem; }
.project-info p { white-space: pre-wrap; overflow-wrap: anywhere; }
.project-info h2 { font-size: 1.7rem; }
.project-meta { color: var(--muted); font-size: .95rem; }
.seller-box { margin-top: 2rem; padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.seller-box h2 { font-size: 1.7rem; }
.seller-box p { margin-top: .6rem; }
nav { gap: 1.25rem; }
nav a { font-size: .88rem; }
.header-phone { display: none; }
@media(max-width:720px) { nav { overflow-x:auto; gap:1.2rem; } nav a { white-space:nowrap; } .project-grid { grid-template-columns:1fr; } .seller-box { flex-direction:column; align-items:start; } }
figure.project-card { margin: 0; }
.brand-clean { gap: .65rem; font-size: 1.45rem; color: #142c3d; letter-spacing: -.04em; }
.logo-crop { width: 52px; height: 50px; overflow: hidden; display: block; flex-shrink: 0; border-radius: 50%; }
.logo-crop img { height: 50px; width: auto; max-width: none; display: block; }
.footer .brand-clean { color: white; }
.footer .logo-crop { background: #f7f7f7; }
.legal-page { max-width: 850px; }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.legal-date { margin-top: 1rem; }
.legal-page section { margin-top: 2rem; }
.legal-page h2 { font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.25; }
.legal-page p { margin-top: .8rem; color: var(--muted); }
.legal-page a, .form-privacy a { color: var(--blue); text-underline-offset: .2em; }
.form-privacy { font-size: .9rem; color: var(--muted); }
.footer-links { max-width: 650px; }
.privacy-confirmation { align-items: flex-start !important; gap: .75rem !important; }
.privacy-confirmation input { flex: 0 0 auto; margin: .2rem 0 0; }
.privacy-confirmation > span { color: var(--ink); font-weight: 450; line-height: 1.55; }
.privacy-confirmation a { color: var(--blue); text-underline-offset: .15em; }
.cookie-notice { position: fixed; z-index: 20; right: 1.2rem; bottom: 1.2rem; width: min(460px, calc(100vw - 2.4rem)); padding: 1.35rem; box-shadow: 0 12px 55px #14213a33; max-height: calc(100dvh - 2.4rem); overflow-y: auto; }
.cookie-notice h2, .cookie-dialog h2 { font-size: 1.4rem; letter-spacing: -.025em; line-height: 1.2; }
.cookie-notice p, .cookie-dialog p { margin-top: .8rem; color: var(--muted); font-size: .94rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.cookie-links { display: flex; gap: 1rem; }
.cookie-links a, .cookie-dialog a { color: var(--blue); text-underline-offset: .18em; }
.cookie-dialog { color: var(--ink); max-width: 620px; width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); padding: 1.7rem; overflow-y: auto; }
.cookie-dialog::backdrop { background: #101c36a8; }
.cookie-dialog dl { margin-block: 1rem; }
.cookie-dialog dt { margin-top: 1rem; font-weight: 750; }
.cookie-dialog dd { margin: .3rem 0 0; color: var(--muted); font-size: .94rem; }
.cookie-dialog form { margin-top: 1.4rem; }
.cookie-table-wrap { overflow-x: auto; margin-top: 1rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cookie-table th, .cookie-table td { border-bottom: 1px solid var(--line); padding: .8rem; text-align: left; vertical-align: top; }
.cookie-table code { overflow-wrap: anywhere; }
@media print { .cookie-notice, .cookie-dialog { display: none !important; } }
.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 5rem); }
.about-person h3 { font-size: 1.65rem; letter-spacing: -.025em; line-height: 1.2; }
.about-person p { margin-top: .9rem; color: var(--muted); }
.about-person a { display: inline-block; margin-top: 1rem; color: var(--blue); text-underline-offset: .2em; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.service-card { padding: 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.service-card h3 { font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.2; }
.service-card p { color: var(--muted); margin-bottom: .5rem; }
.service-card .button { margin-top: auto; }
@media (max-width: 720px) { .service-grid { grid-template-columns: 1fr; } }

.credit-checklist { padding-left: 1.3rem; line-height: 1.6; }
.credit-checklist li { padding: .5rem 0; border-bottom: 1px solid #e0e7ed; }
