/* Hello Robin Music – Plattform
   Schriften: Halvar (TypeMates), selbst gehostet unter /static/fonts/
   Farbe: Hello-Robin-Rot #ff2452 */

@font-face {
  font-family: "Halvar Breit";
  src: url("../fonts/Halvar-Breitschrift-Regular.5c92c3c353de.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Halvar Breit";
  src: url("../fonts/Halvar-Breitschrift-Bold.e01e28c939b9.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Halvar Eng";
  src: url("../fonts/Halvar-Engschrift-Regular.044afcfd16e7.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --rot: #ff2452;
  --rot-dunkel: #d9123d;
  --rot-hell: #fff0f3;
  --text: #1a1a1a;
  --grau: #6b6b6b;
  --linie: #e4e4e4;
  --flaeche: #f7f7f5;
  --gruen: #1f9d55;
  --radius: 10px;
  --breit: "Halvar Breit", "Helvetica Neue", Arial, sans-serif;
  --eng: "Halvar Eng", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--breit);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--flaeche);
}
a { color: var(--rot-dunkel); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.1rem; }

/* Kopfzeile */
.kopf {
  background: #fff;
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 10;
}
.kopf-innen {
  max-width: 1100px; margin: 0 auto; padding: .55rem 1rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.kopf-logo img { height: 40px; display: block; }
.kopf nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.kopf nav a {
  font-family: var(--eng); text-transform: uppercase; letter-spacing: .06em;
  font-size: .95rem; text-decoration: none; color: var(--text);
  padding: .35rem .6rem; border-radius: 999px;
}
.kopf nav a:hover { background: var(--rot-hell); }
.kopf nav a.aktiv { background: var(--rot); color: #fff; }
.kopf form { margin: 0; }

@media (max-width: 640px) {
  .kopf-innen { gap: .5rem; padding: .4rem .7rem; }
  .kopf-logo img { height: 32px; }
  .kopf nav { gap: 0; }
  .kopf nav a { padding: .3rem .45rem; font-size: .9rem; }
  .kopf .knopf { padding: .3rem .6rem; font-size: .8rem; }
}

main { max-width: 1100px; margin: 0 auto; padding: 1.2rem 1rem 4rem; }

/* Kleine Beschriftungen wie im Briefpapier */
.label, label, th {
  font-family: var(--eng); text-transform: uppercase; letter-spacing: .06em;
  font-size: .85rem; color: var(--grau); font-weight: 400;
}

/* Zurück-Pille */
.zurueck {
  display: inline-block; margin-bottom: .8rem; padding: .25rem .8rem;
  border: 1px solid var(--linie); border-radius: 999px; background: #fff;
  text-decoration: none; color: var(--text); font-size: .9rem;
}
.zurueck:hover { border-color: var(--rot); }

/* Kästen */
.kasten {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 1rem;
}
details.kasten > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: .6rem;
  font-weight: 700;
}
details.kasten > summary::-webkit-details-marker { display: none; }
details.kasten > summary::before {
  content: "+"; color: var(--rot); font-weight: 700; width: 1em; text-align: center;
}
details.kasten[open] > summary::before { content: "–"; }
details.kasten[open] > summary { margin-bottom: .8rem; }
.kasten .neben { margin-left: auto; font-weight: 400; color: var(--grau); font-size: .9rem; }

/* Felder */
.felder { display: grid; grid-template-columns: 1fr; gap: .7rem 1rem; }
@media (min-width: 700px) {
  .felder { grid-template-columns: 1fr 1fr; }
  .felder .breit { grid-column: 1 / -1; }
}
.feld { display: flex; flex-direction: column; gap: .2rem; position: relative; }
input[type=text], input[type=email], input[type=number], input[type=search], input[type=password], input[type=date],
select, textarea {
  font: inherit; color: inherit; width: 100%;
  padding: .55rem .65rem; border: 1px solid var(--linie); border-radius: 8px; background: #fff;
  font-size: 16px; /* verhindert Zoom auf dem iPhone */
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rot); outline-offset: -1px; border-color: transparent; }
.feld.gespeichert input, .feld.gespeichert select, .feld.gespeichert textarea { border-color: var(--gruen); }
.feld.fehler input, .feld.fehler select, .feld.fehler textarea { border-color: var(--rot); background: var(--rot-hell); }
.feld .meldung { font-size: .8rem; color: var(--rot-dunkel); min-height: 0; }
.haken { flex-direction: row; align-items: center; gap: .5rem; }
.haken input { width: 1.2rem; height: 1.2rem; accent-color: var(--rot); }

/* Knöpfe */
.knopf {
  font: inherit; cursor: pointer; display: inline-block; text-decoration: none;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--rot);
  background: var(--rot); color: #fff; font-weight: 700; font-size: .95rem;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf.leise { background: #fff; color: var(--rot-dunkel); }
.knopf.leise:hover { background: var(--rot-hell); }
.x {
  font: inherit; cursor: pointer; border: 0; background: none; color: var(--rot);
  font-size: 1.4rem; line-height: 1; padding: .1rem .35rem; border-radius: 6px;
}
.x:hover { background: var(--rot-hell); }

.zeile { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.zeile > .wachsen { flex: 1; min-width: 12rem; }

/* Tabellen / Listen */
.liste { width: 100%; border-collapse: collapse; background: #fff; }
.liste th, .liste td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.liste tr:hover td { background: #fcfcfb; }
.liste a { text-decoration: none; color: var(--text); font-weight: 700; }
.liste .nr { font-family: var(--eng); color: var(--grau); white-space: nowrap; }
@media (max-width: 640px) {
  .liste .weg-mobil { display: none; }
}

.pille {
  display: inline-block; font-family: var(--eng); text-transform: uppercase; letter-spacing: .05em;
  font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: var(--flaeche);
  border: 1px solid var(--linie); color: var(--grau); white-space: nowrap;
}
.pille.rot { background: var(--rot-hell); border-color: var(--rot); color: var(--rot-dunkel); }

.leer { color: var(--grau); font-style: italic; }
.klein { font-size: .85rem; color: var(--grau); }

/* Meldungen */
.meldungen { list-style: none; padding: 0; margin: 0 0 1rem; }
.meldungen li { padding: .6rem .8rem; border-radius: 8px; margin-bottom: .4rem; background: #fff; border-left: 4px solid var(--grau); }
.meldungen .error { border-color: var(--rot); }
.meldungen .warning { border-color: #e0a100; }
.meldungen .success { border-color: var(--gruen); }

/* Kacheln auf der Startseite */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--text); }
.kachel .zahl { font-size: 2rem; font-weight: 700; color: var(--rot); }
.kachel.bald { opacity: .55; }

/* Protokoll */
.protokoll { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.protokoll li { padding: .35rem 0; border-bottom: 1px dashed var(--linie); }
.protokoll .wann { color: var(--grau); font-family: var(--eng); margin-right: .4rem; }

/* Anmeldung */
.anmeldung { max-width: 380px; margin: 8vh auto; text-align: center; }
.anmeldung img { width: 160px; margin-bottom: 1.5rem; }
.anmeldung form { text-align: left; }

/* Mehrfachauswahl (z. B. Medien) */
.haken-gruppe { display: flex; flex-wrap: wrap; gap: .35rem; }
.haken-wahl {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  padding: .35rem .7rem; border: 1px solid var(--linie); border-radius: 999px; background: #fff;
  font-family: var(--breit); text-transform: none; letter-spacing: 0; color: var(--text); font-size: .9rem;
}
.haken-wahl input { accent-color: var(--rot); width: 1rem; height: 1rem; margin: 0; }
.haken-wahl:has(input:checked) { border-color: var(--rot); background: var(--rot-hell); }
.feld.gespeichert .haken-wahl:has(input:checked) { border-color: var(--gruen); }

/* Kalkulation */
.summe { display: flex; justify-content: space-between; padding: .3rem 0; }
.summe.gross { font-weight: 700; border-top: 2px solid var(--text); margin-top: .3rem; padding-top: .5rem; }
.betrag { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.position { border-bottom: 1px solid var(--linie); padding: .8rem 0; }
.position:last-of-type { border-bottom: 0; }
.position .felder { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .position .kopfzeile { display: grid; grid-template-columns: 2.2rem 1fr 6rem 9rem 8rem 2rem; gap: .6rem; align-items: end; }
}
.position .kopfzeile .feld label { font-size: .75rem; }
.pos-nr { font-family: var(--eng); color: var(--grau); font-size: 1.1rem; padding-bottom: .55rem; }
.verschieben { display: flex; flex-direction: column; }
.verschieben button { border: 0; background: none; cursor: pointer; color: var(--grau); line-height: 1; padding: 0 .2rem; }
.verschieben button:hover { color: var(--rot); }
.buyout-preis { font-size: 1.3rem; font-weight: 700; color: var(--rot-dunkel); }
.status-anfrage { } 
.pille.status-auftrag { background: #e9f7ef; border-color: var(--gruen); color: #146c3a; }
.pille.status-angebot { background: #fff7e0; border-color: #e0a100; color: #8a6200; }
.pille.status-abgerechnet { background: #eef2ff; border-color: #6574cd; color: #3b4699; }
.pille.status-abgesagt { text-decoration: line-through; }
