/*
  Brandt – minimalistisches Premium-Theme (angelehnt an juergen-brandt.com)
  Fokus: dunkler Hintergrund, klare Typografie, goldener Akzent, große CTAs.
*/

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --card: rgba(255, 255, 255, 0.92);
  --card-2: rgba(255, 255, 255, 0.98);
  --border: rgba(0, 0, 0, 0.12);
  --border-2: rgba(0, 0, 0, 0.20);
  --shadow: none;

  --fg: rgba(0, 0, 0, 0.92);
  --muted: rgba(0, 0, 0, 0.64);
  --muted-2: rgba(0, 0, 0, 0.48);

  --accent: #ffd400;
  --accent-2: #ffea75;
  --danger: #ff5a6a;
  --ok: #2dd4bf;

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1120px;
  --gap: 18px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial;
  --font-display: ui-serif, "Georgia", "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  letter-spacing: 0.2px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.muted { color: var(--muted); }

.pad-x-18 { padding-left: 18px; padding-right: 18px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: #0b0c0f;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 50;
}
.skip-link:focus { transform: translateY(0); outline: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(11, 12, 15, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-brand-stack .brand-link {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.brand-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.10);
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.6px;
  font-size: 1.12rem;
}
.brand-text span {
  display: block;
  color: rgba(255,255,255,0.70);
  font-size: 0.88rem;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.90);
}
.nav-link:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}
.nav-link-muted { color: rgba(255,255,255,0.70); }

/* Hero */
.hero {
  padding: 26px 0 0;
}


/* Erfolg-Seite: Inhalt im oberen 2/3-Bereich platzieren */
body.success-page .site-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.success-page .site-main::before {
  content: "";
  flex: 1 1 0;
}
body.success-page .site-main::after {
  content: "";
  flex: 2 1 0;
}
body.success-page .site-main > .hero {
  width: 100%;
  flex: 0 0 auto;
  padding: clamp(12px, 3vh, 28px) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy { padding-top: 10px; }

.hero-center .hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
}

.hero-center .hero-copy {
  padding-top: 0;
  text-align: center;
}

.hero-center .lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(0, 0, 0, 0.72);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: 0.4px;
}

.lead {
  margin: 0;
  color: rgba(0,0,0,0.72);
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-hints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hint-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 12px 12px;
}
.hint-card strong { display: block; }
.hint-card span { display: block; color: var(--muted); margin-top: 4px; font-size: 0.92rem; }

.hero-panel {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.98);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(0,0,0,0.08);
  opacity: 0.0;
  pointer-events: none;
  padding: 1px;
  box-sizing: border-box;
}

.hero-panel-inner {
  padding: 22px 18px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.hero-panel-kicker {
  color: rgba(0,0,0,0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.hero-panel-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.18;
}
.hero-panel-sub { color: var(--muted); }

/* Sections */
.section { padding: 22px 0 58px; }

.section-inner { display: block; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 10px;
}
.section-head p { margin: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.step {
  padding: 16px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.86);
}
.step-index {
  font-family: var(--font-display);
  color: rgba(0,0,0,0.70);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.step-body strong { display: block; margin-top: 10px; }
.step-body span { display: block; color: var(--muted); margin-top: 6px; }

.section-cta { margin-top: 20px; }

/* Cards */
.card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.98);
  box-shadow: none;
}
.card-head {
  padding: 18px 18px 0;
}
.card-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.card-head p { margin: 0 0 12px; }

.form-card {
  padding-bottom: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.14);
}
.side-card {
  padding-bottom: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.14);
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 14px 18px;
}

.inline-link {
  color: rgba(230, 211, 154, 0.95);
  text-decoration: none;
}
.inline-link:hover { text-decoration: underline; }

/* Form layout */
.form-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
  align-items: start;
}

.form {
  padding: 0 18px 16px;
}

.fieldset {
  border: 0;
  margin: 0;
  padding: 12px 0 0;
}

legend {
  padding: 0;
  font-weight: 700;
  color: rgba(0,0,0,0.84);
  margin-bottom: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field { margin-bottom: 12px; }

label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.98);
  color: var(--fg);
  outline: none;
  font-family: inherit;
  font-size: 1rem;
}

.dropzone {
  position: relative;
  width: 100%;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.98);
  padding: 12px 12px;
  cursor: pointer;
}

.dropzone:hover {
  border-color: rgba(0,0,0,0.36);
}

.dropzone:focus-within {
  border-color: rgba(0,0,0,0.75);
}

.dropzone.is-dragover {
  border-color: rgba(0,0,0,0.85);
  background: var(--bg-2);
}

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

.dropzone-inner {
  display: grid;
  gap: 4px;
  text-align: center;
  color: rgba(0,0,0,0.72);
}

.dropzone-inner strong {
  font-weight: 750;
  letter-spacing: 0.2px;
}

.dropzone-inner span {
  color: rgba(0,0,0,0.58);
  font-size: 0.95rem;
}

textarea { resize: vertical; min-height: 140px; }

input::placeholder,
textarea::placeholder { color: rgba(0,0,0,0.42); }

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0,0,0,0.75);
}

select {
  appearance: none;
  background-image:
    none;
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field-hint {
  margin-top: 8px;
  color: rgba(0,0,0,0.60);
  font-size: 0.9rem;
}

.field.invalid .field-hint { color: rgba(255, 90, 106, 0.92); }
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: rgba(255, 90, 106, 0.65);
}

.field.invalid .dropzone {
  border-color: rgba(255, 90, 106, 0.65);
}

.field.valid input,
.field.valid select,
.field.valid textarea {
  border-color: rgba(22, 163, 74, 0.75);
}

.field.valid .dropzone {
  border-color: rgba(22, 163, 74, 0.75);
}

.consent {
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: none;
  background: transparent;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; width: 18px; height: 18px; }
.checkbox a { color: rgba(0,0,0,0.90); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.95);
  color: rgba(0,0,0,0.92);
  cursor: pointer;
  user-select: none;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.btn:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(0,0,0,0.28);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  border-color: rgba(0,0,0,0.18);
  background: var(--accent);
  color: rgba(0,0,0,0.92);
}
.btn-primary:hover {
  border-color: rgba(0,0,0,0.28);
  filter: saturate(1.03) contrast(1.02);
}

.btn-ghost {
  background: transparent;
}

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

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

/* Upload preview */
.upload-preview {
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.88);
}
.upload-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.upload-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.upload-item {
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.98);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 80px;
}
.upload-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.upload-thumb-pdf {
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.70);
  background: rgba(0,0,0,0.04);
}
.upload-meta {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  min-height: 80px;
  min-width: 0; /* wichtig für Ellipsis in Flex/Grid */
  position: relative;
  padding-bottom: 38px; /* Platz für Entfernen-Button */
}
.upload-name {
  font-size: 0.92rem;
  color: rgba(0,0,0,0.86);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}

.upload-remove {
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.upload-item .upload-remove.btn-danger {
  border-color: rgba(255, 90, 106, 0.30);
  background: rgba(255, 90, 106, 0.06);
}

.upload-item .upload-remove.btn-danger:hover {
  border-color: rgba(255, 90, 106, 0.45);
  background: rgba(255, 90, 106, 0.10);
}
.btn-small {
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 0.9rem;
}
.btn-danger {
  border-color: rgba(255, 90, 106, 0.38);
  background: rgba(255, 90, 106, 0.10);
}
.btn-danger:hover {
  border-color: rgba(255, 90, 106, 0.55);
  background: rgba(255, 90, 106, 0.16);
}

/* Status box */
.status { padding: 0 18px; }
.status-box {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.86);
}
.status-box.ok {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.08);
}
.status-box.err {
  border-color: rgba(255, 90, 106, 0.35);
  background: rgba(255, 90, 106, 0.08);
}
.status-box.warn {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 212, 0, 0.16);
}

/* Checklist */
.checklist {
  margin: 0;
  padding: 0 18px 16px 38px;
  color: rgba(0,0,0,0.74);
}
.checklist li { margin-bottom: 10px; }
.checklist strong { color: rgba(0,0,0,0.90); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #0b0c0f;
  color: rgba(255,255,255,0.92);
  padding: 14px 0 16px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.site-footer .muted { color: rgba(255,255,255,0.72); }

.footer-slim { gap: 6px; }

.footer-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.35;
  font-size: 0.95rem;
}

.footer-name {
  letter-spacing: 0.2px;
}

.footer-sep {
  color: rgba(255,255,255,0.40);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.footer-item {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 12px 12px;
}

.footer-label {
  display: block;
  color: rgba(255,255,255,0.68);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.footer-link {
  color: rgba(255, 212, 0, 0.95);
}
.footer-link:hover { text-decoration: underline; }

.footer-bottom { color: rgba(255,255,255,0.55); font-size: 11px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .hero-hints { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .side-card { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .header-inner { padding: 12px 0; }
  .brand { min-width: 0; }
  .brand-logo { height: 24px; max-width: 160px; }
  .brand-subtitle { font-size: 0.88rem; }
  .hero { padding-top: 26px; padding-bottom: 14px; }
  .hero-compact { padding-bottom: 14px; }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea { font-size: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .upload-list { grid-template-columns: 1fr; }
  .footer-line { display: grid; gap: 4px; }
  .footer-row { display: block; }
  .footer-sep { display: inline; }
}

