/*
 * upload.pharmacare.de
 * Farben und Schrift nach dem Theme von pharmacare-website, wie im Portal-Mockup.
 */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("SourceSans3-Roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("SourceSans3-Roman-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --primaer: #004f9f;
  --primaer-dunkel: #003b78;
  --primaer-hell: #e8eff9;
  --weiss: #ffffff;
  --flaeche: #f5f3ef;
  --linie: #ddd9d1;
  --rahmen: #8a8f96;
  --schrift: #1d232a;
  --schrift-gedaempft: #5b6470;
  --akzent: #c30b56;
  --akzent-hell: #fbe9f0;
  --erfolg: #1a7f4b;
  --erfolg-hell: #e3f2ea;
  --erfolg-dunkel: #146a3d;
  --erfolg-rand: #b9dcc8;
  --fehler: #b3261e;
  --fehler-hell: #fdecea;
  --radius: 10px;
  --klickziel: 48px;
  --normal: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --gross: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  --h1: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  --h2: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --s10: 0.5rem; --s20: 1rem; --s30: 1.5rem; --s40: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--normal);
  line-height: 1.55;
  color: var(--schrift);
  background: var(--flaeche);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 var(--s20); text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
p { margin: 0 0 var(--s20); }
a { color: var(--primaer); }
a:hover { color: var(--primaer-dunkel); }
:where(a, button, input, textarea, [tabindex]):focus-visible { outline: 3px solid var(--primaer); outline-offset: 3px; }

.huelle { max-width: calc(44rem + 2 * var(--s20)); margin: 0 auto; padding: 0 var(--s20); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 10; padding: 0.75rem 1rem; background: var(--primaer); color: var(--weiss); }
.skip-link:focus { left: 0; }

.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); padding: var(--s20) 0; }
.logo { display: block; width: 200px; max-width: 100%; height: auto; }
/* Handy: Logo und Sprache oben, der grüne Hinweis darunter. Ab 32rem alles in einer Zeile. */
.kopf__zeile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo sprache" "sicher sicher";
  align-items: center; gap: var(--s10) var(--s20);
}
.kopf__zeile .logo { grid-area: logo; }
.kopf__zeile .sicher { grid-area: sicher; justify-self: start; }
.kopf__zeile .sprache { grid-area: sprache; }
@media (min-width: 32rem) {
  .kopf__zeile { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "logo sicher sprache"; }
}
.sicher {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.35rem 0.8rem;
  border-radius: 999px; background: var(--erfolg-hell); color: var(--erfolg-dunkel);
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
}
/* Sprachumschalter wie auf der Website (theme.css, .sprache): kleiner runder Knopf rechts im Kopf */
.sprache {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-width: 44px; min-height: 44px; padding: 0 0.8rem;
  border: 1px solid var(--linie); border-radius: 999px; color: var(--primaer);
  font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.sprache:hover { border-color: var(--akzent); color: var(--primaer); text-decoration: none; }
.sprache__lang { font-weight: 600; }
@media (max-width: 40rem) {
  .sprache__lang { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Deutschlandfahne hinter der Telefonnummer auf englischen Seiten: Das Telefon ist deutschsprachig */
.flagge { display: inline-flex; margin-inline-start: 0.4em; vertical-align: middle; line-height: 0; }
.flagge svg { width: 1.1em; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px var(--linie); }
.am-stueck { white-space: nowrap; }
svg.i { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Inhalt als Karte; .huelle setzt Breite und Rand, hier kommen Abstand und Fläche dazu */
main.huelle {
  padding: var(--s40) var(--s30);
  margin-top: var(--s30);
  margin-bottom: var(--s30);
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 12px rgb(0 0 0 / 6%);
}
.kopf .huelle, .fuss .huelle { padding: 0 var(--s30); }
@media (max-width: 40rem) {
  main.huelle { margin: 0; padding: var(--s30) var(--s20); border-radius: 0; box-shadow: none; }
  .kopf .huelle, .fuss .huelle { padding: 0 var(--s20); }
}
.fuss { padding: var(--s20) 0 var(--s40); color: var(--schrift-gedaempft); }
.fuss__firma, .fuss__sprache { margin: 0 0 var(--s10); font-size: 1rem; }
.fuss__links { display: flex; gap: var(--s30); margin: 0; }
.fuss a { color: inherit; }

.einleitung, .gross { font-size: var(--gross); }
.klein, .hilfe { font-size: 1rem; color: var(--schrift-gedaempft); }
.hilfe { margin: 0 0 var(--s10); }
.optional { font-weight: 400; color: var(--schrift-gedaempft); }
/* Drei grüne Punkte zur Sicherheit unter der Überschrift */
.vertrauen { list-style: none; margin: 0 0 var(--s30); padding: 0; display: grid; gap: var(--s10); }
.vertrauen li {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border: 1px solid var(--erfolg-rand); border-radius: var(--radius); background: var(--erfolg-hell);
}
.vertrauen svg.i { width: 1.75rem; height: 1.75rem; color: var(--erfolg); }
.vertrauen strong { color: var(--erfolg-dunkel); }
@media (min-width: 40rem) {
  .vertrauen { grid-template-columns: repeat(3, 1fr); }
  .vertrauen li { flex-direction: column; align-items: flex-start; }
}
/* QR-Code nur am Computer mit Maus: dort weitermachen, wo die Kamera ist */
.qr { display: none; }
@media (min-width: 48rem) and (hover: hover) and (pointer: fine) {
  .qr {
    display: flex; align-items: center; gap: var(--s30); margin: 0 0 var(--s30); padding: var(--s20) var(--s30);
    border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche);
  }
}
.qr__code { flex-shrink: 0; width: 8.5rem; height: 8.5rem; border-radius: 6px; overflow: hidden; }
.qr__code svg { display: block; width: 100%; height: 100%; }
.qr h2 { font-size: var(--gross); margin-bottom: var(--s10); }
.qr p { margin: 0; }
.hinweis-quelle { background: var(--primaer-hell); border-left: 4px solid var(--primaer); padding: var(--s10) var(--s20); border-radius: 4px; }

.gruppe { border: 0; padding: 0; margin: 0 0 var(--s30); }
legend { font-size: var(--h2); font-weight: 700; margin-bottom: var(--s20); padding: 0; }
.feld { margin-bottom: var(--s30); }
.feld > label { display: block; font-weight: 600; margin-bottom: var(--s10); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  display: block; width: 100%; min-height: var(--klickziel);
  padding: 0.625rem 0.75rem; font: inherit; color: inherit;
  background: var(--weiss); border: 2px solid var(--rahmen); border-radius: 6px;
}
textarea { min-height: 7rem; resize: vertical; }
input[type="file"] { display: block; width: 100%; font: inherit; padding: var(--s20); border: 2px dashed var(--rahmen); border-radius: var(--radius); background: var(--flaeche); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; min-height: var(--klickziel); margin-right: var(--s20); padding: 0 var(--s20); border: 0; border-radius: 6px; background: var(--primaer); color: var(--weiss); cursor: pointer; }

.wahl { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: center; min-height: var(--klickziel); }
.wahl .hilfe { grid-column: 2; }
.wahl label, .feld--haken label { font-weight: 400; }
input[type="radio"], input[type="checkbox"] { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--primaer); }
.feld--haken { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.feld--haken input { margin-top: 0.125rem; }
.feld--haken .feldfehler { grid-column: 1 / -1; }

.feld--fehler > input, .feld--fehler > textarea { border-color: var(--fehler); }
.feldfehler { color: var(--fehler); font-weight: 600; margin: 0 0 var(--s10); }
.fehlerliste { border: 3px solid var(--fehler); background: var(--fehler-hell); border-radius: var(--radius); padding: var(--s20) var(--s30); margin-bottom: var(--s30); }
.fehlerliste h2 { font-size: var(--gross); }
.fehlerliste ul { margin: 0 0 var(--s20); padding-left: 1.25rem; }
.fehlerliste a { color: var(--fehler); font-weight: 600; }

/* Knöpfe wie im Portal-Mockup und auf der Website */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.7rem 1.4rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  color: var(--weiss); background: var(--primaer); border: 2px solid var(--primaer); border-radius: var(--radius); cursor: pointer;
}
.knopf:hover { color: var(--weiss); background: var(--primaer-dunkel); border-color: var(--primaer-dunkel); }
.knopf--sicher { gap: 0.5rem; background: var(--erfolg); border-color: var(--erfolg); }
.knopf--sicher:hover { background: var(--erfolg-dunkel); border-color: var(--erfolg-dunkel); }
.knopf--zweit { color: var(--primaer); background: var(--weiss); }
.knopf--zweit:hover { color: var(--primaer-dunkel); background: var(--primaer-hell); border-color: var(--primaer); }
button.knopf { width: 100%; margin: var(--s10) 0 var(--s30); }
@media (min-width: 40rem) { button.knopf { width: auto; } }

.erfolg-zeichen {
  display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem;
  margin-bottom: var(--s20); border-radius: 50%; background: var(--erfolg-hell); color: var(--erfolg);
}
.erfolg-zeichen svg.i { width: 2.25rem; height: 2.25rem; stroke-width: 2.4; }
.vorgang { font-size: var(--gross); background: var(--erfolg-hell); border-left: 4px solid var(--erfolg); padding: var(--s20); border-radius: 4px; }
.vorgang strong { font-size: 1.25em; letter-spacing: 0.04em; white-space: nowrap; }
.kasten { border: 2px solid var(--akzent); background: var(--akzent-hell); border-radius: var(--radius); padding: var(--s20) var(--s30); margin: var(--s30) 0; }
.kasten h2 { font-size: var(--gross); }
address { font-style: normal; }
