:root {
  --bg: #14161a;
  --karte: #1f232a;
  --text: #eaedf2;
  --gedaempft: #9aa3b5;
  --rand: #323845;
  --blau: #6ea3e8;
  --blau-text: #10131a;
  --rot: #ff8787;
  --rot-bg: #3a2021;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}
.karte {
  width: 100%;
  max-width: 40rem;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 2rem;
}
.domain {
  margin: 0 0 0.25rem;
  color: var(--gedaempft);
  font-size: 1.1rem;
  word-break: break-all;
}
h1 { margin: 0 0 1rem; font-size: 2.1rem; line-height: 1.2; }
p { margin: 0 0 1rem; }
label { display: block; margin: 0 0 1.1rem; font-weight: 600; }
input[type=text], input[type=email], textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rand);
  border-radius: 8px;
}
input[name=frage] { width: 6rem; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }
button {
  padding: 0.8rem 1.6rem;
  font: inherit;
  font-weight: 600;
  color: var(--blau-text);
  background: var(--blau);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
a.knopf {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  color: var(--blau-text);
  background: var(--blau);
  border-radius: 8px;
  text-decoration: none;
}
button:hover, a.knopf:hover { filter: brightness(1.1); }
.fehler {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1.1rem;
  color: var(--rot);
  background: var(--rot-bg);
  border: 1px solid var(--rot);
  border-radius: 8px;
}
.fehler p { margin: 0 0 0.25rem; }
.fehler p:last-child { margin: 0; }
.seite { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 2rem; width: 100%; max-width: 64rem; }
.haupt { flex: 1 1 28rem; max-width: 40rem; display: flex; flex-direction: column; gap: 1.5rem; }
.haupt .karte { max-width: none; }
.weitere {
  flex: 0 1 22rem;
  padding: 0.25rem;
}
.weitere h2 { margin: 0 0 0.6rem; font-size: 1.25rem; color: var(--gedaempft); }
.weitere ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; }
.weitere a { color: var(--blau); text-decoration: none; word-break: break-all; }
.weitere a:hover { color: #ff6b62; text-decoration: underline; }
/* Honeypot: fuer Menschen unsichtbar, aber fuer einfache Bots ein ausfuellbares Feld */
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vorschau { display: block; min-height: 1.6em; margin-top: 0.3rem; font-weight: 400; color: var(--blau); }
.banner { display: block; width: 100%; height: auto; border-radius: 12px; }
.gebot { padding: 0.6rem 1rem; background: var(--bg); border: 1px solid var(--rand); border-radius: 8px; }
.gebot strong { color: var(--blau); }

h2 { margin: 1.6rem 0 0.7rem; font-size: 1.3rem; line-height: 1.3; }
.weitere h2 { margin-top: 0; }
.einleitung { font-size: 1.15rem; }
.schritte { margin: 0 0 1.2rem; padding: 0; list-style: none; counter-reset: schritt; }
.schritte li { position: relative; margin: 0 0 0.8rem; padding-left: 2.6rem; counter-increment: schritt; }
.schritte li::before { content: counter(schritt); position: absolute; left: 0; top: 0.1rem; width: 1.8rem; height: 1.8rem; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; color: var(--blau-text); background: var(--blau); border-radius: 50%; }
.hinweis { margin: 1.2rem 0 0; padding: 0.2rem 1.1rem 0.4rem; background: var(--bg); border: 1px solid var(--rand); border-left: 4px solid var(--blau); border-radius: 8px; }
.hinweis h2 { margin-top: 0.9rem; }
label.haken { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; }
label.haken input { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.25rem; accent-color: var(--blau); }
.bedingungen { margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--gedaempft); }
.bedingungen li { margin-bottom: 0.3rem; }
input[type=tel] { display: block; width: 100%; margin-top: 0.4rem; padding: 0.7rem 0.8rem; font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--rand); border-radius: 8px; }
input[type=tel]:focus { outline: 2px solid var(--blau); outline-offset: 2px; }
.zurueck { margin: 0; }
.zurueck a { color: var(--blau); text-decoration: none; }
.zurueck a:hover { color: #ff6b62; text-decoration: underline; }
.weitere .anbieten { margin-top: 1.6rem; padding: 1.1rem 1.2rem; background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; }
.weitere .anbieten p { margin: 0 0 0.9rem; color: var(--text); }
.weitere .anbieten:first-child { margin-top: 0; }
.weitere a.knopf { color: var(--blau-text); word-break: normal; }
.weitere a.knopf:hover { color: var(--blau-text); text-decoration: none; }

.fuss { width: 100%; max-width: 64rem; padding: 0.5rem 0.25rem 0; font-size: 0.9rem; color: var(--gedaempft); text-align: left; }
.fuss a { color: var(--gedaempft); text-decoration: none; }
.fuss a:hover { color: #ff6b62; text-decoration: underline; }
.fuss span { margin: 0 0.4rem; }

.domaintitel { margin: 0 0 0.3rem; font-size: 2.4rem; line-height: 1.15; color: var(--blau); word-break: break-all; }
.untertitel { margin: 0 0 1rem; font-size: 1.45rem; line-height: 1.3; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.paar.plzort { grid-template-columns: 8rem 1fr; }
@media (max-width: 30rem) { .paar, .paar.plzort { grid-template-columns: 1fr; } }

pre.dns { margin: 0 0 1rem; padding: 0.9rem 1rem; overflow-x: auto; font-size: 0.9rem; line-height: 1.5; color: var(--text); background: var(--bg); border: 1px solid var(--rand); border-radius: 8px; }

.haupt.breit { flex: 1 1 100%; max-width: 64rem; }
.haupt.breit .banner { height: 13rem; object-fit: cover; object-position: center 40%; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.spalte > :first-child { margin-top: 0; }
.formtitel { margin-top: 0; }
@media (max-width: 55rem) {
  .zweispaltig { grid-template-columns: 1fr; gap: 0; }
  .formtitel { margin-top: 1.6rem; }
  .haupt.breit .banner { height: auto; }
}

/* Laengere Texte im Blocksatz mit Silbentrennung (Seitensprache de-CH) */
.karte p, .karte li, .hinweis p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.karte .fehler p, .karte .gebot, .karte .vorschau, .karte label, .karte .haken span, .karte .knopf { text-align: left; hyphens: manual; }
.karte .domaintitel, .karte .untertitel, .karte h1, .karte h2 { text-align: left; hyphens: manual; }
.karte pre.dns { text-align: left; }

fieldset.art { margin: 0 0 1.1rem; padding: 0; border: 0; }
fieldset.art legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; }
label.radio { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 1.6rem 0 0; font-weight: 400; cursor: pointer; }
label.radio input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--blau); }
/* Firmenfeld nur bei "Firma" (ohne :has-Unterstuetzung bleibt es einfach immer sichtbar) */
@supports selector(:has(*)) {
  form:has(input[name=art][value=privat]:checked) .firmafeld { display: none; }
}
.buendel { padding: 0.6rem 1rem; background: var(--bg); border: 1px solid var(--rand); border-left: 4px solid var(--blau); border-radius: 8px; }
.buendel a { color: var(--blau); }
.buendel a:hover { color: #ff6b62; }

/* Domainnamen nicht am Bindestrich umbrechen; DNS-Eintraege umbrechen statt scrollen */
.dom { white-space: nowrap; hyphens: manual; }
pre.dns { white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; }

/* Auf schmalen Bildschirmen entstuenden im Blocksatz grosse Luecken: dort linksbuendig */
@media (max-width: 40rem) {
  .karte p, .karte li, .hinweis p { text-align: left; }
}

/* Pflichtfelder: Stern in der Akzentfarbe */
.pflicht { color: #ff6b62; font-weight: 700; }
.pflichthinweis { margin: 1rem 0 0; font-size: 0.9rem; color: var(--gedaempft); text-align: left; }

/* Marke fuer Domains, die im Buendel angeboten werden */
.buendelmarke { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--blau-text); background: var(--blau); border-radius: 999px; vertical-align: middle; cursor: help; white-space: nowrap; }
.weitere li.buendelzeile { grid-column: 1 / -1; padding: 0.35rem 0.6rem; border: 1px solid var(--rand); border-radius: 8px; }
.weitere li a { white-space: nowrap; }

/* Buendel: Marke als Ueberschrift, die Domains darunter untereinander */
.weitere li.buendelzeile { display: block; }
.weitere li.buendelzeile .buendelmarke { display: block; width: max-content; margin: 0 0 0.45rem; }
.weitere ul.buendelliste { display: block; margin: 0; padding: 0; list-style: none; }
.weitere ul.buendelliste li { margin: 0 0 0.25rem; }
.weitere ul.buendelliste li:last-child { margin-bottom: 0; }
