:root {
  --navy: #15394d;
  --ink: #0b2532;
  --cream: #f5f2e9;
  --paper: #ffffff;
  --yellow: #f7d447;
  --accent: #11627d;
  --accent-soft: #dcebef;
  --accent-on-dark: #59b9d8;
  --muted: #5c6c73;
  --line: #d4dde0;
  --surface: #ffffff;
  --soft-blue: #edf7fa;
  --display: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --navy: #03131d;
  --ink: #f2f7f8;
  --cream: #091e29;
  --paper: #051720;
  --muted: #b5c3c8;
  --line: #ffffff26;
  --surface: #102b38;
  --soft-blue: #0b2431;
  --accent: #f7d447;
  --accent-soft: #173747;
  --accent-on-dark: #f7d447;
}

* { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body { max-width: 100%; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); transition: color .25s ease, background-color .25s ease; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
.button, a, button, input, textarea, select, summary { outline-offset: 4px; }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
}
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; padding: 12px; background: white; color: var(--ink); }
.skip-link:focus { top: 12px; }

.nav {
  height: 68px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between;
  background: var(--paper); background: color-mix(in srgb, var(--paper) 94%, transparent); color: var(--ink); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 12px; line-height: 1.05; letter-spacing: .18em; }
.brand b { color: #11627d; font-weight: 800; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; color: #ffffff; background: #11627d;
  font-family: var(--display); font-size: 25px; font-weight: 900; transform: skew(-7deg); border-radius: 2px;
}
.nav-links { display: flex; gap: 34px; font-size: 13px; }
.nav-links a { opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 800; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { padding: 11px 16px; border: 1px solid var(--line); font-size: 13px; border-radius: 2px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 2px; cursor: pointer; font-size: 12px; }
.theme-toggle:hover { background: var(--soft-blue); }
.install-app { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 2px; cursor: pointer; font-size: 12px; }
.install-app:hover { background: var(--soft-blue); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; border-radius: 2px; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero {
  min-height: 690px; position: relative; color: var(--ink); background: var(--soft-blue); overflow: hidden;
  display: grid; grid-template-columns: 58% 42%; padding: 86px 5vw 0;
}
.hero::before { content: ""; position: absolute; width: 600px; height: 600px; border: 1px solid #ffffff0c; border-radius: 50%; right: 4%; top: -80px; box-shadow: 0 0 0 80px #ffffff05, 0 0 0 160px #ffffff03; }
.hero-copy { position: relative; z-index: 2; max-width: 770px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
.eyebrow span { width: 26px; height: 2px; background: var(--accent); }
.hero h1, .section-heading h2, .about h2, .contact h2 {
  font-family: var(--display); letter-spacing: -.055em; font-weight: 800; margin: 26px 0; line-height: .94;
}
.hero h1 { font-size: clamp(64px, 7.2vw, 112px); }
.hero h1 em { font-style: normal; color: #11627d; }
.hero-lead { max-width: 600px; color: var(--muted); line-height: 1.75; font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button { border: 0; padding: 16px 21px; display: inline-flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 800; cursor: pointer; border-radius: 2px; }
.button-primary { background: #11627d; color: #ffffff; }
.button-primary:hover { background: #0c526a; }
.button:disabled { opacity: .65; cursor: wait; }
.text-link { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.text-link span { margin-left: 10px; color: var(--accent); }
.hero-visual { position: relative; z-index: 1; min-height: 440px; margin: -28px -5vw 0 0; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--soft-blue) 0%, transparent 35%), linear-gradient(0deg, #071b2838, transparent 55%); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; min-height: 500px; display: block; object-fit: cover; object-position: 58% center; border-radius: 2px 0 0 2px; }
.voltage { position: absolute; right: 8%; top: 13%; font-family: var(--display); font-size: clamp(100px, 13vw, 210px); font-weight: 900; color: #ffffff0b; letter-spacing: -.08em; transform: rotate(-8deg); }
.voltage span { font-size: .32em; }
.cable { position: absolute; width: 370px; height: 370px; border: 28px solid var(--accent); border-left-color: transparent; border-radius: 50%; right: 1%; top: 19%; transform: rotate(-33deg); box-shadow: 8px 14px 35px #0005; }
.cable::after { content: ""; position: absolute; width: 35px; height: 85px; background: #1c323e; border: 6px solid #b8c1c3; left: 7px; bottom: -52px; border-radius: 5px; transform: rotate(34deg); }
.cable-two { width: 270px; height: 270px; right: 8%; top: 30%; border-width: 15px; opacity: .35; }
.spark { position: absolute; right: 6%; top: 17%; color: var(--accent); font-size: 42px; }

.trust { padding: 100px 5vw; background: var(--paper); }
.trust-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 5vw; align-items: end; margin-bottom: 50px; }
.trust-heading h2, .faq-heading h2, .policy-hero h1 {
  font-family: var(--display); font-size: clamp(42px, 5vw, 72px); letter-spacing: -.055em; line-height: .94; margin: 0;
}
.trust-heading > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.7; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust-card { min-height: 0; padding: 22px; display: flex; flex-direction: column; background: var(--soft-blue); border: 1px solid var(--line); border-radius: 4px; transition: background .25s, transform .25s, box-shadow .25s, border-color .25s; }
.trust-card:hover { background: var(--surface); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 38px #10212a12; }
.trust-card-static { cursor: default; }
.trust-card-static:hover { background: var(--soft-blue); border-color: var(--line); transform: none; box-shadow: none; }
.trust-grid h3 { font-family: var(--display); font-size: 19px; margin: 0 0 10px; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.trust-card .card-link { display: inline-block; margin-top: auto; padding-top: 12px; color: var(--accent); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.services { padding: 115px 5vw; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 5vw; margin-bottom: 60px; }
.eyebrow-dark { color: var(--muted); align-self: start; padding-top: 12px; }
.section-heading h2, .about h2, .contact h2 { font-size: clamp(42px, 5vw, 72px); margin: 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { min-height: 0; padding: 24px; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; background: var(--soft-blue); border: 1px solid var(--line); border-radius: 4px; position: relative; transition: background .25s, transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { background: var(--surface); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 38px #10212a12; z-index: 2; }
.service-card-static { cursor: default; }
.service-card-static:hover { background: var(--soft-blue); border-color: var(--line); transform: none; box-shadow: none; z-index: auto; }
.service-symbol { width: 52px; min-height: 52px; display: grid; place-items: center; font-family: var(--display); color: var(--navy); font-size: 34px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.service-card-content { min-width: 0; }
.service-card h3 { font-family: var(--display); font-size: 20px; margin: 2px 0 9px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 330px; }
.service-card .card-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.service-hero { min-height: 610px; display: grid; grid-template-columns: 52% 48%; background: var(--soft-blue); overflow: hidden; }
.service-hero > div { padding: 95px 5vw; align-self: center; }
.service-hero h1 { font-family: var(--display); font-size: clamp(58px, 6.5vw, 100px); letter-spacing: -.055em; line-height: .92; margin: 24px 0; }
.service-lead { max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 34px; }
.service-hero > img { width: 100%; height: 100%; min-height: 610px; object-fit: cover; }
.service-detail { padding: 110px 5vw; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 8vw; background: var(--paper); }
.service-detail aside { align-self: start; padding: 28px; background: var(--accent-soft); border-left: 3px solid var(--accent); }
.service-detail aside strong { font-family: var(--display); font-size: 19px; }
.service-detail aside ul { padding-left: 18px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.service-detail article { max-width: 850px; }
.service-detail article section { padding-bottom: 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.service-detail article section:last-child { margin-bottom: 0; }
.service-detail h2, .service-cta h2 { font-family: var(--display); font-size: clamp(34px, 4vw, 56px); letter-spacing: -.04em; line-height: 1; margin: 15px 0 20px; }
.service-detail article p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.service-detail article a { color: var(--accent); font-weight: 800; text-decoration: underline; }
.service-detail .safety-note { padding: 28px; background: var(--accent-soft); border: 0; }
.service-detail .safety-note h2 { font-size: 30px; margin-top: 0; }
.service-cta { padding: 80px 5vw; text-align: center; background: var(--accent-soft); }
.service-cta p { color: var(--muted); margin-bottom: 28px; }

.projects { padding: 115px 5vw; background: var(--cream); }
.projects-page { min-height: calc(100vh - 208px); }
.projects-page .section-heading h1 { font-family: var(--display); font-size: clamp(42px, 5vw, 72px); letter-spacing: -.055em; line-height: .94; margin: 0; }
.project-heading-aside p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.project-heading-aside .button { gap: 18px; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 14px; }
.project-card { position: relative; margin: 0; overflow: hidden; background: var(--navy); border-radius: 2px; }
.project-card-wide { grid-column: span 2; }
.project-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-card::after { content: ""; position: absolute; inset: 28% 0 0; background: linear-gradient(transparent, #05131de8); pointer-events: none; }
.project-card figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; color: white; }
.project-card figcaption span { grid-row: 1 / 3; color: var(--accent-on-dark); font-family: var(--display); font-weight: 800; font-size: 12px; padding-top: 3px; }
.project-card figcaption strong { font-family: var(--display); font-size: 18px; }
.project-card figcaption small { color: #ffffffb8; font-size: 11px; margin-top: 3px; }
.project-note { max-width: 760px; margin: 28px 0 0 auto; color: var(--muted); font-size: 11px; line-height: 1.65; }
.project-footnote { display: flex; justify-content: flex-end; align-items: end; gap: 40px; }
.project-footnote > p:last-child { max-width: 300px; margin: 28px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.project-footnote a { color: var(--accent); font-weight: 800; }

.about { display: grid; grid-template-columns: 45% 55%; background: var(--soft-blue); color: var(--ink); }
.about-portrait { min-height: 690px; background: linear-gradient(140deg, #dcebed, #c8dde2); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; overflow: hidden; }
.about-portrait::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 26, 38, 0.08) 0%, rgba(8, 26, 38, 0.14) 48%, rgba(8, 26, 38, 0.6) 100%); z-index: 1; }
.about-portrait-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.about-portrait p { position: absolute; bottom: 40px; left: 40px; border-left: 2px solid #ffffff; padding-left: 15px; font-weight: 700; line-height: 1.4; color: white; z-index: 2; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.about-portrait p span { font-weight: 500; color: rgba(255, 255, 255, 0.85); font-size: 12px; }
.about-copy { padding: 100px 8vw; }
.about-copy h2 { margin: 24px 0 34px; }
.about-copy > p { color: var(--muted); line-height: 1.8; font-size: 14px; max-width: 600px; }
.about-copy .about-lead { color: var(--ink); font-size: 18px; }
.about-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.about-values span { border: 1px solid var(--line); padding: 9px 13px; color: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.process { padding: 45px 5vw; background: #dcebef; display: flex; align-items: center; gap: 4vw; }
.process > .eyebrow { flex: 0 0 auto; margin: 0; }
.process-row { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 2vw; margin-top: 0; }
.process-row div { position: relative; padding-left: 46px; }
.process-row b { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #ffffff; font-family: var(--display); }
.process-row h3 { font-family: var(--display); margin: 0 0 8px; font-size: 18px; }
.process-row p { color: var(--muted); margin: 0; font-size: 12px; }
.process-row i { color: #98a2a5; font-style: normal; }

.faq { padding: 110px 5vw; background: var(--paper); display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 8vw; }
.faq-heading > p:last-child { color: var(--muted); max-width: 360px; font-size: 14px; line-height: 1.7; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-family: var(--display); font-size: 19px; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p { max-width: 720px; margin: -4px 54px 24px 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-list details a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.contact { background: var(--soft-blue); color: var(--ink); padding: 110px 5vw; display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: 7vw; }
.contact > * { min-width: 0; }
.contact-intro > p { color: var(--muted); line-height: 1.7; max-width: 470px; text-align: center; margin-left: auto; margin-right: auto; }
.contact-intro { text-align: center; }
.contact-intro .eyebrow { justify-content: center; }
.contact h2 { margin: 25px 0 28px; }
.direct-contact { margin-top: 55px; display: grid; gap: 24px; }
.direct-contact a { display: block; }
.direct-contact small { color: #566d78; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.direct-contact strong { font-family: var(--display); font-size: 18px; font-weight: 700; }
.direct-contact .vcard-button { width: min(440px, 100%); min-height: 88px; display: inline-flex; align-items: center; justify-content: flex-start; justify-self: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 800; text-align: left; transition: background-color .2s ease, border-color .2s ease; }
.direct-contact .vcard-button:hover { background: var(--accent-soft); border-color: var(--accent); }
.vcard-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; filter: hue-rotate(325deg) saturate(1.55) brightness(.9); }
.vcard-copy { display: grid; gap: 5px; min-width: 0; }
.vcard-copy strong { font-family: var(--display); font-size: 16px; line-height: 1.1; }
.vcard-copy small { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.contact-form { background: var(--surface); color: var(--ink); padding: 38px; border-radius: 3px; min-height: 430px; }
.contact-form label { display: grid; gap: 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: 22px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; background: #f7f6f1; color: #10212a; border: 1px solid #e3e2dc; padding: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; border-radius: 2px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #11627d30; }
#kontaktformular { scroll-margin-top: 24px; }
.contact-form textarea { resize: vertical; }
.contact-form select { min-height: 49px; }
.contact-form .file-field > span { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.contact-form input[type="file"] { cursor: pointer; }
.contact-form input[type="file"]::file-selector-button { margin: -8px 12px -8px -8px; padding: 10px 12px; border: 0; background: var(--accent); color: white; cursor: pointer; font-weight: 800; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-footer { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.form-footer p { max-width: 330px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.form-footer p a { color: var(--accent); font-weight: 800; text-decoration: underline; }

[data-theme="dark"] .nav { background: #020d13; color: white; }
[data-theme="dark"] .brand b { color: var(--yellow); }
[data-theme="dark"] .brand-mark { color: var(--navy); background: var(--yellow); }
[data-theme="dark"] .hero { background: var(--navy); color: white; }
[data-theme="dark"] .hero h1 em { color: var(--yellow); }
[data-theme="dark"] .button-primary { background: var(--yellow); color: var(--navy); }
[data-theme="dark"] .button-primary:hover { background: #ffe168; }
[data-theme="dark"] .hero-lead { color: #d5dde0; }
[data-theme="dark"] .hero-visual::after { background: linear-gradient(90deg, var(--navy) 0%, transparent 35%), linear-gradient(0deg, #071b2866, transparent 55%); }

[data-theme="dark"] .process-row b { color: var(--navy); }
[data-theme="dark"] .about, [data-theme="dark"] .contact { background: var(--navy); color: white; }
[data-theme="dark"] .about-portrait { background: linear-gradient(140deg, #173b4d, #081a26); }
[data-theme="dark"] .about-portrait p span { color: #ffffff99; }
[data-theme="dark"] .about-copy .about-lead { color: white; }
[data-theme="dark"] .about-values span { color: #d4dde0; }
[data-theme="dark"] .process { background: var(--cream); }
[data-theme="dark"] .services { background: var(--paper); }
[data-theme="dark"] .service-symbol { color: #ffffff; }
[data-theme="dark"] .direct-contact small { color: #b5c3c8; }
[data-theme="dark"] .contact-form input, [data-theme="dark"] .contact-form textarea, [data-theme="dark"] .contact-form select { background: #0b2431; color: #f2f7f8; border-color: #ffffff26; }
[data-theme="dark"] .contact-form input::placeholder, [data-theme="dark"] .contact-form textarea::placeholder { color: #b5c3c8; }
[data-theme="dark"] .contact-form input[type="file"]::file-selector-button { color: var(--navy); }
[data-theme="dark"] footer { background: #020b10; color: #ffffff9c; }
[data-theme="dark"] .footer-brand { color: white; }
[data-theme="dark"] .footer-brand b { color: var(--yellow); }
.website-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-message { display: none; margin: 14px 0 0; color: #a92d27; background: #fff0ef; font-size: 12px; }
.form-message:not(:empty) { display: block; padding: 10px; }
.form-success { min-height: 350px; display: grid; place-items: center; align-content: center; text-align: center; }
.form-success > span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #ffffff; font-size: 28px; }
[data-theme="dark"] .form-success > span { color: var(--navy); }
.form-success h3 { font-family: var(--display); font-size: 28px; margin-bottom: 0; }
.form-success p { color: var(--muted); }
.form-success button { border: 0; background: none; text-decoration: underline; cursor: pointer; }

.map-section { height: 460px; position: relative; background: var(--accent-soft); }
.map-section iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.9); }
footer { min-height: 120px; background: #e4f0f3; color: var(--muted); padding: 30px 5vw; display: flex; align-items: center; justify-content: space-between; font-size: 11px; border-top: 1px solid #cadde2; }
.footer-brand { color: var(--ink); }
.footer-brand b { color: #11627d; }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.mobile-contact-bar { display: none; }

.policy-page { background: var(--paper); }
.policy-hero { padding: 100px 5vw 70px; background: var(--soft-blue); }
.policy-hero > p:last-child { max-width: 680px; color: var(--muted); line-height: 1.75; }
.policy-layout { padding: 90px 5vw 120px; display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2.4fr); gap: 8vw; }
.policy-layout aside { align-self: start; position: sticky; top: 100px; padding: 26px; background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 13px; line-height: 1.7; }
.policy-layout aside strong { font-family: var(--display); font-size: 18px; }
.policy-layout aside a { display: block; color: var(--accent); font-weight: 800; }
.policy-content { max-width: 820px; }
.policy-content section { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.policy-content h2 { font-family: var(--display); font-size: 28px; margin: 0 0 14px; }
.policy-content p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.policy-content a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.server-response { min-height: 100vh; display: grid; place-items: center; padding: 5vw; background: var(--soft-blue); }
.server-response main { width: min(620px, 100%); padding: clamp(34px, 6vw, 64px); text-align: center; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 22px 60px #061b2518; }
.server-response .brand-mark { margin: 0 auto 28px; }
.server-response h1 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(38px, 6vw, 64px); line-height: .98; }
.server-response p { margin: 0 0 28px; color: var(--muted); line-height: 1.7; }
.install-dialog { position: relative; width: min(460px, calc(100% - 32px)); padding: 38px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 24px 80px #061b2566; }
.install-dialog::backdrop { background: #03131dcc; backdrop-filter: blur(4px); }
.install-dialog .brand-mark { margin-bottom: 24px; }
.install-dialog h2 { margin: 0 0 14px; font-family: var(--display); font-size: 30px; line-height: 1.05; }
.install-dialog p { margin: 0 0 28px; color: var(--muted); line-height: 1.7; }
.install-dialog-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 27px; cursor: pointer; }
.install-dialog-done { width: 100%; justify-content: center; }
.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 5vw; background: var(--soft-blue); }
.offline-page main { width: min(660px, 100%); padding: clamp(38px, 7vw, 72px); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 22px 60px #061b2518; }
.offline-page h1 { margin: 24px 0 18px; font-family: var(--display); font-size: clamp(44px, 7vw, 72px); line-height: .95; letter-spacing: -.04em; }
.offline-page main > p:last-of-type { max-width: 560px; color: var(--muted); line-height: 1.75; }
.offline-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }

@media (min-width: 901px) {
  .nav-actions { min-width: 116px; justify-content: flex-end; }
  .nav-links .install-app { display: none; }
  .theme-toggle { background: transparent; box-shadow: none; }
}

@media (max-width: 900px) {
  .nav { padding-inline: 4vw; gap: 10px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand > span:last-child { min-width: 0; }
  .nav-actions { flex: 0 0 auto; gap: 8px; }
  .theme-toggle, .install-app { width: 42px; height: 42px; padding: 0; justify-content: center; flex: 0 0 42px; }
  .theme-label, .install-label { display: none; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav.menu-open .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 5vw 18px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px #061b2520;
  }
  .nav.menu-open .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav.menu-open .nav-links a:last-child { border-bottom: 0; }
  .nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-visual { position: absolute; right: -130px; top: 150px; width: 420px; opacity: .35; }
  .hero-visual img { min-height: 520px; }
  .hero-copy { z-index: 3; min-width: 0; }
  .hero-lead { max-width: 520px; }
  .hero-actions { flex-wrap: wrap; }
  .trust-heading, .section-heading { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 38px; }
  .trust-heading > *, .section-heading > * { min-width: 0; }
  .service-hero, .service-detail, .about, .faq, .contact, .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .service-hero > *, .service-detail > *, .about > *, .faq > *, .contact > *, .policy-layout > * { min-width: 0; }
  .service-hero > img { min-height: 340px; max-height: 460px; }
  .service-detail { gap: 38px; }
  .about-portrait { min-height: 470px; }
  .about-portrait p { left: 24px; right: 24px; bottom: 24px; }
  .faq { gap: 42px; }
  .policy-layout { gap: 38px; }
  .policy-layout aside { position: static; }
  .policy-content, .policy-content section, .policy-content p, .policy-content a { min-width: 0; overflow-wrap: anywhere; }
  .contact-form, .contact-form input, .contact-form textarea, .contact-form select { min-width: 0; max-width: 100%; }
  .offline-page { padding-bottom: 5vw; }
  .services, .trust, .faq, .process, .contact { padding-top: 75px; padding-bottom: 75px; }
  .section-heading h2, .about h2, .contact h2 { font-size: 42px; }
  .service-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .project-card-wide { grid-column: auto; }
  .project-footnote { display: block; }
  .service-card { min-height: 0; padding: 20px; grid-template-columns: 46px 1fr; gap: 14px; }
  .service-symbol { width: 46px; min-height: 46px; font-size: 30px; }
  .service-hero > div { padding: 75px 5vw; }
  .service-hero h1 { font-size: 54px; }
  .service-detail { padding-top: 75px; padding-bottom: 75px; }
  .trust-grid { grid-template-columns: 1fr; }

  .about-copy { padding: 75px 5vw; }
  .process { display: block; }
  .process-row { grid-template-columns: 1fr; gap: 30px; margin-top: 32px; }
  .process-row i { display: none; }
  .contact { row-gap: 0; }
  .contact-intro { display: contents; }
  .contact-intro > .eyebrow { order: 1; }
  .contact-intro > h2 { order: 2; }
  .contact-intro > p:not(.eyebrow) { order: 3; }
  .contact-form { order: 4; margin-top: 38px; }
  .direct-contact { order: 5; margin-top: 55px; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { justify-content: space-between; }
  .faq-list summary { font-size: 17px; }
  .faq-list details > p { margin-right: 0; }
  .policy-hero { padding-top: 75px; }
  .policy-layout { padding-top: 60px; padding-bottom: 80px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .install-dialog { padding: 30px 24px; }
  .offline-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 767px) {
  body { padding-bottom: 62px; }
  .mobile-contact-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px 10px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px #061b2520; }
  .mobile-contact-bar a { min-height: 48px; display: grid; place-items: center; border: 2px solid #087a3e; border-radius: 4px; background: #f0fff6; color: #075f32; font-size: 13px; font-weight: 800; }
  .mobile-contact-bar a:active { transform: translateY(1px); }
}

@media (max-width: 520px) {
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-actions .button { width: 100%; justify-content: space-between; gap: 12px; }
  .hero-actions .text-link { align-self: flex-start; }
  .contact-form { padding: 20px; }
  .direct-contact .vcard-button { padding-inline: 14px; gap: 12px; }
  .vcard-icon { width: 44px; height: 44px; }
  .footer-links { gap: 16px; }
}

@media (max-width: 360px) {
  .nav { padding-inline: 10px; }
  .brand { gap: 8px; font-size: 11px; letter-spacing: .14em; }
  .brand-mark { width: 34px; height: 34px; font-size: 23px; }
  .nav-actions { gap: 6px; }
  .theme-toggle, .install-app, .menu-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .hero h1 { font-size: 56px; }
  .trust-heading h2, .faq-heading h2, .policy-hero h1, .section-heading h2, .about h2, .contact h2 { font-size: 38px; }
  .service-card { padding: 16px; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .service-symbol { width: 42px; min-height: 42px; font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
