/* ==========================================================================
   KD Design & ProtoLab – Stylesheet
   Farbwelt: Weiß + Königsblau
   ========================================================================== */

:root {
  --color-white: #ffffff;
  --color-bg-alt: #f3f6fd;
  --color-bg-alt-2: #eef2fc;
  --color-royal: #1a3fcf;
  --color-royal-dark: #0d2a99;
  --color-royal-darker: #081d6e;
  --color-royal-light: #4f6bff;
  --color-royal-pale: #e7ecfe;
  --color-text: #101426;
  --color-text-muted: #5b6478;
  --color-border: #e2e7f5;
  --shadow-sm: 0 2px 10px rgba(16, 20, 38, 0.06);
  --shadow-md: 0 12px 30px rgba(13, 42, 153, 0.12);
  --shadow-lg: 0 20px 50px rgba(13, 42, 153, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body > main {
  flex: 1 0 auto;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg-alt-2) 100%);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-royal);
  background: var(--color-royal-pale);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-royal);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Verhindert Umbruch mitten in einem Produktnamen (z. B. Maschinenname in
   Überschriften) – nur ab einer Breite, bei der die Phrase auch reinpasst,
   damit sie auf sehr schmalen Handy-Bildschirmen normal umbrechen kann
   statt abgeschnitten zu werden */
@media (min-width: 540px) {
  .nowrap-phrase {
    white-space: nowrap;
  }
}

/* Text-Highlight: hebt einzelne Begriffe in Fließtexten hervor */
.hl {
  position: relative;
  font-weight: 700;
  color: var(--color-royal-dark);
  background-image: linear-gradient(var(--color-royal-pale), var(--color-royal-pale));
  background-repeat: no-repeat;
  background-size: 100% 42%;
  background-position: 0 88%;
  padding: 0 3px;
  border-radius: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-royal-light), var(--color-royal-dark));
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: var(--color-white);
  color: var(--color-royal-dark);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-royal-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Scroll reveal ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-32px);
}
[data-animate="fade-left"].in-view {
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(32px);
}
[data-animate="fade-right"].in-view {
  transform: translateX(0);
}

[data-animate="zoom"] {
  transform: scale(0.92);
}
[data-animate="zoom"].in-view {
  transform: scale(1);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 24px rgba(13, 42, 153, 0.08);
}

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--color-text);
}

.logo__image {
  height: 58px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.4s var(--ease);
}

.header.scrolled .logo__image {
  height: 46px;
}

.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-royal-light), var(--color-royal-darker));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}

.logo:hover .logo__mark {
  transform: rotate(-8deg) scale(1.05);
}

.logo__text strong {
  color: var(--color-royal-dark);
}

.logo__sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  position: relative;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav a:hover {
  color: var(--color-royal-dark);
  background: var(--color-royal-pale);
}

.nav a.is-active {
  color: var(--color-royal-dark);
  background: var(--color-royal-pale);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.admin-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.admin-link:hover {
  color: var(--color-royal-dark);
  border-color: var(--color-royal);
  background: var(--color-royal-pale);
}

.nav-admin-link {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (Split-Screen) ---------- */
.hero-split {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.hero-split__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0 10px 10px;
}

.hero-split__text {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 64px) 56px 64px clamp(24px, 6vw, 96px);
  overflow: hidden;
}

.hero-split__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}

.blob--1 {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--color-royal-light), var(--color-royal-pale) 70%);
}

.blob--2 {
  width: 340px;
  height: 340px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle at 60% 40%, var(--color-royal-pale), transparent 70%);
  animation-delay: -6s;
  animation-duration: 20s;
}

.blob--3 {
  width: 220px;
  height: 220px;
  top: 45%;
  left: 55%;
  background: radial-gradient(circle, var(--color-royal-light), transparent 70%);
  opacity: 0.25;
  animation-delay: -3s;
  animation-duration: 14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-25px, 15px) scale(0.97); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 42, 153, 0.12) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 60% 50% at 60% 20%, black, transparent);
}

.hero-split__text-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

/* ---------- Panel: wiederverwendbare Karten-Komponente (Sections) ---------- */
.panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--color-white), var(--color-bg-alt) 130%);
  border: 1px solid rgba(26, 63, 207, 0.28);
  border-radius: var(--radius-lg);
  padding: 48px 48px 40px;
  box-shadow: 0 16px 40px rgba(13, 42, 153, 0.1);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-royal-dark), var(--color-royal-light), var(--color-royal-dark));
  opacity: 0.8;
}

.panel::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-royal-pale), transparent 70%);
  pointer-events: none;
}

.panel__photo-banner {
  margin: -48px -48px 34px;
  height: 300px;
  background-size: cover;
  background-position: center 28%;
}

.panel__divider {
  position: relative;
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, transparent, var(--color-royal) 15%, var(--color-royal) 85%, transparent);
  opacity: 0.45;
}

.hero-split__text-inner h1 {
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  line-height: 1.14;
  margin-bottom: 22px;
}

.hero-split__text-inner h1 .accent {
  background: linear-gradient(135deg, var(--color-royal), var(--color-royal-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-split__text-inner p {
  font-size: 1.08rem;
  color: var(--color-text-muted);
}

.hero-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 34px;
}

.hero-split__badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-split__badges .badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.hero-split__badges .badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-royal);
  flex-shrink: 0;
}

.hero-split__media {
  position: relative;
  z-index: 1;
  min-height: 560px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-md) 0;
  background: linear-gradient(150deg, var(--color-royal-dark), var(--color-royal) 65%, var(--color-royal-light));
}

.hero-split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 29, 110, 0.32), transparent 16%);
}

/* ---------- Hero slideshow: CAD / 3D-Druck / CNC-Fräsen im endlosen Loop ---------- */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slideshow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  z-index: 0;
}

.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.hero-slide-video.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide__tag {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 16px;
  background: rgba(8, 29, 110, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
}

/* ---------- Materialien: getrennt nach Verfahren ---------- */
.materials-rule {
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, transparent, rgba(26, 63, 207, 0.16) 15%, rgba(26, 63, 207, 0.16) 85%, transparent);
}

.materials-groups {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.materials-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.materials-group__label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-royal-dark);
}

.materials-groups__divider {
  height: 1px;
  width: 100%;
  max-width: 640px;
  background: linear-gradient(90deg, transparent, rgba(26, 63, 207, 0.28) 15%, rgba(26, 63, 207, 0.28) 85%, transparent);
}

/* Statische (nicht scrollende) Materialien-Leiste, z. B. direkt über der
   Maschinenkarte auf den Fach-Seiten */
.materials-static {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.materials-static--compact {
  margin-bottom: 0;
}

.materials-static--start {
  justify-content: flex-start;
}

.materials-static span {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-royal-dark);
}

.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.swatch--pla { background: #4caf50; }
.swatch--petg { background: #2f6bff; }
.swatch--abs { background: #ff9800; }
.swatch--tpu { background: #9c27b0; }
.swatch--alu { background: #9aa5b1; }
.swatch--kunststoff { background: #00b8b0; }
.swatch--asa { background: #e53935; }
.swatch--pet { background: #00acc1; }
.swatch--pa { background: #795548; }
.swatch--pc { background: #607d8b; }
.swatch--stahl { background: #536878; }
.swatch--edelstahl { background: #a8b8c8; }
.swatch--pa12 { background: #8d6e63; }
.swatch--pa11 { background: #558b2f; }
.swatch--pp { background: #00897b; }
.swatch--pa12gb { background: #78909c; }

/* ---------- Video frames (click-to-play) ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-royal-dark), var(--color-royal));
  border: 3px solid var(--color-royal-dark);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  isolation: isolate;
}

.video-frame__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-frame__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.92);
}

.video-frame.is-placeholder {
  cursor: default;
}

.video-frame.is-placeholder .video-frame__fallback {
  display: flex;
}

.video-frame__fallback-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseRing 3s ease-in-out infinite;
}

.video-frame__fallback-icon svg {
  width: 28px;
  height: 28px;
}

.video-frame__fallback strong {
  font-size: 1rem;
}

.video-frame__fallback span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 300px;
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18); }
  50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

.video-frame__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-royal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.video-frame:hover .video-frame__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.video-frame__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.video-frame.is-placeholder .video-frame__play {
  display: none;
}

.video-frame__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(8, 29, 110, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

.video-frame--large {
  box-shadow: var(--shadow-lg);
}

/* Portrait videos (e.g. YouTube Shorts) get a calm phone-style frame
   instead of stretching into a wide 16:9 box with black bars. */
.video-frame--portrait {
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: 26px;
}

.service-row__media--portrait {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 34px 14px 14px;
  background: linear-gradient(165deg, var(--color-royal-darker), var(--color-royal-dark));
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.service-row__media--portrait::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}



.service-row__content--media-bg {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.service-row__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.service-row__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 12, 20, 0.55);
}

.service-row__content-inner {
  position: relative;
  z-index: 2;
  padding: 40px 34px;
}

.service-row__content--media-bg .service-card__icon {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.service-row__content--media-bg h3 {
  color: #fff;
}

.service-row__content--media-bg .service-card p {
  color: rgba(255, 255, 255, 0.85);
}

.service-row__content--media-bg p {
  color: rgba(255, 255, 255, 0.85);
}

.service-row__content--media-bg .service-card__list li {
  color: #fff;
}

.service-row__content--media-bg .service-card__list svg {
  color: #fff;
}

.service-row__content--media-bg .service-card__machine {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.services-grid--media {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.services-grid--media .service-row + .service-row {
  position: relative;
}

.services-grid--media .service-row + .service-row::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 63, 207, 0.25) 15%, rgba(26, 63, 207, 0.25) 85%, transparent);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 48px;
  align-items: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* Foto + Video-Text-Karte zu einem durchgehenden, länglichen Element verschmelzen */
.services-grid--media .service-row {
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 63, 207, 0.18);
  box-shadow: 0 20px 45px rgba(13, 42, 153, 0.14);
}

.services-grid--media .service-row__content--media-bg {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Nur ab dem Punkt, an dem Foto und Inhalt nebeneinander stehen, per
   Stretch auf gleiche Höhe bringen – gestapelt (Mobile) behält das Foto
   sein eigenes Seitenverhältnis, sonst würde es auf 0 Höhe kollabieren */
@media (min-width: 981px) {
  .services-grid--media .service-row__media {
    height: 100%;
  }
}

/* ---------- Experiment: Video über die volle Kartenfläche, Foto als
   schwebende Karte obendrauf (statt zweier nebeneinander stehender Hälften) --- */
.service-row--fullbleed {
  display: block;
  position: relative;
  aspect-ratio: 2.15 / 1;
  min-height: 440px;
  overflow: hidden;
}

.service-row--fullbleed .service-row__bg-video {
  z-index: 0;
}

#leistungen-3d-druck .service-row__bg-video {
  object-position: 68% center;
}

.service-row--fullbleed .service-row__content-inner {
  padding: 40px 44px;
  max-width: 560px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Badge und Button sollen sich an ihrem eigenen Inhalt orientieren statt
   vom Flex-Container (column) auf dessen volle (bzw. verfügbare) Breite
   gestreckt/geclampt zu werden - sonst würde in der schmaleren CNC-Spalte
   entweder der Button-Text über den Rand laufen oder das Pfeil-Icon im
   Button durch die Shrink-to-fit-Berechnung verschwinden */
.service-row--fullbleed .service-card__machine,
.service-row--fullbleed .service-row__content-inner .btn {
  align-self: flex-start;
  width: max-content;
}

/* Gespiegelte Variante: Text rechtsbündig (Zebra-Muster wie zuvor) */
@media (min-width: 981px) {
  .service-row--fullbleed-reverse .service-row__content-inner {
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .service-row--fullbleed {
    aspect-ratio: auto;
    min-height: 0;
  }

  .service-row--fullbleed .service-row__content-inner {
    padding: 28px 24px 32px;
    max-width: none;
    height: auto;
  }
}

.service-row--reverse .service-row__media {
  order: 2;
}

.service-row--reverse .service-row__content {
  order: 1;
}

.service-row__content .service-card__icon {
  margin-bottom: 20px;
}

.service-row__content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--color-royal-pale), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-royal-light);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-royal), var(--color-royal-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease);
}

.service-card:hover .service-card__icon {
  transform: rotate(-6deg) scale(1.06);
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.service-card__list {
  display: grid;
  gap: 11px;
  margin-bottom: 24px;
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--color-text);
}

.service-card__list svg {
  width: 18px;
  height: 18px;
  color: var(--color-royal);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card__machine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-royal-dark);
  background: var(--color-royal-pale);
  padding: 8px 14px;
  border-radius: 999px;
}

.service-card__material {
  margin-bottom: 20px;
}

.service-card__material-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-royal-dark);
  margin-bottom: 10px;
}

.service-card__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(150deg, var(--color-royal-dark), var(--color-royal) 65%, var(--color-royal-light));
  margin: 22px 0;
}

.service-card__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  position: relative;
  padding: 0 20px;
  text-align: center;
}

.process-step__line {
  position: absolute;
  top: 30px;
  left: calc(-50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
  overflow: hidden;
}

.process-step__line span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-royal), var(--color-royal-light));
  transition: width 1s var(--ease) 0.2s;
}

.process-step.in-view .process-step__line span {
  width: 100%;
}

.process-step:first-child .process-step__line {
  display: none;
}

.process-step__num {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-royal);
  color: var(--color-royal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.process-step.in-view .process-step__num {
  background: linear-gradient(135deg, var(--color-royal), var(--color-royal-dark));
  color: #fff;
  transform: scale(1.05);
}

.process-step h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.process__cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ---------- Machines ---------- */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.machines-grid--single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

.machines-grid--triple {
  grid-template-columns: repeat(3, 1fr);
}

.machine-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-royal);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.machine-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.machine-card__visual {
  height: 340px;
  position: relative;
  background: linear-gradient(135deg, var(--color-royal-dark), var(--color-royal));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
}

.machine-card__visual .machine-visual-photo {
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
}

/* Echte Fotos (kein freigestelltes Produktbild) sollen die Fläche
   randlos ausfüllen statt mit Rand/Buchstabenbalken freizustehen */
.machine-card__visual--cover .machine-visual-photo {
  object-fit: cover;
  padding: 0;
}

/* Hintergrund je Foto passend abstimmen, damit nichts beschnitten wird
   und trotzdem kein sichtbarer Rahmen um das Bild entsteht */
.machines-grid .machine-card:nth-child(1) .machine-card__visual.has-photo,
.machines-grid .machine-card:nth-child(2) .machine-card__visual.has-photo {
  background: #f6f6f6;
}

.machines-grid--triple .machine-card__visual.has-photo {
  background: #f6f6f6;
}

.machines-grid--triple .machine-card__visual {
  height: 170px;
}

.machines-grid--triple .machine-card__body {
  text-align: center;
}

.machines-grid--triple .machine-card__visual .machine-visual-photo {
  padding: 12px;
}

.machine-card--dark .machine-card__visual.has-photo {
  background: #050505;
}

.machine-card__visual svg {
  width: 96px;
  height: 96px;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

.machine-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.machine-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.machine-card__visual.has-photo svg,
.machine-card__visual.has-photo::after {
  display: none;
}

.machine-card__body {
  padding: 30px 32px 32px;
}

.machine-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-royal);
  margin-bottom: 8px;
}

.machine-card__body h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.machine-card__subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.machine-card__body > p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.machine-specs {
  display: grid;
  gap: 12px;
}

.machine-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.machine-specs div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.machine-specs dt {
  color: var(--color-text-muted);
  font-weight: 600;
}

.machine-specs dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}


/* ---------- Highlighted blocks: shared "accent sweep" for cards ---------- */
.why-card,
.gallery-card,
.contact-card {
  position: relative;
  overflow: hidden;
}

.why-card::before,
.gallery-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-royal), var(--color-royal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.why-card:hover::before,
.gallery-card:hover::before,
.contact-card:hover::before {
  transform: scaleX(1);
}

/* ---------- Beispiele (Gallery) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background: var(--color-white);
  border: 2px solid var(--color-royal);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.gallery-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-royal-pale);
  color: var(--color-royal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.gallery-card:hover .gallery-card__icon {
  background: var(--color-royal);
  color: #fff;
}

.gallery-card__icon svg {
  width: 26px;
  height: 26px;
}

.gallery-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.gallery-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.gallery-card > .btn {
  margin-top: 16px;
}

/* ---------- Gallery-Card als nummerierte Kachel (z. B. Leistungsumfang) ---------- */
.gallery-card__icon--num {
  font-weight: 800;
  font-size: 1.05rem;
}

.gallery-card--leistung {
  position: relative;
  overflow: hidden;
  padding-right: 110px;
}

.gallery-card__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 110px;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 45%);
  mask-image: linear-gradient(90deg, transparent 0%, black 45%);
}

.gallery-card--leistung .gallery-card__head,
.gallery-card--leistung > p {
  position: relative;
}

.gallery-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.gallery-card--leistung .gallery-card__icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.gallery-card__head h3 {
  margin-bottom: 0;
}

/* ---------- Beispiele: breitere Bildfläche (ca. halbe Kastenbreite) ---------- */
.gallery-card--photo-wide {
  padding-right: 48%;
}

.gallery-card--photo-wide .gallery-card__bg {
  width: 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 40%);
  mask-image: linear-gradient(90deg, transparent 0%, black 40%);
}

/* ---------- Projektkategorien (z. B. Engineering) – breite, gleich große Reihen ---------- */
.eng-categories {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eng-category {
  background: var(--color-white);
  border: 2px solid var(--color-royal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 30px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.eng-category:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.eng-category__title {
  text-align: center;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-text);
  text-underline-offset: 6px;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.eng-category__body {
  display: flex;
  align-items: center;
  gap: 30px;
}

.eng-category__info {
  flex: 0 0 280px;
}

.eng-category__text {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.eng-category__grid {
  display: flex;
  gap: 12px;
  flex: 1;
  height: 180px;
}

.eng-thumb {
  flex: 1;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.eng-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.eng-highlight {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 44px;
  text-align: center;
}

.eng-highlight h2 {
  margin-bottom: 18px;
}

.eng-highlight p {
  max-width: 720px;
  margin: 0 auto 12px;
  color: var(--color-text-muted);
}

.eng-highlight .eng-highlight__tagline {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--color-text);
  font-size: 1.05rem;
}

/* ---------- Engineering-Hero (Split mit Foto) ---------- */
.eng-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.eng-hero__lead {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.eng-hero__sub {
  color: var(--color-text-muted);
}

.eng-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.eng-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.eng-hero__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.eng-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.eng-hero__badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-royal-pale);
  color: var(--color-royal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eng-hero__badge-icon svg {
  width: 22px;
  height: 22px;
}

.eng-hero__badge span:last-child {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.why-card {
  background: var(--color-white);
  border: 2px solid var(--color-royal);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--color-royal-pale);
  color: var(--color-royal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.why-card__icon svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ---------- Quote / Upload form ---------- */
.quote {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: flex-start;
}

.quote__info {
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-white) 120%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.quote__info h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 18px;
}

.quote__info p {
  color: var(--color-text-muted);
  margin-bottom: 34px;
}

.quote__steps {
  display: grid;
  gap: 22px;
}

.quote__steps li {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.quote__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: -22px;
  left: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-royal-light), var(--color-border));
}

.quote__steps .num {
  position: relative;
  z-index: 1;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-royal), var(--color-royal-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(13, 42, 153, 0.28);
}

.quote__steps li > div {
  padding-top: 4px;
}

.quote__steps strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.quote__steps span {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.quote-form {
  background: var(--color-white);
  border: 2px solid var(--color-royal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="password"],
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 72px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-royal-light);
  box-shadow: 0 0 0 4px var(--color-royal-pale);
}

/* Eigene Stepper-Pfeile statt der schwarzen nativen Browser-Pfeile bei
   Zahlenfeldern (Stückzahl) */
.number-stepper {
  position: relative;
}

.number-stepper input[type="number"] {
  padding-right: 40px !important;
}

.number-stepper input[type="number"]::-webkit-inner-spin-button,
.number-stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-stepper input[type="number"] {
  -moz-appearance: textfield;
}

.number-stepper__controls {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  width: 30px;
  display: flex;
  flex-direction: column;
  border-left: 1.5px solid var(--color-border);
}

.number-stepper__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-royal);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.number-stepper__btn:first-child {
  border-bottom: 1px solid var(--color-border);
}

.number-stepper__btn:hover {
  color: #fff;
  background: var(--color-royal);
}

.number-stepper__btn svg {
  width: 12px;
  height: 12px;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Festes Raster mit 4 Spalten (z. B. 8 Materialien = 2 Zeilen à 4) statt
   frei umbrechender oder scrollender Pills */
.radio-group--grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.radio-group--grid4[hidden] {
  display: none;
}

.radio-group--grid4 .radio-pill span {
  width: 100%;
  justify-content: center;
}

@media (max-width: 560px) {
  .radio-group--grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.3s var(--ease);
}

.radio-pill input:checked + span {
  background: linear-gradient(135deg, var(--color-royal), var(--color-royal-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.radio-pill input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--color-royal-pale);
}

.verfahren-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-royal), var(--color-royal-dark));
  box-shadow: var(--shadow-sm);
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  background: var(--color-bg-alt);
}

.dropzone:hover {
  border-color: var(--color-royal-light);
}

.dropzone.dragover {
  border-color: var(--color-royal);
  background: var(--color-royal-pale);
  transform: scale(1.01);
}

.dropzone__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-royal-pale);
  color: var(--color-royal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.dropzone__icon svg {
  width: 26px;
  height: 26px;
}

.dropzone strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.dropzone span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  animation: chipIn 0.35s var(--ease) both;
}

@keyframes chipIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-chip svg {
  width: 18px;
  height: 18px;
  color: var(--color-royal);
  flex-shrink: 0;
}

.file-chip__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.file-chip__size {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.file-chip__remove {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.file-chip__remove:hover {
  background: #fde2e2;
  color: #c62828;
}

.form-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn.is-loading .btn-label {
  opacity: 0.85;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: #eafbf0;
  border: 1px solid #bdeccb;
  color: #1e7b3f;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  animation: chipIn 0.4s var(--ease) both;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
  border-color: var(--color-royal-light);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  width: 20px;
  height: 20px;
  color: var(--color-royal);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 0 22px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-royal), var(--color-royal-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-card p a {
  color: var(--color-royal-dark);
  font-weight: 700;
}

.contact-card p a:hover {
  color: var(--color-royal);
  text-decoration: underline;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-royal-dark), var(--color-royal) 60%, var(--color-royal-light));
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.6;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .btn--ghost {
  background: #fff;
  color: var(--color-royal-dark);
  border-color: transparent;
}

.cta-band--center {
  flex-direction: column;
  text-align: center;
}

.cta-band__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-royal-darker);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer .logo__image {
  height: 40px;
  width: auto;
  display: block;
}

.footer .logo__sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer-about p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}

.footer h4 {
  display: inline-block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 18px;
  padding-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-royal-light);
}

@media (min-width: 981px) {
  .footer-grid > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 40px;
  }
}

.footer ul {
  display: grid;
  gap: 11px;
}

.footer a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-royal), var(--color-royal-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 900;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-4px);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: calc(var(--header-h) + 60px) 0 100px;
}

.legal .container {
  max-width: 840px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 34px 0 12px;
  padding-top: 24px;
  border-top: 2px solid var(--color-royal-pale);
  color: var(--color-text);
}

.legal h1 + h2,
.legal .legal-meta + h2 {
  padding-top: 0;
  border-top: none;
}

.legal p, .legal li {
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 20px;
  list-style: disc;
}

.legal ul ul {
  margin-top: 6px;
  margin-bottom: 6px;
}

.legal a {
  color: var(--color-royal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--color-royal);
}

.legal h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 0.92rem;
}

.legal table th,
.legal table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: top;
}

.legal table th {
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 700;
}

.legal .legal-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.placeholder {
  background: #fff6db;
  color: #7a5b00;
  border: 1px dashed #e6c95c;
  padding: 2px 6px;
  border-radius: 6px;
  font-style: normal;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .eng-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .eng-hero__media {
    order: -1;
  }

  .eng-hero__badges {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-split__row {
    grid-template-columns: 1fr;
  }

  .hero-split__text {
    padding: calc(var(--header-h) + 48px) 24px 40px;
  }

  .hero-split__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .quote,
  .services-grid,
  .service-row,
  .machines-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .machines-grid--triple {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid--media {
    gap: 44px;
  }

  .services-grid--media .service-row + .service-row::before {
    top: -22px;
  }

  .service-row {
    gap: 26px;
  }

  .why-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eng-category__body {
    gap: 22px;
  }

  .eng-category__info {
    flex-basis: 220px;
  }

  .eng-category__grid {
    height: 150px;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 50px;
  }

  .process-step:nth-child(3) .process-step__line {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header__back span {
    display: none;
  }
}

/* Fünf Nav-Punkte + Logo + CTA-Button passen erst ab hier nebeneinander in
   eine Zeile – darunter übernimmt das Hamburger-Menü. */
@media (max-width: 1130px) {
  .nav,
  .header__actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header__actions {
    gap: 10px;
  }

  .header__actions .admin-link {
    display: none;
  }

  .nav-admin-link {
    display: block;
  }

  .nav.mobile-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 28px;
    box-shadow: 0 16px 30px rgba(13, 42, 153, 0.12);
    border-top: 1px solid var(--color-border);
  }

  .nav.mobile-open a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .eng-hero__badges {
    grid-template-columns: 1fr;
  }

  .machine-specs div {
    flex-direction: column;
    gap: 2px;
  }

  .machine-specs dd {
    text-align: left;
  }

  .panel {
    padding: 26px 20px 22px;
    border-radius: var(--radius-md);
  }

  .panel__photo-banner {
    margin: -26px -20px 24px;
    height: 190px;
  }

  .panel__divider {
    margin: 28px 0;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero-split__actions .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 26px;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 44px 28px;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process-step__line {
    display: none !important;
  }

  .why-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .machines-grid--triple {
    grid-template-columns: 1fr;
  }

  .eng-category__body {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .eng-category__info {
    flex: none;
  }

  .eng-category__grid {
    height: 130px;
  }

  .faq-item {
    padding: 0 18px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Admin-Panel
   ========================================================================== */

.header__back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.header__back svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header__back:hover {
  color: var(--color-royal-dark);
}

.admin-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
}

.admin-page-main {
  display: flex;
  flex-direction: column;
}

.admin-page {
  overflow: hidden;
  flex: 1;
}

.admin-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.admin-page__bg .grid-overlay {
  mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 15%, black 85%, transparent);
}

.admin-page__bg .blob--3 {
  top: auto;
  bottom: 10%;
  left: 62%;
  opacity: 0.4;
}

.admin-page > .container {
  position: relative;
  z-index: 1;
}

.admin-login {
  display: flex;
  justify-content: center;
}

.admin-login[hidden] {
  display: none;
}

.admin-login__panel {
  max-width: 440px;
  width: 100%;
}

.admin-login__hint {
  color: var(--color-text-muted);
  margin: 8px 0 24px;
}

.admin-login__panel form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-error {
  color: #b3261e;
  background: #fbeaea;
  border: 1px solid #f0c4c1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.admin-dashboard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.admin-dashboard__updated {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.admin-dashboard__updated::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2ea043;
}

.admin-panel {
  padding: 32px;
}

.admin-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.admin-sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.admin-sidebar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-royal-pale);
  color: var(--color-royal-dark);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.admin-sidebar__icon svg {
  width: 18px;
  height: 18px;
}

.admin-sidebar__label {
  flex: 1;
}

.admin-sidebar__item:hover {
  border-color: var(--color-royal-light);
}

.admin-sidebar__item.is-active {
  background: var(--color-royal);
  border-color: var(--color-royal);
  color: var(--color-white);
}

.admin-sidebar__item.is-active .admin-sidebar__icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding-left: 32px;
  border-left: 1px solid var(--color-border);
}

.admin-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-royal-pale);
  color: var(--color-royal-dark);
  font-size: 0.78rem;
}

.admin-sidebar__item.is-active .admin-tab__count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

@media (max-width: 760px) {
  .admin-panel {
    padding: 20px;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    position: static;
  }

  .admin-sidebar__item {
    flex: 1 1 auto;
  }

  .admin-sidebar__label {
    display: none;
  }

  .admin-main {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
  }
}

.admin-status {
  color: var(--color-text-muted);
  padding: 24px 0;
}

.admin-status.is-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 56px 24px;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.admin-status.is-empty::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-royal-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3fcf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.admin-orders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-order-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.admin-order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-order-card__head h3 {
  margin: 0 0 4px;
}

.admin-order-card__head time {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.admin-order-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 20px;
  margin: 0 0 14px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.admin-order-card__meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.admin-order-card__meta dd {
  margin: 0;
  font-weight: 600;
}

.admin-order-card__message {
  color: var(--color-text);
  margin: 0 0 14px;
  white-space: pre-wrap;
}

.admin-order-card__files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-royal-dark);
  text-decoration: none;
}

.admin-file-chip:hover {
  border-color: var(--color-royal-light);
}

.admin-file-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-file-chip__size {
  color: var(--color-text-muted);
  font-weight: 400;
}

.admin-order-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.btn-mini {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-mini:hover {
  border-color: var(--color-royal-light);
  color: var(--color-royal-dark);
}

.btn-mini--danger {
  color: #b3261e;
}

.btn-mini--danger:hover {
  border-color: #e0918c;
  background: #fbeaea;
}

.admin-move-select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-edit-form .form-grid {
  margin-bottom: 0;
}

.admin-edit-form__actions {
  display: flex;
  gap: 10px;
}
