/* D.A.R. Metall AG – eigenes Stylesheet (ohne Tilda) */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
:root {
  --ink: #000a1e;
  --navy: #132232;
  --accent: #ffb200;
  --accent-ink: #1a1200;
  --sky: #e9f4f9;
  --muted: #5b6573;
  --line: #dfe5ea;
  --white: #fff;
  --head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(44px, 7vw, 80px); }
h2 { font-size: clamp(32px, 4.2vw, 46px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 500 15px/1 var(--head); text-transform: uppercase; letter-spacing: .06em;
  padding: 15px 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffc233; }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn img { width: 20px; height: 20px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 18px var(--head); text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav > a { font: 500 15px var(--head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.main-nav > a:hover { color: #b37d00; }
.nav-contact { display: none; }
.langs { display: flex; gap: 4px; }
.langs a { font: 500 13px var(--head); text-decoration: none; padding: 6px 8px; border-radius: 4px; }
.langs a.active { background: var(--accent); }
.langs a:not(.active):hover { background: var(--sky); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 1080px) {
  .burger { display: block; }
  .langs { margin-left: auto; }
  .main-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--white);
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-120%); visibility: hidden; transition: transform .25s, visibility .25s; margin: 0; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-contact { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
  .nav-contact a { text-decoration: none; color: var(--muted); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .langs a { padding: 6px 5px; font-size: 12px; }
}

/* Hero */
.hero { background: var(--sky) center / cover no-repeat; position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; padding: 80px 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,0) 70%); }
.hero .wrap { position: relative; width: 100%; }
.hero h1 { max-width: 9em; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; }
.chip { background: var(--white); text-decoration: none; font: 500 14px var(--head); text-transform: uppercase; letter-spacing: .05em;
  padding: 18px 22px; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,10,30,.12); transition: transform .15s, background .15s; }
.chip:hover { transform: translateY(-2px); background: var(--accent); }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: clamp(32px, 5vw, 64px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat img { width: 48px; height: 48px; }
.stat strong { font: 500 clamp(40px, 5vw, 56px)/1 var(--head); }
.stat p { max-width: 30ch; margin: 0; color: var(--muted); }
.stat-accent { background: var(--accent); }
.stat-accent p { color: var(--accent-ink); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* Services */
.services-intro { background: var(--navy) center / cover no-repeat; color: var(--white); padding: 90px 0; position: relative; }
.services-intro::before { content: ""; position: absolute; inset: 0; background: rgba(0,10,30,.45); }
.services-intro .wrap { position: relative; }
.services-intro h2 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: -48px; position: relative; padding-bottom: 72px; }
.card { position: relative; min-height: 300px; border-radius: 10px; overflow: hidden; background: var(--navy) center / cover no-repeat;
  color: var(--white); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; box-shadow: 0 14px 30px rgba(0,10,30,.18); }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,10,30,.88), rgba(0,10,30,.15) 65%); transition: background .2s; }
.card:hover::before { background: linear-gradient(to top, rgba(0,10,30,.95), rgba(0,10,30,.35)); }
.card > * { position: relative; }
.card-ico { width: 56px; height: 56px; object-fit: contain; margin-bottom: auto; }
.card h3 { font-size: 24px; margin: 0 0 8px; }
.card-more { font: 500 13px var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } .card { min-height: 220px; } }
@media (max-width: 440px) { .cards { grid-template-columns: 1fr; } }

.service { display: grid; grid-template-columns: 5fr 7fr; min-height: 520px; }
.service.flip { grid-template-columns: 7fr 5fr; }
.service.flip .service-media { order: 2; }
.service-media { background: var(--navy) center / cover no-repeat; min-height: 280px; }
.service-body { padding: clamp(36px, 6vw, 80px) clamp(16px, 5vw, 72px); max-width: 760px; }
.service:nth-of-type(even) .service-body { background: var(--white); }
.service-ico { width: 56px; height: 56px; object-fit: contain; margin-bottom: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 860px) {
  .service, .service.flip { grid-template-columns: 1fr; }
  .service.flip .service-media { order: 0; }
}

/* About */
.about { background: var(--navy) center / cover no-repeat; color: var(--white); position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.about::before { content: ""; position: absolute; inset: 0; background: rgba(0,10,30,.72); }
.about-inner { position: relative; max-width: 900px; }

/* Contact & Team */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 80px); padding-top: 80px; padding-bottom: 80px; }
address { font-style: normal; margin-bottom: 1em; }
.contact p a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.member { background: var(--sky); border-radius: 8px; padding: 18px 20px; border-left: 4px solid var(--accent); }
.member h3 { font-size: 20px; margin: 0 0 4px; }
.member p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.member small { display: block; margin-top: 8px; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: #cfd8e3; padding: 40px 0 20px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.site-footer .brand { color: var(--white); }
.footer-contact, .footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links { margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.copyright { margin-top: 24px; font-size: 13px; color: #8d9aab; }

/* Legal pages */
.legal { padding-top: 40px; padding-bottom: 80px; max-width: 900px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal h2 { font-size: 24px; margin-top: 1.6em; }
.legal .prose { overflow-wrap: anywhere; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,10,30,.7); }
.modal-box { position: relative; background: var(--white); border-radius: 10px; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; padding: 32px 28px 24px; }
.modal-box h2 { font-size: 28px; padding-right: 30px; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.offer-topic { margin: -6px 0 14px; color: var(--muted); }
.offer-topic:empty { display: none; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 14px; margin-bottom: 4px; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c5ced8; border-radius: 6px; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255,178,0,.3); }
.offer-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.consent { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status.ok { color: #1c7a3e; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.video-box { max-width: 960px; padding: 48px 12px 12px; background: #000; }
.video-box .modal-close { color: #fff; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #111; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; color: #e5e9ee; }
.video-consent p { max-width: 46ch; margin: 0; font-size: 15px; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
