@charset "utf-8";
/* Fahnen-Konfigurator – modernisiertes UI */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --brand: #c01100;
  --brand-dark: #910c00;
  --brand-light: #ef3a26;
  --brand-soft: #fde8e5;
  --accent: #4e86dc;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --text: #1f2937;
  --text-soft: #6b7280;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --success: #10b981;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --t: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

body {
  background: linear-gradient(180deg, #fafbff 0%, var(--bg) 100%);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

form {
  text-align: left;
  height: auto;
}

/* ======= Layout-Container ======= */
html, body {
  width: 100%;
  overflow-x: hidden;
  /* kein extra body-padding: der iFrame bestimmt die Breite */
}

body { margin: 0; padding: 0; }

.fkbox {
  position: relative;
  left: 0; right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 560px;
  padding: 0;
  display: flex;
  gap: 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  /* overflow:hidden entfernt – würde Bootstrap-Modals (position:fixed) im iframe blockieren */
  overflow: visible;
}

/* Desktop ≥ 1024px: side-by-side */
@media (min-width: 1024px) {
  .fkbox { flex-direction: row; }
}

/* Tablet 768–1023px: side-by-side aber enger */
@media (min-width: 768px) and (max-width: 1023px) {
  .fkbox { flex-direction: row; }
}

/* Mobile < 768px: stapeln */
@media (max-width: 767px) {
  .fkbox { flex-direction: column; min-height: auto; width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
}

.fkleftcontent {
  float: none !important;
  flex: 1;
  padding: 20px 22px 20px !important;
  min-width: 0;
  overflow: hidden;
}

.fkleftbox {
  height: auto !important;
  padding-right: 0;
}

.fkleftuppercontent {
  height: auto;
  width: 100%;
  margin-bottom: 0;
}

.wrapper {
  width: 100%;
  font-family: inherit;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

/* ======= Step-Bar / Tabs ======= */
.tabs {
  width: 100%;
  list-style: none;
  position: relative;
  text-align: left;
  float: left;
  padding: 0;
  margin: 0 0 28px;
  background: transparent;
  height: auto;
  display: flex;
  gap: 8px;
}

.tabs li {
  flex: 1;
  float: none;
  display: block;
  font-size: 12px;
  border: none !important;
  position: relative;
  z-index: 1;
}

.tabs li:first-child,
.tabs li:last-child { border: none !important; }

.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  color: var(--text-soft);
  padding: 11px 8px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: all .25s var(--t);
  position: relative;
  min-height: 44px;
  line-height: 1.25;
}

.tabs a::before {
  content: "";
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 12px;
  margin-right: 8px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: all .25s var(--t);
}

.tabs li:nth-child(1) a::before { content: "1"; }
.tabs li:nth-child(2) a::before { content: "2"; }
.tabs li:nth-child(3) a::before { content: "3"; }
.tabs li:nth-child(4) a::before { content: "4"; }
.tabs li:nth-child(5) a::before { content: "5"; }

.tabs a:hover {
  color: var(--brand);
  background: var(--surface);
  border-color: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.tabs a.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(192, 17, 0, .28);
  transform: translateY(-1px);
}

.tabs a.active::before {
  background: rgba(255, 255, 255, .25);
  color: #fff;
  border-color: transparent;
}

.tabgroup div { padding: 0; }

/* Smooth fade-in pro Step */
#tab1, #tab2, #tab3, #tab4, #tab5 {
  animation: fadeUp .35s var(--t) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======= Headlines & Hinweistexte ======= */
.fktitle {
  padding-left: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 4px 0 12px;
}

#tab1 > .col-md-12,
#tab2 > .col-md-12,
#tab3 > div[align="center"],
#tab4 {
  font-size: 15px;
  color: var(--text);
}

/* ======= Zurück / Weiter Buttons ======= */
.zurueck {
  background: var(--surface-2) !important;
  width: auto !important;
  min-width: 120px !important;
  height: auto !important;
  text-align: center !important;
  color: var(--text) !important;
  margin-top: 6px !important;
  padding: 10px 22px !important;
  float: left !important;
  cursor: pointer !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border: 1px solid var(--border) !important;
  transition: all .2s var(--t) !important;
  display: inline-block !important;
}
.zurueck:hover {
  background: var(--surface) !important;
  border-color: var(--brand-soft) !important;
  color: var(--brand) !important;
  transform: translateX(-2px);
}
.zurueck::before {
  content: "←  ";
  font-weight: 700;
  margin-right: 4px;
}

/* Navigationszeile mit Zurück links + Weiter rechts */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 4px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.step-weiter {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(192, 17, 0, .25);
  transition: all .2s var(--t);
  letter-spacing: .01em;
}
.step-weiter:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(192, 17, 0, .35);
}
.step-weiter::after { content: "  →"; }

.weiter {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  width: 100% !important;
  height: auto !important;
  text-align: center !important;
  color: #fff !important;
  margin-top: 8px !important;
  padding: 10px 16px !important;
  float: right !important;
  bottom: 0 !important;
  cursor: pointer !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(192, 17, 0, .25) !important;
  transition: all .2s var(--t) !important;
}
.weiter:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(192, 17, 0, .35) !important;
}

/* ======= Auswahl-Karten (Radio-Cards) ======= */
.labl {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.labl > input {
  visibility: hidden;
  position: absolute;
}

.labl > input + div {
  cursor: pointer;
  border: 2px solid var(--border) !important;
  background: var(--surface) !important;
  filter: none !important;
  text-align: center;
  border-radius: var(--radius);
  padding: 18px 14px;
  transition: all .25s var(--t);
  position: relative;
  overflow: hidden;
  height: 100%;
  color: var(--text);
}

.labl > input:checked + div {
  background-color: var(--surface) !important;
  border: 2px solid var(--brand) !important;
  box-shadow: 0 10px 28px rgba(192, 17, 0, .15), 0 2px 6px rgba(15, 23, 42, .06);
  transform: translateY(-2px);
}

.labl > input:checked + div::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  animation: pop .3s var(--t);
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.labl > input:hover + div {
  background-color: var(--surface) !important;
  border-color: var(--brand-soft) !important;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Info-Edge */
.infoedge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  color: var(--accent);
  background: var(--surface);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  transition: all .2s var(--t);
}
.infoedge:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

/* ======= Step 1 – Typ ======= */
.firstcontent { float: none; padding-left: 0; background: none; border: none; }

/* Gleiche Höhe für alle Typ-Karten via Flexbox */
.typ-equal-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 0 !important;
}
/* Label-Breite: 4 Spalten minus gap */
.typ-equal-row > .labl {
  flex: 0 0 calc(25% - 8px) !important;
  width: calc(25% - 8px) !important;
  max-width: calc(25% - 8px) !important;
  min-width: 120px;
  float: none !important;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
}
/* Inneres Card-Div: streckt sich zur längsten Karte */
.typ-equal-row > .labl > input + div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 767px) {
  .typ-equal-row > .labl {
    flex: 0 0 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
  }
}

.typeimg {
  height: 190px;
  margin-bottom: 10px;
  object-fit: contain;
  width: 100%;
  transition: transform .3s var(--t);
}

.labl > input:hover + div .typeimg,
.labl > input:checked + div .typeimg {
  transform: scale(1.03);
}

/* ======= Step 2 – Größe ======= */
.sizeheader {
  background: linear-gradient(135deg, var(--surface-2), #e9ecf3);
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
}

.sizebuttons {
  float: left !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin-bottom: 12px !important;
}

.sizebuttonsinner {
  height: 100% !important;
  padding: 18px 22px !important;
  font-size: 15px !important;
  font-weight: 600;
}

.customsize {
  float: left !important;
  padding: 0 !important;
  background: var(--surface) !important;
  filter: none !important;
  border: 1px solid var(--border) !important;
  padding: 18px !important;
  font-size: 14px !important;
  border-radius: var(--radius);
}

.customsizeinput {
  visibility: visible;
  width: 70px;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s var(--t);
}
.customsizeinput:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ======= Step 3 – Material ======= */
.materialbox {
  float: left !important;
  background: none !important;
  border: none !important;
  padding: 8px !important;
}

.materialboxcontent {
  height: 100% !important;
  padding: 22px 18px !important;
  font-size: 15px !important;
  font-weight: 600;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.materialboxcontent > div {
  font-weight: 500 !important;
  font-size: 12px !important;
  color: var(--text-soft);
  margin-top: 6px;
}

/* ======= Step 4 – Optionen ======= */
.optionsbox {
  float: left !important;
  background: none !important;
  border: none !important;
  padding: 8px !important;
}

.optionscontent {
  height: 100% !important;
  padding: 20px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 600;
}

.optionscontent img {
  height: 170px !important;
  margin-bottom: 16px !important;
  object-fit: contain;
}

.infoboxoptions,
.infobox {
  position: absolute !important;
  right: 10px !important;
  top: 10px !important;
  padding: 4px 12px !important;
  background: var(--accent) !important;
  z-index: 99 !important;
  color: #fff !important;
  text-align: center !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ======= Step 5 – Upload (modern, drag&drop) ======= */
#tab5 { padding-top: 10px !important; }

.upload-stage {
  max-width: 580px;
  margin: 12px auto 0;
  width: 100%;
}

.upload-intro {
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 18px;
  line-height: 1.55;
}
.upload-intro strong { color: var(--text); font-weight: 600; }
.upload-intro a { color: var(--brand); text-decoration: none; font-weight: 600; }
.upload-intro a:hover { text-decoration: underline; }

.dropzone {
  border: 2.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all .3s var(--t);
  overflow: hidden;
}

.dropzone:hover,
.dropzone.is-hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: scale(1.01);
  box-shadow: 0 14px 32px rgba(192, 17, 0, .18);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform .3s var(--t);
}

.dropzone:hover .dropzone-icon,
.dropzone.is-dragover .dropzone-icon {
  transform: translateY(-4px) scale(1.05);
  animation: bob 1.4s ease-in-out infinite;
}

@keyframes bob {
  0%,100% { transform: translateY(-4px) scale(1.05); }
  50%     { transform: translateY(-10px) scale(1.05); }
}

.dropzone-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.dropzone-title strong { color: var(--brand); }

.dropzone-hint {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* Upload-Status (Progress / Preview / Success / Error) */
.upload-status {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: none;
  animation: fadeUp .3s var(--t);
}
.upload-status.is-active { display: block; }

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

.upload-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 22px;
}
.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-info {
  flex: 1;
  min-width: 0;
}
.upload-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}
.upload-meta .ok { color: var(--success); font-weight: 600; }
.upload-meta .err { color: var(--brand); font-weight: 600; }

.upload-cancel {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .2s var(--t);
}
.upload-cancel:hover { color: var(--brand); background: var(--brand-soft); }

.progress-track {
  margin-top: 12px;
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 999px;
  transition: width .15s linear;
  position: relative;
}
.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.upload-status.is-success .progress-bar { background: var(--success); }
.upload-status.is-success .progress-bar::after { display: none; }
.upload-status.is-error   .progress-bar { background: var(--brand); }
.upload-status.is-error   .progress-bar::after { display: none; }

.upload-status.is-success .upload-thumb {
  background: #d1fae5;
  color: var(--success);
}

/* Erfolgs-Checkmark Animation */
.success-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  animation: pop .35s var(--t);
}

/* Abgerundete Ecken direkt auf die Flex-Kinder (wegen overflow:visible auf fkbox) */
.fkleftcontent {
  border-radius: 12px 0 0 12px;
}
.sidebar-summary {
  border-radius: 0 12px 12px 0;
}
@media (max-width: 767px) {
  .fkleftcontent { border-radius: 12px 12px 0 0; }
  .sidebar-summary { border-radius: 0 0 12px 12px; }
}

/* ======= Übersicht (rechte Sidebar) ======= */
.sidebar-summary {
  width: 248px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #fafbff, var(--surface-2));
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Tablet: etwas schmaler */
@media (min-width: 768px) and (max-width: 1023px) {
  .sidebar-summary { width: 216px; }
}

/* Mobile: volle Breite */
@media (max-width: 767px) {
  .sidebar-summary { width: 100%; border-left: none; border-top: 1px solid var(--border); }
}

.sidebar-summary .summary-head {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2c3142, #1a1f2c);
}

.summary-list { padding: 6px 10px 0; }

.summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px !important;
  border-bottom: 1px dashed var(--border) !important;
  transition: background .2s var(--t);
  border-radius: 8px;
  margin: 2px 0;
  min-width: 0;
}
.summary-row:hover { background: var(--surface); }
.summary-row .summary-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-soft);
  font-weight: 700;
  transition: all .2s var(--t);
  line-height: 1;
}
.summary-row.is-done .summary-icon {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.summary-row.is-active .summary-icon {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-soft);
  box-shadow: none;
}
.summary-row.is-active.is-done .summary-icon {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.summary-row.is-active {
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}
.summary-row.is-active.is-done .summary-label {
  color: var(--brand);
}
.summary-row.is-active .uebersicht_element {
  color: #4b5563;
}
.summary-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.summary-row .summary-label {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  flex: 0 0 auto;
}
.summary-row .uebersicht_element {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  max-width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.summary-row .uebersicht_element.summary-missing,
.summary-row .summary-missing {
  color: #94a3b8;
  font-weight: 600;
}

a.nostyle { text-decoration: none; color: inherit; display: block; }

/* Preise */
.price-block {
  margin: 12px 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-soft);
  margin: 4px 0;
}
.price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.price-total-label { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.price-total-value { font-size: 24px; font-weight: 700; color: var(--text); }

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-top: 8px;
}
.qty-row label { font-size: 12px; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
.qty-row select {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--t);
}
.qty-row select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.delivery-info {
  margin: 10px 14px 0;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}
.delivery-info i { color: var(--brand); }

.tax-note {
  text-align: right;
  font-size: 11px;
  color: var(--text-soft);
  padding: 6px 14px 0;
}

.cta-wrap {
  padding: 14px;
  margin-top: auto;
}
.cta-button {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(5, 150, 105, .28);
  transition: all .2s var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.cta-button span {
  display: inline-block;
}
.cta-button.is-multiline {
  white-space: normal;
  line-height: 1.15;
  gap: 8px;
}
.cta-button.is-multiline span {
  text-align: center;
}
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(5, 150, 105, .4);
}
.cta-button:disabled {
  background: #cbd5e1;
  color: var(--text-soft);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.cta-disabled-hint {
  width: 100%;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
  margin-bottom: 8px;
}

/* ======= Loader-Overlay (beim Submit) ======= */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn .2s var(--t);
}
.loader-overlay.is-active { display: flex; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ======= Modale – z-index + schönes Design ======= */

/* Garantiert über allem, auch im iframe */
.modal       { z-index: 99999 !important; }
.modal-backdrop { z-index: 99998 !important; background: rgba(15,23,42,.55) !important; backdrop-filter: blur(3px); }

.modal-dialog {
  max-width: 680px;
  margin: 40px auto;
  animation: modalSlideIn .3s var(--t);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content {
  border-radius: 18px;
  border: none;
  box-shadow: 0 24px 64px rgba(15,23,42,.22), 0 2px 8px rgba(15,23,42,.08);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #1a1f2c 0%, #2c3142 100%);
  padding: 18px 22px;
  align-items: center;
}
.modal-header span {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: .01em;
}
.modal-header .close {
  font-size: 22px;
  font-weight: 300;
  color: rgba(255,255,255,.7);
  opacity: 1;
  transition: color .2s var(--t), transform .2s var(--t);
  text-shadow: none;
}
.modal-header .close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  background: var(--surface);
}
.modal-body img.img-fluid {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.modal-body b { color: var(--brand); }

@media (min-width: 1000px) {
  .modal-dialog { max-width: max-content !important; }
}

/* ======= Anfrageformular ======= */
.anfragebutton {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  filter: none !important;
  box-shadow: 0 6px 16px rgba(192, 17, 0, .25);
  border: none;
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--t);
}
.anfragebutton:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(192, 17, 0, .35);
}

input[type=submit] {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  filter: none;
  height: auto;
  width: 100%;
  position: relative;
  bottom: auto;
  color: #fff;
  text-align: center;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--t);
  box-shadow: 0 6px 16px rgba(192, 17, 0, .25);
}
input[type=submit]:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(192, 17, 0, .35); }
input[type=submit]:disabled {
  background: var(--surface-2);
  color: var(--text-soft);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  transition: all .2s var(--t);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ======= Tablet (768–1023px): kompakter, side-by-side ======= */
@media (min-width: 768px) and (max-width: 1023px) {
  .fkleftcontent { padding: 16px 16px 16px !important; }
  .tabs { gap: 4px; margin-bottom: 18px; }
  .tabs a { font-size: 11px; padding: 10px 6px; min-height: 44px; }
  .tabs a::before { width: 18px; height: 18px; font-size: 10px; margin-right: 4px; }
  .typeimg { height: 180px; }
  .optionscontent img { height: 140px !important; }
  .price-block { margin: 8px 10px; padding: 10px; }
  .qty-row { padding: 0 10px; }
  .delivery-info { margin: 8px 10px 0; }
  .tax-note { padding: 4px 10px 0; }
  .cta-wrap { padding: 10px; }
  .summary-list { padding: 4px 7px 0; }
  .summary-row { padding: 9px 8px !important; gap: 7px; }
  .upload-stage { max-width: 100%; }
  .modal-dialog { max-width: calc(100% - 24px) !important; }
}

/* ======= Mobile (< 768px): einspaltig ======= */
@media (max-width: 767px) {
  .fkleftcontent { padding: 14px 14px 14px !important; }

  /* Tabs: 2 Spalten à 50% */
  .tabs { flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
  .tabs li { flex: 0 0 calc(50% - 3px); }
  .tabs a { font-size: 11px; min-height: 40px; padding: 8px 6px; }
  .tabs a::before { width: 18px; height: 18px; font-size: 10px; margin-right: 4px; }
  a#tab2button, a#tab3button, a#tab4button, a#tab5button { height: auto; }

  /* Typ-Karten: 2 Spalten auf Mobil */
  .labl.col-md-3 { width: 50%; max-width: 50%; }
  .typeimg { height: 130px; }

  /* Material/Optionen */
  .optionscontent img { height: 110px !important; }
  .labl.col-md-6 { width: 100%; max-width: 100%; }
  .labl.col-md-4 { width: 50%; max-width: 50%; }

  /* Upload */
  .upload-stage { max-width: 100%; }
  .dropzone { padding: 28px 16px; }
  .dropzone-icon { width: 50px; height: 50px; font-size: 22px; }

  /* Sidebar */
  .summary-row { padding: 9px 8px !important; gap: 7px; }
  .price-block { margin: 8px 10px; padding: 10px 12px; }
  .price-total-value { font-size: 20px; }
  .qty-row { padding: 0 10px; }
  .delivery-info { margin: 8px 10px 0; }
  .cta-wrap { padding: 10px; }
  .cta-button { height: 48px; font-size: 14px; }

  /* Misc */
  .tmob { text-align: center !important; }
  .hid { display: none; }
  .mobar { padding-left: 0; }
  ul.tabs { margin-bottom: 0; }
  .fktitle { font-size: 20px; }
  .modal-dialog { max-width: calc(100% - 16px) !important; margin: 8px auto; }
  .zurueck { min-width: 90px !important; padding: 8px 14px !important; font-size: 13px !important; }

  /* Größen-Step: 1 Spalte */
  .tab2cont { margin-bottom: 20px !important; }
  .col-md-4 { width: 100%; max-width: 100%; }
}

/* ======= Hilfsklassen / Bootstrap-Patches ======= */
.clearfix:after { content: ""; display: table; clear: both; }

.bottominfofirstsite { float: left; margin-top: 20px; }

#sizebox { display: none; }

/* alte Style-Hooks neutralisieren */
.fksizebox, .fksizeboxfocus {
  width: 100%; height: auto; background: var(--surface);
  filter: none; border: 1px solid var(--border); text-align: center;
  padding: 14px; font-size: 13px; border-radius: var(--radius-sm);
}
.fksizeboxfocus { box-shadow: var(--shadow); border-color: var(--brand); }

/* file-upload (legacy classes -> hidden, neue UI greift) */
#file-upload { position: absolute; left: -9999px; }
.file-upload { display: block; text-align: center; font-family: inherit; font-size: 13px; }

/* Befestigung-Block */
#befestigung > div {
  background: var(--surface-2) !important;
  padding: 18px !important;
  margin-top: 12px !important;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
#befestigung > div > div[align="center"] > div {
  display: inline-block;
  padding: 6px 14px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

#befestigung label img {
  height: 110px;
  object-fit: contain;
  margin-bottom: 10px;
}

#befestigung input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--brand);
  margin-right: 6px;
  vertical-align: middle;
}
