/* =========================================================
   Vektordesigner.de – Stylesheet (minimal)
   Ingo Menhard · Mediendesign
   ========================================================= */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #111214;
  --text: #2b2d31;
  --muted: #6e7076;
  --line: #e9e9ec;
  --soft: #f6f6f7;
  --bg: #ffffff;
  --accent: #ff5a1f;
  --handle: #1fa9b8;
  --ok: #1b8a52;
  --err: #c62f2f;
  --radius: 10px;
  --max: 1120px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: #c9c9cf; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .55em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--handle); outline-offset: 3px; border-radius: 4px; }
.label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.label::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 24px 22px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; border: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font: inherit; font-weight: 700; font-size: .98rem; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art figcaption { display: flex; justify-content: space-between; font-size: .76rem; font-weight: 700; color: var(--muted); padding-top: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero-art .path-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-art .path-draw { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } }
@media (max-width: 860px) { .hero { padding: 56px 0 64px; } .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 76px; }
.section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.section-soft { background: var(--soft); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; } }

/* ---------- Liste (Leistungen / Ablauf) ---------- */
.grid-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.grid-list li { border-top: 1px solid var(--ink); padding: 20px 0 40px; }
.grid-list h3 { margin-bottom: .4em; }
.grid-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.grid-list.three { grid-template-columns: repeat(3, 1fr); }
.grid-list .num { display: block; font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .grid-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-list, .grid-list.three { grid-template-columns: 1fr; } .grid-list li { padding-bottom: 28px; } }

/* ---------- Referenzen ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.ref { margin: 0; }
.ref .img { background: var(--soft); border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 22px; overflow: hidden; }
.ref .img img { width: 100%; height: 100%; object-fit: contain; }
.ref figcaption { padding-top: 12px; font-size: .92rem; color: var(--muted); }
.ref figcaption strong { color: var(--ink); font-weight: 700; margin-right: 6px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 180px 1fr; gap: 56px; align-items: start; max-width: 860px; }
.about img { width: 180px; border-radius: var(--radius); }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; gap: 24px; } .about img { width: 120px; } }

/* ---------- Formular ---------- */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.form-aside p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.contact-list span:first-child { color: var(--muted); }
.contact-list span:last-child { text-align: right; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 650; font-size: .88rem; color: var(--ink); }
.req { color: var(--accent); }
.hint { font-size: .8rem; color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #d9d9de; border-radius: 8px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e7076' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,18,20,.08); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .seg span { border-color: var(--err); }
.err-msg { color: var(--err); font-size: .8rem; font-weight: 600; display: none; }
.field.invalid .err-msg { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; cursor: pointer; font-weight: 600; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 10px; border: 1px solid #d9d9de; border-radius: 8px; transition: all .15s; font-size: .95rem; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--handle); outline-offset: 2px; }
.dropzone { position: relative; border: 1px dashed #c6c6cc; border-radius: 8px; padding: 26px 18px; text-align: center; transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: var(--soft); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone svg { width: 26px; height: 26px; color: var(--ink); margin: 0 auto 8px; }
.dropzone strong { display: block; font-size: .95rem; color: var(--ink); }
.dropzone small { color: var(--muted); font-size: .8rem; }
.file-list { list-style: none; padding: 0; margin: 8px 0 0; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; font-size: .87rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-list li.bad { color: var(--err); }
.file-list .size { color: var(--muted); white-space: nowrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); font-weight: 500 !important; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { flex-direction: row !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px !important; }
.form-foot small { color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: progress; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; font-size: .94rem; display: none; }
.alert.show { display: block; }
.alert.error { background: #fdeeee; color: #8f1d1d; }
.form-done { padding: 48px 0; }
.form-done svg { width: 44px; height: 44px; color: var(--ok); margin-bottom: 14px; }
.form-done p { color: var(--muted); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Blog-Übersicht ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.post { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.post .thumb { aspect-ratio: 3 / 2; background: var(--soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .thumb img { transform: scale(1.03); }
.post .thumb.ph { display: flex; align-items: center; justify-content: center; }
.post .thumb.ph svg { width: 70%; height: auto; }
.post h3 { font-size: 1.1rem; margin-bottom: .45em; }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.post p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Seitenkopf / Rechtstexte ---------- */
.page-head { padding: 80px 0 48px; }
.page-head p { color: var(--muted); max-width: 38em; font-size: 1.1rem; margin: 0; }
.legal { max-width: 760px; padding-bottom: 104px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal address { font-style: normal; border-left: 2px solid var(--ink); padding: 2px 0 2px 20px; margin-bottom: 1em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* ---------- Artikel ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 72px 24px 40px; }
.article .back { font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 28px; }
.article .back:hover { color: var(--ink); }
.article h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.article .intro { font-size: 1.16rem; color: var(--muted); }
.article figure { margin: 36px 0 44px; }
.article figure img { width: 100%; border-radius: var(--radius); background: var(--soft); }
.article h2 { font-size: 1.45rem; margin-top: 2em; }
.article h3 { font-size: 1.15rem; margin-top: 1.7em; }
.article ul, .article ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.article li { margin-bottom: .55em; }
.article li::marker { color: var(--accent); font-weight: 700; }
.article strong { color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.article .faq dt { font-weight: 700; color: var(--ink); margin-top: 1.1em; }
.article .faq dd { margin: .3em 0 0; color: var(--text); }
.cta-box { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 30px 0; margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-box h3 { margin: 0 0 4px; font-size: 1.2rem; }
.cta-box p { margin: 0; color: var(--muted); }
.more-posts { max-width: var(--max); margin: 0 auto; padding: 72px 24px 104px; }
.more-posts h2 { font-size: 1.3rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; font-size: .92rem; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid address { font-style: normal; line-height: 1.8; }
.site-footer .brand { margin-bottom: 14px; color: var(--ink) !important; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }
