:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --accent:#666666;       /* Hauptfarbe */
  --accent-2:#666666;
  --muted:#6b7280;
  --border:#e6e9ef;
  --radius:10px;
  --gap:14px;
  --shadow: 0 6px 18px rgba(18,23,40,0.06);
  --max-width:800px;
}

/* CSS Document */

.alertbox, #WarningPreview {
	margin: 20px auto;
	padding: 20px;
	color: #FFF;
	font-weight:normal;
}

.alertbox br, #WarningPreview br {
	display:none;
}

.okaybox {
	margin: 20px auto;
	padding: 20px;
	color: #2f8a28;
	font-weight:normal;
}

#WarningPreview ul {
	list-style:none;
}

.PflichtNotiz, .Pflichtnotiz {
	font-size:12px;
	margin:15px 0;
}

*{box-sizing:border-box}

/* Container */
.checkout.form{
  width:100%;
  max-width:var(--max-width);
  margin:-15px auto 22px auto;
  padding:20px;
  background:linear-gradient(180deg, rgba(255,255,255,1), var(--card));
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  display:block;
}

/* Layout */

/* make the Cont-* elements span full width when needed (single-column mobile) */
.Cont-textfeld,
.Cont-dropdown,
.Text-textfeld {
  width:100%;
}

/* Input & Select base */
.textfeld,
.dropdown,
textarea {
  width:100%;
  font-size:14px;
  padding:12px 14px;
  border-radius:4px;
  border:1px solid var(--border);
  background: #fff;
  outline:none;
  transition: box-shadow .15s ease, border-color .12s ease, transform .08s ease;
  -webkit-appearance:none;
  appearance:none;
  color:#0b1220;
  margin:0 0 5px;
}

textarea {
	height:100px;
}

/* Placeholder */
.textfeld::placeholder, textarea::placeholder { color:#9aa0ad; font-weight:500; }

/* Focus & hover */
.textfeld:focus,
.dropdown:focus{
  border-color:var(--accent);
  box-shadow: 0 6px 20px rgba(15,98,254,0.08);
  transform: translateY(-1px);
}

/* Select arrow (pure CSS) */
.Cont-dropdown { position:relative; }

.Cont-dropdown .dropdown {
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,#65748b 50%),linear-gradient(135deg,#65748b 50%,transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px),calc(100% - 13px) calc(1em + 2px);
  background-size: 8px 7px,5px 9px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

/* readonly text (E-Mail als Text) */
.Text-textfeld{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#fbfdff;
  color:#111827;
  font-size:14px;
  min-height:44px;
}

/* small helper to keep spacing between rows (instead of inline clear divs) */
.clearme{ height:0; display:block; clear:both; }

/* make hidden inputs invisible but preserve layout safety */
input[type="hidden"]{ display:none; }

/* Wide elements (make some fields span both columns) */
.Cont-textfeld.full,
.Cont-dropdown.full,
.Text-textfeld.full {
  grid-column: 1 / -1;
}

/* Example: make email / address fields full width - you can add .full to the markup if desired.
   If you want certain fields to span both columns without editing markup, use attribute selectors:
*/
.Cont-textfeld:nth-of-type(3),
.Text-textfeld:nth-of-type(1),
.Cont-textfeld:nth-of-type(5){
  /* optional automatic full-width for logical rows ? comment out if undesired */
  grid-column: 1 / -1;
}

/* tiny labels & meta */
.small-muted {
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
  display:block;
}

.Cont-pruefcode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.pruefcode-img {
    grid-column: 1;
}

.pruefcode-feld {
    grid-column: 2;
}

.pruefcode-img img {
    max-width: 100%;
    height: auto;
}

.buttonContent {
  display: block;
  text-align: center;
  text-decoration: none;
  color: white;
  padding: 12px;
  border-radius: 4px;
  border: none;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
}

/* subtle input validation styles (visual only) */
.textfeld.invalid{ border-color:#ef4444; box-shadow:0 6px 14px rgba(239,68,68,0.06); }
.textfeld.valid{ border-color:#10b981; box-shadow:0 6px 14px rgba(16,185,129,0.06); }

/* If you later add a submit button, use this style */
.btn-submit{
  display:inline-block;
  padding:12px 18px;
  border-radius:10px;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
  color:#fff;
  font-weight:600;
  border:none;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(15,98,254,0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-submit:active{ transform:translateY(1px) }
.btn-submit:disabled{ opacity:.6; cursor:not-allowed }

.okaybox {
  display: block;
  text-align: center;
  background: green;
  max-width: 400px;
  padding: 20px;
  margin: 40px auto;
  color: #FFF;
}

/* small accessibility helpers */
.textfeld:focus-visible, .dropdown:focus-visible,
.dropdown:focus-visible{ outline:3px solid rgba(141,141,141,0.42); outline-offset:2px }

/* Responsive: single column on small screens */

@media (max-width:600px){
  .FormLeft{ grid-template-columns: 1fr; }
  .Cont-dropdown .dropdown { padding-right:14px; background-position: calc(100% - 12px) calc(1em + 2px), calc(100% - 8px) calc(1em + 2px); }
  .checkout.form{ padding:15px !important; margin:0px;border-radius:0}
}