/* Q9 gelesen und gelernt: @font-face – Lokale Schriftarten einbinden (MDN) Start */
/* Lokale Schriftarten */
@font-face {
  font-family: "Porscha";
  src: url("../media/fonts/911porschav3.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Porscha";
  src: url("../media/fonts/911porschav3ital.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Porscha";
  src: url("../media/fonts/911porschav3bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Porscha";
  src: url("../media/fonts/911porschav3boldital.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}
/* Q9 gelesen und gelernt: @font-face – Lokale Schriftarten einbinden (MDN) Ende */

/* Q13-KI generiert Start */

/* Q8 gelesen und gelernt: CSS Custom Properties / :root (MDN) Start */
:root {
  --white: #ffffff;
  --black: #000000;
  --red: #d5001c;
  --grey-100: #f2f2f2;
  --grey-200: #e3e3e3;
  --grey-400: #b0b0b0;
  --grey-600: #626262;
  --grey-800: #323232;
  --font-d: "Porscha", "Gill Sans Nova", "Gill Sans MT", Arial, sans-serif;
  --font-b: "Gill Sans Nova", "Gill Sans MT", "Gill Sans", Arial, sans-serif;
  --max: 1080px;
  --ease: 0.18s ease;
}
/* Q8 gelesen und gelernt: CSS Custom Properties / :root (MDN) Ende */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-b);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  height: 64px;
}
.topnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}
.brand-crest {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}
.brand-text {
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
}
.brand-sub {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-600);
  display: block;
}
.nav-tag {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-600);
  border: 1px solid var(--grey-200);
  padding: 5px 12px;
}

/* Hero */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 620px;
  margin-bottom: 20px;
}
.redline {
  width: 36px;
  height: 3px;
  background: var(--red);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-400);
  max-width: 500px;
  line-height: 1.75;
}

/* Main */
.main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: 12px;
  margin-bottom: 48px;
}
.meta-label {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-600);
}

/* Formular-Gruppen */
.fgroup {
  margin-bottom: 56px;
}
.fgroup-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: 12px;
  margin-bottom: 32px;
}
.fgroup-letter {
  font-family: var(--font-d);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
}
.fgroup-title {
  font-family: var(--font-d);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Zeilen & Felder */
.frow {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 40px;
}
.ffield {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}
.ffield > label,
.flabel {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 8px;
}
.req {
  color: var(--red);
  margin-left: 2px;
}

/* Inputs – nur Unterstrich, kein Rahmen */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-400);
  border-radius: 0;
  color: var(--black);
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 300;
  padding: 10px 0;
  transition: border-color var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input:focus,
select:focus {
  border-bottom-color: var(--black);
}
input.err-field,
select.err-field {
  border-bottom-color: var(--red);
}
input::placeholder,
textarea::placeholder {
  color: var(--grey-400);
  font-weight: 300;
}

/* Textarea bekommt vollen Rahmen, weil mehrzeilig */
textarea {
  border: 1px solid var(--grey-400);
  padding: 10px 12px;
  resize: vertical;
  min-height: 96px;
}
textarea:focus {
  border-color: var(--black);
}
textarea.err-field {
  border-color: var(--red);
}

/* Select: eigener Pfeil-Icon als SVG */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5' fill='none' stroke='%23323232' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
  cursor: pointer;
}

/* File-Input */
input[type="file"] {
  color: var(--grey-600);
  font-size: 0.875rem;
  cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-d);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  margin-right: 16px;
  cursor: pointer;
}

/* Radio – segmentierter Button-Block */
.radio-wrap {
  display: flex;
}
.ro {
  position: relative;
  flex: 1;
  min-width: 80px;
}
.ro input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ro label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid var(--grey-200);
  border-right: none;
  cursor: pointer;
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-600);
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease);
  padding: 0 12px;
}
.ro:last-child label {
  border-right: 1px solid var(--grey-200);
}
.ro input:checked + label {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.ro label:hover {
  background: var(--grey-100);
  color: var(--black);
}

/* Checkboxes */
.cb-wrap {
  display: flex;
  flex-direction: column;
}
.cbo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-200);
  cursor: pointer;
}
.cbo:first-child {
  border-top: 1px solid var(--grey-200);
}
.cbo input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--grey-400);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
  position: relative;
  padding: 0;
  transition:
    background var(--ease),
    border-color var(--ease);
}
.cbo input:checked {
  background: var(--black);
  border-color: var(--black);
}
.cbo input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 7px;
  height: 11px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.cbo-text {
  font-size: 0.9rem;
  font-weight: 300;
}

/* Range Slider */
.range-outer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.range-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 1px;
  background: var(--grey-400);
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  border: none;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  border: none;
  cursor: pointer;
}
.range-num {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 20px;
  text-align: right;
}
.range-mm {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey-400);
}

/* Fehlermeldung */
.errmsg {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.errmsg::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.hint {
  font-size: 0.75rem;
  color: var(--grey-600);
  margin-top: 4px;
  font-weight: 300;
}
.err-box {
  border-left: 3px solid var(--red);
  padding: 14px 18px;
  background: #fdf2f2;
  margin-bottom: 40px;
}
.err-box p {
  font-size: 0.875rem;
  color: var(--red);
}

/* Submit-Bereich */
.submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-200);
}
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-d);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--ease);
  text-decoration: none;
}
.btn-p:hover {
  background: var(--red);
}
.btn-p svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  font-family: var(--font-d);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition:
    background var(--ease),
    color var(--ease);
  text-decoration: none;
}
.btn-o:hover {
  background: var(--black);
  color: var(--white);
}
.btn-o svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.submit-note {
  font-size: 0.75rem;
  color: var(--grey-600);
  font-weight: 300;
}

/* Bestätigungsseite */
.conf-wrap {
  padding: 56px 0;
}
.conf-ok {
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #1a7a3f;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.conf-ok::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1a7a3f;
  display: inline-block;
}
.conf-h2 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
  max-width: 540px;
}
.conf-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-600);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.conf-table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  margin-bottom: 40px;
}
.conf-table tr {
  border-bottom: 1px solid var(--grey-200);
}
.conf-table td {
  padding: 14px 0;
  font-size: 0.9rem;
  vertical-align: top;
}
.conf-table td:first-child {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-600);
  width: 38%;
}
.conf-table td:last-child {
  font-weight: 300;
}

/* Footer */
footer {
  background: var(--grey-800);
  color: var(--grey-400);
  padding: 32px 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #444;
  margin-bottom: 16px;
}
.footer-brand {
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-d);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-400);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-links a:hover {
  color: var(--white);
}
.footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--grey-600);
}

/* Grafisches Element aus CI/CD: Karmesinrote Linien als Akzent */
.ci-lines {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-right: 0;
  pointer-events: none;
}
.ci-line {
  background: var(--red);
  width: 100%;
  border-radius: 0;
}
.ci-line--1 {
  height: 1px;
  opacity: 0.5;
}
.ci-line--2 {
  height: 2px;
  opacity: 0.65;
}
.ci-line--3 {
  height: 3px;
  opacity: 0.8;
}
.ci-line--4 {
  height: 4px;
  opacity: 0.9;
}
.ci-line--5 {
  height: 5px;
  opacity: 1;
}

/* Q8 gelesen und gelernt: Media Queries, Mobile First (MDN) Start */
/* Responsive – Mobile First.
   Strukturelle Veränderung ab 640px: Felder wechseln von 1-spaltig zu 2-spaltig */
@media (min-width: 640px) {
  .frow.c2 {
    grid-template-columns: 1fr 1fr;
  }
  .cb-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cbo:nth-child(3) {
    border-top: none;
  }
  .submit-row {
    flex-direction: row;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .frow.c3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
/* Q8 gelesen und gelernt: Media Queries, Mobile First (MDN) Ende */

/* Q13-KI generiert Ende */
