/*
Theme Name: AVNTIX CAD & 3D-Druck
Theme URI: https://avntix.de
Author: AVNTIX
Description: Visuell bearbeitbares Block-Theme für CAD-Konstruktion und 3D-Druck.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: avntix
*/

:root {
  --av-ink: #050817;
  --av-ink-soft: #0b1026;
  --av-paper: #f3f5f7;
  --av-paper-blue: #e8edf3;
  --av-text: #111629;
  --av-muted: #687087;
  --av-line: rgba(17, 22, 41, .16);
  --av-line-light: rgba(255, 255, 255, .16);
  --av-cyan: #21d8ff;
  --av-blue: #1463ff;
  --av-violet: #7457ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--av-ink); }
body { margin: 0; background: var(--av-paper); color: var(--av-text); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wp-site-blocks { padding: 0; }
.wp-block-group, .wp-block-columns { margin-block-start: 0; }
.wp-block-image { margin: 0; }

.site-header { min-height: 76px; padding: 10px clamp(22px, 4vw, 68px); border-bottom: 1px solid var(--av-line-light); background: rgba(5, 8, 23, .94); color: white; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); }
.site-header > .wp-block-group__inner-container { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-header .brand { width: 184px; height: 48px; overflow: hidden; }
.site-header .brand img { width: 184px; height: 48px; object-fit: cover; object-position: center; }
.site-nav { display: flex; justify-content: center; gap: 30px; color: #bec7df; font-size: 12px; white-space: nowrap; }
.site-nav a:hover { color: var(--av-cyan); }
.header-cta { justify-self: end; padding: 13px 16px; background: var(--av-cyan); color: var(--av-ink); font-size: 12px; font-weight: 750; }

.hero { min-height: calc(100vh - 76px); padding: clamp(52px, 6vw, 92px) clamp(22px, 4vw, 68px) 56px; display: grid !important; grid-template-columns: minmax(0, .93fr) minmax(470px, 1.07fr); gap: clamp(38px, 5vw, 84px); align-items: center; background: linear-gradient(135deg, #f5f7fa, #edf1f7); }
.hero > .wp-block-column { min-width: 0; }
.eyebrow { margin: 0 0 24px !important; display: flex; align-items: center; gap: 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.hero h1 { margin: 0 0 28px; font-size: clamp(54px, 6.7vw, 106px); line-height: .89; letter-spacing: -.073em; font-weight: 625; }
.hero h1 strong { display: block; color: transparent; -webkit-text-stroke: 1.4px var(--av-text); font-weight: inherit; }
.hero-lead { max-width: 680px; margin: 0 0 14px; font-size: clamp(20px, 1.65vw, 27px); line-height: 1.35; font-weight: 610; letter-spacing: -.025em; }
.hero-detail { max-width: 620px; margin: 0; color: #596176; font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px !important; }
.av-button { min-height: 50px; padding: 14px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; font-size: 13px; font-weight: 720; transition: transform .2s ease; }
.av-button:hover { transform: translateY(-2px); }
.av-button-primary { background: var(--av-blue); color: white; }
.av-button-ghost { border: 1px solid var(--av-line); }
.hero-facts { margin: 58px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--av-line); }
.hero-facts div { padding: 17px 16px 0 0; border-right: 1px solid var(--av-line); }
.hero-facts div:nth-child(2), .hero-facts div:last-child { padding-left: 16px; }
.hero-facts div:last-child { border-right: 0; }
.hero-facts span { display: block; margin-bottom: 10px; color: var(--av-blue); font: 10px ui-monospace, monospace; }
.hero-facts p { margin: 0; font-size: 12px; line-height: 1.4; }
.hero-visual { position: relative; min-height: 620px; background: var(--av-ink); overflow: hidden; box-shadow: 0 35px 80px rgba(5, 8, 23, .2); }
.hero-visual .wp-block-image, .hero-visual img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.hero-visual::after { content: "Neu konstruiert, statt alles neu zu kaufen."; position: absolute; left: 22px; bottom: 20px; z-index: 2; max-width: 180px; color: white; font-size: 14px; line-height: 1.45; }
.visual-meta { position: absolute; top: 20px; left: 22px; right: 22px; z-index: 3; display: flex; justify-content: space-between; color: #b7c5e7; font: 9px ui-monospace, monospace; letter-spacing: .14em; }
.visual-chip { position: absolute; top: 52px; right: 22px; z-index: 3; padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); background: rgba(5,8,23,.64); color: var(--av-cyan); font: 9px ui-monospace, monospace; letter-spacing: .1em; }

.capability-strip { min-height: 64px; padding: 21px clamp(22px, 4vw, 68px); background: var(--av-cyan); color: var(--av-ink); font: 10px ui-monospace, monospace; letter-spacing: .11em; text-align: center; text-transform: uppercase; word-spacing: 1.2em; }
.av-section { padding: clamp(88px, 10vw, 158px) clamp(22px, 4vw, 68px); }
.section-heading { margin-bottom: 66px; display: grid !important; grid-template-columns: 1fr minmax(300px, 480px); gap: 50px; align-items: end; }
.section-heading h2, .feature-copy h2, .process-title h2, .faq-title h2, .request-copy h2 { margin: 0; max-width: 950px; font-size: clamp(44px, 5.5vw, 82px); line-height: .95; letter-spacing: -.061em; font-weight: 590; }
.section-heading > .wp-block-column:last-child p { margin: 0 0 6px; color: var(--av-muted); font-size: 15px; line-height: 1.75; }
.value-grid { border-top: 1px solid var(--av-line); border-bottom: 1px solid var(--av-line); gap: 0 !important; }
.value-card { min-height: 330px; padding: 28px clamp(24px, 3vw, 44px); border-right: 1px solid var(--av-line); }
.value-grid > .wp-block-column:last-child .value-card { border-right: 0; }
.card-number { color: var(--av-blue); font: 10px ui-monospace, monospace; }
.value-card h3 { margin: 110px 0 16px; max-width: 320px; font-size: clamp(22px, 2vw, 31px); line-height: 1.1; letter-spacing: -.04em; }
.value-card p { margin: 0; color: var(--av-muted); font-size: 14px; line-height: 1.7; }

.feature-split { min-height: 730px; display: grid !important; grid-template-columns: 1.05fr .95fr; gap: 0 !important; background: var(--av-ink); color: white; }
.feature-image, .feature-image .wp-block-image, .feature-image img { min-height: 680px; height: 100%; }
.feature-image img { width: 100%; object-fit: cover; }
.feature-copy { padding: clamp(70px, 8vw, 130px); align-self: center; }
.feature-copy > p:not(.eyebrow) { color: #aab5ce; line-height: 1.75; }
.feature-list { margin-top: 42px; padding: 0; list-style: none; border-top: 1px solid var(--av-line-light); }
.feature-list li { padding: 17px 0; border-bottom: 1px solid var(--av-line-light); color: #d4daf0; font-size: 13px; }
.feature-list b { margin-right: 20px; color: var(--av-cyan); font: 10px ui-monospace, monospace; }

.projects { background: var(--av-paper-blue); }
.project-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { background: white; }
.project-card img { width: 100%; aspect-ratio: 1 / .78; object-fit: cover; }
.project-card-copy { padding: 18px 20px 24px; }
.project-card-copy p { margin: 0 0 7px; color: var(--av-blue); font: 9px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.project-card-copy h3 { margin: 0; font-size: 21px; letter-spacing: -.03em; }

.services { background: var(--av-ink); color: white; }
.services .section-heading p { color: #9ca8c2 !important; }
.service-grid { gap: 0 !important; border-top: 1px solid var(--av-line-light); border-bottom: 1px solid var(--av-line-light); }
.service-card { min-height: 390px; padding: 30px clamp(24px, 3vw, 44px); border-right: 1px solid var(--av-line-light); }
.service-grid > .wp-block-column:last-child .service-card { border-right: 0; }
.service-card h3 { margin: 125px 0 18px; font-size: 31px; letter-spacing: -.04em; }
.service-card p { color: #aab5ce; line-height: 1.7; }
.service-card small { color: var(--av-cyan); font: 9px ui-monospace, monospace; letter-spacing: .09em; }

.process { display: grid !important; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 130px); }
.process-title { align-self: start; position: sticky; top: 120px; }
.process-title > p:last-child { margin-top: 26px; color: var(--av-muted); line-height: 1.75; }
.process-list { border-top: 1px solid var(--av-line); }
.process-step { padding: 28px 0; border-bottom: 1px solid var(--av-line); }
.process-step > .wp-block-group__inner-container { display: grid; grid-template-columns: 46px minmax(160px, .7fr) 1.3fr; gap: 20px; }
.process-step h3, .process-step p { margin: 0; }
.process-step h3 { font-size: 20px; letter-spacing: -.025em; }
.process-step p { color: var(--av-muted); font-size: 13px; line-height: 1.65; }

.faq { display: grid !important; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 8vw, 130px); background: white; }
.faq details { padding: 24px 0; border-bottom: 1px solid var(--av-line); }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.faq details p { margin: 16px 0 0; max-width: 760px; color: var(--av-muted); line-height: 1.7; }

.request-section { padding: clamp(82px, 10vw, 148px) clamp(22px, 4vw, 68px); display: grid !important; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 130px); background: var(--av-ink-soft); color: white; }
.request-copy { align-self: start; position: sticky; top: 120px; }
.request-copy > p:not(.eyebrow) { margin-top: 28px; color: #aab5ce; line-height: 1.75; }
.request-note { margin-top: 34px; padding: 18px; border-left: 2px solid var(--av-cyan); background: rgba(255,255,255,.04); }
.request-note strong { display: block; margin-bottom: 7px; font-size: 12px; }
.request-note p { margin: 0; color: #9ca7c2; font-size: 12px; line-height: 1.6; }

.inquiry-form { padding: clamp(24px, 4vw, 48px); background: var(--av-paper); color: var(--av-text); box-shadow: 16px 16px 0 var(--av-blue); }
.form-heading { margin-bottom: 28px; padding-bottom: 20px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--av-line); }
.form-heading span { color: var(--av-blue); font: 10px ui-monospace, monospace; letter-spacing: .12em; }
.form-heading p { margin: 0; color: var(--av-muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 8px; }
.form-grid label > span, .upload-field > div:first-child > span { font-size: 12px; font-weight: 680; }
.form-full { grid-column: span 2; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; border: 1px solid var(--av-line); border-radius: 0; background: white; color: var(--av-text); outline: 0; }
.form-grid input, .form-grid select { height: 48px; padding: 0 13px; }
.form-grid textarea { padding: 13px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--av-blue); box-shadow: 0 0 0 2px rgba(20,99,255,.1); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.upload-field { margin-top: 22px; padding: 20px; border: 1px dashed rgba(20,99,255,.42); background: rgba(20,99,255,.04); }
.upload-field p { margin: 6px 0 14px; color: var(--av-muted); font-size: 11px; line-height: 1.5; }
.upload-field input[type=file] { max-width: 100%; font-size: 12px; }
.file-list { margin-top: 10px; color: var(--av-muted); font-size: 11px; }
.consent { margin: 20px 0; display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #5f677a; font-size: 11px; line-height: 1.5; }
.consent a { color: var(--av-blue); text-decoration: underline; }
.submit-button { width: 100%; min-height: 56px; padding: 0 20px; border: 0; display: flex; align-items: center; justify-content: space-between; background: var(--av-cyan); color: var(--av-ink); cursor: pointer; font-size: 13px; font-weight: 760; }
.form-status { margin: 0 0 18px; padding: 12px; font-size: 12px; line-height: 1.5; }
.form-status--success { background: #dff6e8; color: #14552d; }
.form-status--error { background: #ffe4e4; color: #7b1c1c; }

.site-footer { padding: 62px clamp(22px, 4vw, 68px) 28px; background: #030510; color: white; border-top: 1px solid var(--av-line-light); }
.footer-top { display: grid !important; grid-template-columns: 1.4fr .7fr 1fr; gap: 50px; }
.footer-brand figure { width: 210px; height: 60px; overflow: hidden; }
.footer-brand img { width: 210px; height: 60px; object-fit: cover; object-position: center; }
.footer-brand p { max-width: 430px; margin: 18px 0 0; color: #8995b0; font-size: 12px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
.footer-links p { margin: 0 0 7px; color: var(--av-cyan); font: 9px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { color: #b8c2da; }
.footer-bottom { margin-top: 28px !important; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid var(--av-line-light); color: #737f9b; font: 9px ui-monospace, monospace; letter-spacing: .1em; }

.legal-page { min-height: calc(100vh - 76px); padding: clamp(70px, 9vw, 130px) 24px; background: var(--av-paper); }
.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content h1 { margin: 0 0 16px; font-size: clamp(58px, 9vw, 112px); line-height: .9; letter-spacing: -.07em; }
.legal-content h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -.035em; }
.legal-content p { color: #565e71; font-size: 15px; line-height: 1.78; }
.legal-content a { color: var(--av-blue); text-decoration: underline; }
.legal-warning { margin: 38px 0 54px; padding: 22px; border-left: 3px solid #e09b00; background: #fff4d5; }
.legal-warning strong { display: block; margin-bottom: 6px; }
.legal-warning p { margin: 0; color: #6a531d; font-size: 13px; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual, .hero-visual .wp-block-image, .hero-visual img { min-height: 560px; }
  .feature-split { grid-template-columns: 1fr; }
  .service-card, .value-card { border-right: 0; border-bottom: 1px solid var(--av-line); }
  .project-grid > .wp-block-group__inner-container { grid-template-columns: repeat(2, 1fr); }
  .process, .request-section { grid-template-columns: 1fr; }
  .process-title, .request-copy { position: static; }
}

@media (max-width: 780px) {
  .site-header { min-height: 68px; grid-template-columns: 1fr auto; }
  .site-header .brand img { width: 142px; height: 42px; }
  .site-nav { display: none; }
  .header-cta { padding: 11px 12px; }
  .hero { min-height: auto; padding-top: 58px; }
  .hero h1 { font-size: clamp(52px, 14.5vw, 78px); }
  .hero-visual, .hero-visual .wp-block-image, .hero-visual img { min-height: 420px; }
  .section-heading, .faq { grid-template-columns: 1fr; }
  .project-grid > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .av-button { justify-content: space-between; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div:nth-child(2), .hero-facts div:last-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--av-line); display: grid; grid-template-columns: 38px 1fr; }
  .hero-visual, .hero-visual .wp-block-image, .hero-visual img { min-height: 330px; }
  .process-step > .wp-block-group__inner-container { grid-template-columns: 34px 1fr; }
  .process-step p { grid-column: 2; }
  .inquiry-form { box-shadow: 9px 9px 0 var(--av-blue); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }
