/* Kürzungsrechner für abgesteppten Gummibund - Styles */

:root {
  --sp-bg: #ffffff;
  --sp-paper: #ffffff;
  --sp-text: #333333;
  --sp-muted: #666666;
  --sp-line: #d9e1e1;
  --sp-teal: #347577;
  --sp-teal-dark: #2a5f60;
  --sp-teal-soft: #e7f2f2;
  --sp-yellow: #DFCD00;
  --sp-yellow-soft: #fffbe6;
  --sp-red: #ca5f5f;
  --sp-ok: #347577;
  --sp-warn: #DFCD00;
  --sp-radius: 4px;
  --sp-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  --sp-font: 'Open Sans', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sp-font);
  color: var(--sp-text);
  background: url('../Images/HIntergrundbild3.jpg') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.55;
}

.wrap {
  position: relative;
  width: min(1060px, calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 20px 52px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

header {
  position: relative;
  margin-bottom: 22px;
  padding: 34px 30px 30px;
  border: 1px solid var(--sp-line);
  border-top: 8px solid var(--sp-teal);
  background: var(--sp-paper);
  box-shadow: var(--sp-shadow);
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 120px;
  height: 120px;
  background: url('../Images/smartPATTERN-Designelemente-Kleidung-72dpi-RGB-1.png') no-repeat center;
  background-size: contain;
  opacity: 0.3;
  z-index: 0;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 14px;
  color: var(--sp-teal);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { position: relative; z-index: 1; }

h1 {
  margin: 0 0 12px;
  max-width: 850px;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--sp-teal);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--sp-teal);
}

h3 {
  margin: 18px 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sp-teal);
}

p { margin: 0 0 12px; }

.lead {
  color: var(--sp-muted);
  max-width: 760px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 850px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

section {
  background: var(--sp-paper);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  padding: 24px;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-left: 5px solid var(--sp-yellow);
  background: var(--sp-teal-soft);
  color: var(--sp-teal);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
}

.hint {
  display: block;
  margin-top: 4px;
  color: var(--sp-muted);
  font-weight: 400;
  font-size: .9rem;
}

input, select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #b9c8c8;
  border-radius: var(--sp-radius);
  background: #fff;
  color: var(--sp-text);
  font: inherit;
}

input:focus, select:focus {
  outline: 3px solid rgba(52, 117, 119, .25);
  border-color: var(--sp-teal);
}

input.input-error {
  border-color: var(--sp-red);
  background: #fff5f5;
}

input.input-error:focus {
  outline-color: rgba(202, 95, 95, .25);
}

input:disabled {
  background: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

input::placeholder {
  color: #b0b8b8;
  font-size: 0.9em;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-unit input {
  flex: 1;
}

.unit-suffix {
  color: var(--sp-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-row {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.radio-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: #fff;
  cursor: pointer;
}

.radio-card:has(input:checked) {
  border-color: var(--sp-teal);
  background: var(--sp-teal-soft);
}

.radio-card input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--sp-teal);
}

.radio-card strong { display: block; }
.radio-card span { color: var(--sp-muted); font-size: .92rem; }

button {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--sp-radius);
  background: var(--sp-teal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15);
}

button:hover { background: var(--sp-teal-dark); }

button:disabled {
  background: #b9c8c8;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-btn {
  background: #fff;
  color: var(--sp-teal);
  border: 2px solid var(--sp-teal);
  box-shadow: none;
  margin-top: 0;
  white-space: nowrap;
}

.secondary-btn:hover:not(:disabled) {
  background: var(--sp-teal-soft);
}

.secondary-btn:disabled {
  border-color: #b9c8c8;
  color: #999;
  background: #f0f0f0;
}

.result-box {
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-line);
  background: #fff;
  padding: 18px;
  margin-top: 16px;
}

.result-box h3::after {
  content: "";
  display: block;
  width: 96px;
  height: 10px;
  margin-top: -7px;
  background: var(--sp-yellow);
  opacity: .8;
  transform: rotate(-1deg);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.metric {
  background: var(--sp-teal-soft);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 14px;
}

.metric small {
  display: block;
  color: var(--sp-muted);
  margin-bottom: 4px;
  font-size: .82rem;
}

.metric strong {
  display: block;
  color: var(--sp-text);
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 700;
}

.metric.important {
  background: var(--sp-yellow-soft);
  border-color: var(--sp-yellow);
}

.note-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 5px solid var(--sp-teal);
  background: #f8fbfb;
  border-radius: var(--sp-radius);
  color: var(--sp-muted);
}

.note-box.ok { border-left-color: var(--sp-ok); }
.note-box.warn { border-left-color: var(--sp-warn); background: var(--sp-yellow-soft); }
.note-box.danger { border-left-color: var(--sp-red); }

.hidden { display: none !important; }

.error-list {
  margin: 12px 0 0;
  padding: 12px 14px 12px 34px;
  color: #9b2727;
  background: #fff3f3;
  border: 1px solid #f2c7c7;
  border-radius: var(--sp-radius);
}

details {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--sp-radius);
  background: #fff;
  border: 1px solid var(--sp-line);
}

summary { cursor: pointer; font-weight: 600; color: var(--sp-teal); }

footer {
  color: var(--sp-muted);
  font-size: .9rem;
  margin-top: 18px;
  text-align: center;
}

@media print {
  body { background: #fff; }
  header, section { box-shadow: none; }
  button { display: none; }
  .wrap { width: 100%; padding: 0; }
}
