/* ==========================================================================
   HV-Computer Lorsch – Stylesheet
   Farben aus dem Logo: Blau #000066, Orange #FF6600
   Kontraste nach WCAG 2.2 AA geprüft (Text mind. 4,5:1, Bedienelemente 3:1).
   ========================================================================== */

:root {
  --navy: #000066;
  --navy-dark: #00004a;
  --orange: #ff6600;        /* nur als Fläche oder auf Blau – auf Weiß kein Text! */
  --orange-light: #ff8533;
  --orange-text: #b34700;   /* Orange für Text auf Weiß (5,5:1) */
  --ink: #1b1b2f;
  --muted: #45465c;
  --bg: #ffffff;
  --bg-soft: #f3f4f9;
  --bg-today: #fff1e6;
  --line: #d3d5e2;
  --on-dark: #ffffff;
  --on-dark-muted: #d6d8f0;
  --open: #1d7f37;
  --closed: #c0262d;

  --radius: 0.75rem;
  --shadow: 0 1px 2px rgba(0, 0, 40, 0.06), 0 8px 24px rgba(0, 0, 40, 0.07);
  --container: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
  hyphens: auto;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 48rem) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.125rem; }
}

p {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

a {
  color: var(--navy);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-text);
}

strong {
  font-weight: 700;
}

/* Deutlich sichtbarer Tastaturfokus */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible {
  outline-color: var(--orange);
}

.on-dark .on-light :focus-visible {
  outline-color: var(--navy);
}

#inhalt:focus {
  outline: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 700;
  border-radius: 0 0 0.5rem 0.5rem;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
  color: var(--on-dark);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 48rem) {
  .container {
    padding-inline: 2rem;
  }
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  color: var(--navy);
  text-decoration: underline;
}

.btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
}

.btn--navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--on-dark);
  text-decoration: underline;
}

.btn--ghost {
  background: transparent;
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn--ghost:hover {
  background: var(--on-dark);
  color: var(--navy);
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
}

/* ---------- Kopfbereich ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}

.brand {
  flex: 0 1 auto;
  margin-right: auto;
  border-radius: 4px;
}

.brand img {
  width: clamp(9.5rem, 48vw, 12.5rem);
}

.header-call {
  order: 2;
}

.header-call .label-long {
  display: none;
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

@media (min-width: 40rem) {
  .header-call .label-short {
    display: none;
  }

  .header-call .label-long {
    display: inline;
  }
}

@media (min-width: 72rem) {
  .site-header__inner {
    flex-wrap: nowrap;
    gap: 2rem;
    padding-block: 1rem;
  }

  .brand img {
    width: 15rem;
  }

  .site-nav {
    order: 2;
    width: auto;
  }

  .site-nav ul {
    gap: 0 1.75rem;
  }

  .header-call {
    order: 3;
  }
}

/* ---------- Startbereich (Hero) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 2.75rem 3.25rem;
  background: var(--navy);
  color: var(--on-dark);
}

/* Orangefarbener Bogen – greift das „C" aus dem Logo auf (rein dekorativ) */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7rem;
  display: none;
  width: 30rem;
  height: 30rem;
  border: 2.75rem solid var(--orange);
  border-right-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%) rotate(-45deg);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  color: var(--on-dark);
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.lead {
  max-width: 34em;
  font-size: 1.25rem;
  color: var(--on-dark-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-card {
  padding: 1.5rem;
  background: var(--bg);
  color: var(--ink);
  border-top: 0.375rem solid var(--orange);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 30, 0.35);
}

.hero-card h2 {
  font-size: 1.375rem;
}

.hero-card address {
  margin-bottom: 1rem;
}

.hero-card .link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card .link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
}

.hero-card .link-list .icon {
  color: var(--orange-text);
}

@media (min-width: 60rem) {
  .hero {
    padding-block: 4.5rem 5rem;
  }

  .hero::after {
    display: block;
  }

  .hero__inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }

  .hero-card {
    max-width: 26rem;
    justify-self: end;
    width: 100%;
  }
}

/* Geöffnet / geschlossen */
.status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.status::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--muted);
}

.status.is-open::before {
  background: var(--open);
}

.status.is-closed::before {
  background: var(--closed);
}

/* ---------- Abschnitte ---------- */

.section {
  padding-block: 3.5rem;
}

.section--soft {
  background: var(--bg-soft);
}

@media (min-width: 60rem) {
  .section {
    padding-block: 5rem;
  }
}

.section__head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section__head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 0.25rem;
  margin-top: 0.75rem;
  background: var(--orange);
  border-radius: 2px;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Leistungen ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  background: var(--navy);
  color: var(--orange);
  border-radius: 0.75rem;
}

.card__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .card__price {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Typische Probleme & Hinweis ---------- */

.checklist {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checklist .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1em;
  padding: 0.2rem;
  background: var(--orange);
  color: var(--navy);
  border-radius: 50%;
  stroke-width: 3;
}

.notice {
  padding: 1.5rem;
  background: var(--bg);
  border: 2px solid var(--navy);
  border-left-width: 0.5rem;
  border-radius: var(--radius);
}

.notice h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notice h3 .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--orange-text);
}

.notice ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.notice li + li {
  margin-top: 0.25rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ---------- Ablauf ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 4.5rem 1.5rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  content: counter(step) / "";
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  border-radius: 50%;
}

.steps h3 {
  margin-bottom: 0.375rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Lotto & Post ---------- */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.partner__logo {
  display: flex;
  align-items: center;
  height: 5.5rem;
  margin-bottom: 1.25rem;
}

.partner__logo img {
  width: auto;
  max-width: 14rem;
  max-height: 100%;
}

/* Logos mit farbiger Vollfläche (z. B. DHL) bekommen leicht gerundete Ecken. */
.partner__logo--tile img {
  border-radius: 0.375rem;
}

.partner p {
  margin: 0;
  color: var(--muted);
}

.partner .partner__legal {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 1rem;
}

/* ---------- Öffnungszeiten & Kontakt ---------- */

.hours {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  padding: 0.875rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.hours th {
  font-weight: 600;
  text-align: left;
  color: var(--navy);
}

.hours td {
  text-align: right;
  white-space: nowrap;
}

.hours tr.is-today th,
.hours tr.is-today td {
  background: var(--bg-today);
}

.hours tr.is-today th {
  box-shadow: inset 0.3125rem 0 0 var(--orange);
}

.hours tr:first-child > :first-child { border-top-left-radius: var(--radius); }
.hours tr:first-child > :last-child { border-top-right-radius: var(--radius); }
.hours tr:last-child > :first-child { border-bottom-left-radius: var(--radius); }
.hours tr:last-child > :last-child { border-bottom-right-radius: var(--radius); }

.today-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.5rem;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  vertical-align: 0.1em;
}

.hours-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 48rem) {
  .contact-card {
    padding: 2rem;
  }
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-list .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1em;
  color: var(--orange-text);
}

.contact-list .label {
  display: block;
  font-size: 1rem;
  color: var(--muted);
}

.contact-list a {
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 29.99rem) {
  .contact-actions .btn {
    width: 100%;
  }
}

/* ---------- Unterseiten ---------- */

.page-header {
  padding-block: 2.5rem;
  background: var(--navy);
  color: var(--on-dark);
}

.page-header h1 {
  margin: 0;
  color: var(--on-dark);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose address {
  margin-bottom: 1em;
}

.meta {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Fußbereich ---------- */

.site-footer {
  padding-block: 2.5rem 1.5rem;
  background: var(--navy);
  color: var(--on-dark-muted);
  font-size: 1rem;
}

.site-footer a {
  color: var(--on-dark);
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer-title {
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--on-dark);
}

.site-footer p {
  margin: 0;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding-block: 0.3rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Nutzereinstellungen ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Windows-Kontrastdesigns */
@media (forced-colors: active) {
  .hero::after,
  .section__head h2::after,
  .status::before {
    display: none;
  }

  .card__icon,
  .steps li::before,
  .today-badge {
    border: 1px solid CanvasText;
  }
}

/* ---------- Druck ---------- */

@media print {
  .skip-link,
  .site-nav,
  .header-call,
  .hero__actions,
  .hero::after,
  .contact-actions {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  .hero,
  .page-header,
  .site-footer {
    background: none;
    color: #000;
  }

  .hero h1,
  .page-header h1,
  .site-footer a,
  .footer-title,
  .lead {
    color: #000;
  }

  .card,
  .hero-card {
    box-shadow: none;
  }
}
