
/* Biering Informationstechnik – one stylesheet for all pages.
   No external fonts or resources on purpose (DSGVO). Keep it that way. */

/* ---------- Colors: light theme (default) ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --blue: #26379a;
  --blue-deep: #182266;
  --btn: #26379a;
  --btn-hover: #182266;
  --grey: #9c9fa5;
  --grey-text: #5f6472;
  --ink: #1a1f36;
  --mist: #eef1f8;
  --line: #d3d9e8;
  --flash: #dbe3ff;
  --bar: #1a1f36;
  --ok: #1a7f37;
}

/* Dark theme: <html data-theme="dark"> is set by theme-init.js (before paint)
   and by script.js when the visitor switches. Only variables change here. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1324;
  --blue: #8ea2ff;
  --blue-deep: #0a0d1a;
  --btn: #3a4fc4;
  --btn-hover: #4b60d8;
  --grey: #6d7390;
  --grey-text: #9aa1b8;
  --ink: #e6e9f5;
  --mist: #171c33;
  --line: #2a3150;
  --flash: #2b3772;
  --bar: #070a14;
  --ok: #7fdc9a;
}

.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
:root[data-theme="dark"] .site-foot { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .toast { border: 1px solid var(--line); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- Base ---------- */

body {
  margin: 0;
  font: 17px/1.6 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header: logo + navigation ---------- */
.site-head .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand img { display: block; height: 62px; width: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: .4rem 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  padding: 4rem 0 4.5rem;
}
.hero .wrap { position: relative; }
.hero h1 {
  margin: 0 0 1rem;
  max-width: 20ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.hero .lead { max-width: 34rem; margin: 0; font-size: 1.15rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem 3rem;
}

.hours { margin: .1rem 0 1rem; font-weight: 600; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  border: 1.4rem solid var(--grey);
  border-left-color: transparent;
  opacity: .3;
  transform: translate(-45%, -52%) rotate(-25deg);
  pointer-events: none;
}
.hero-visual img {
  position: relative;
  display: block;
  width: 112%;
  max-width: none;
  margin-left: -6%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(15, 19, 36, .28));
}
:root[data-theme="dark"] .hero-visual img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .5)) drop-shadow(0 18px 24px rgba(0, 0, 0, .55));
}

.phone-intro {
  margin: 2rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.phone {
  display: inline-block;
  margin: .1rem 0 .25rem;
  font-size: clamp(2.3rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  text-decoration: none;
}
.phone:hover { text-decoration: underline; text-underline-offset: .12em; }
.phone-sub { margin: 0 0 1.5rem; color: var(--grey-text); }
.phone-sub a { color: inherit; }

.btn {
  display: inline-block;
  padding: .7rem 1.25rem;
  border-radius: 6px;
  background: var(--btn);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--btn-hover); }

/* ---------- Page sections ---------- */
.section { padding: 3.5rem 0; }
.section h2.section-title { margin: 0 0 1.5rem; font-size: 1.6rem; line-height: 1.2; }
.page-title { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.page-intro { max-width: 38rem; margin: 0 0 2.5rem; color: var(--grey-text); }
.cta-row { margin-top: 2rem; }

/* ---------- Service list (.svc) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: .35rem 2.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h2, .svc h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.svc .maker { margin: .25rem 0 0; color: var(--grey-text); font-size: .95rem; }
.svc p { margin: 0 0 .5rem; max-width: 38rem; }

.svc .eg { margin: .75rem 0 .25rem; font-weight: 600; }
.svc ul { margin: 0 0 .5rem; padding-left: 1.2rem; max-width: 38rem; }
.svc ul li { margin: 0 0 .3rem; }

/* ---------- Home: service icons ---------- */
.svc-list--icons .svc { position: relative; }
.svc-icon {
  position: absolute;
  top: 1.05rem;
  left: -4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
  color: var(--blue);
  text-decoration: none;

  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, background-color .2s;
}
.svc-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 76.01rem) {
  .section h2.section-title.section-title-hang { margin-left: -4.5rem; }
}

@media (max-width: 76rem) {
  .svc-list--icons .svc { padding-left: 3.75rem; }
  .svc-icon { left: 0; top: .7rem; }
}

/* ---------- Home: clickable services ---------- */
.svc-link {
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.svc-link:hover,
.svc:has(.svc-icon:hover) .svc-link {
  color: var(--blue);
  background: var(--mist);
  box-shadow: 0 0 0 .3rem var(--mist);
}
.svc-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.svc-icon:hover,
.svc:has(.svc-link:hover) .svc-icon {
  transform: translateY(-3px) scale(1.12);
  border-color: var(--blue);
}
@media (prefers-reduced-motion: reduce) {
  .svc-icon { transition: border-color .2s; }
  .svc-icon:hover, .svc:has(.svc-link:hover) .svc-icon { transform: none; }
}

/* ---------- Home: partner logos ---------- */
.partners { padding-top: 1.5rem; }

.partners-title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 2.25rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--grey-text);
}
.partners-title::before,
.partners-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.75rem 2rem;
  align-items: center;
}
.partner-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.partner-list a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
}
.partner-list a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.partner-hint {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: .45rem;
  transform: translate(-50%, -3px);
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--blue);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.partner-list a:hover .partner-hint,
.partner-list a:focus-visible .partner-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}
.partner-list img {
  display: block;
  height: var(--h, 2.5rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .2s ease, opacity .2s ease;
}
.partner-list a:hover img,
.partner-list a:focus-visible img { filter: none; opacity: 1; }
:root[data-theme="dark"] .partner-list img { filter: grayscale(1) invert(1); opacity: .75; }
:root[data-theme="dark"] .partner-list a:hover img,
:root[data-theme="dark"] .partner-list a:focus-visible img { filter: grayscale(1) invert(1); opacity: 1; }

.p-agfeo    { --h: 2.6rem; }
.p-tobit    { --h: 3.4rem; }
.p-wortmann { --h: 2.2rem; }
.p-terra    { --h: 3.8rem; }
.p-lancom   { --h: 2.1rem; }
.p-abus     { --h: 3rem; }

/* ---------- ÜBER UNS / KONTAKT ---------- */
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1rem; }

.prose h2 { margin: 2rem 0 .5rem; font-size: 1.25rem; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }

.page-title + .prose { margin-top: 1.25rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.5rem;
}
.contact-grid h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.contact-grid address { font-style: normal; }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; }
.facts dt { color: var(--grey-text); }
.facts dd { margin: 0; }

.fact-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 5rem 1fr;
  grid-template-columns: subgrid;
  align-items: center;
  border-radius: 6px;
}

.fact-row.is-flash { animation: row-flash 1.2s ease-in-out 3; }
@keyframes row-flash {
  0%, 100% { background: transparent; box-shadow: 0 0 0 .35rem transparent; }
  50%      { background: var(--flash); box-shadow: 0 0 0 .35rem var(--flash); }
}
@media (prefers-reduced-motion: reduce) {
  .fact-row.is-flash { animation: none; background: var(--flash); box-shadow: 0 0 0 .35rem var(--flash); }
}
.facts a { font-weight: 600; text-decoration: none; }
.facts a:hover { text-decoration: underline; }

/* ---------- Kontakt: opening hours ---------- */
.hours-block { display: flex; align-items: flex-start; gap: .9rem; margin: 0 0 1.4rem; }
.hours-block p { margin: 0; }
.hours-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  color: var(--blue);
}
.hours-svg { width: 1.3rem; height: 1.3rem; }

.link-icon { width: 1.15em; height: 1.15em; margin-right: .45rem; vertical-align: -.2em; }
.hours-svg, .link-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Footer ---------- */
.site-foot {
  margin-top: 2rem;
  background: var(--blue-deep);
  color: #dfe3f5;
  padding: 2.5rem 0;
  font-size: .95rem;
}
.site-foot .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1.5rem 3rem;
}
.site-foot .wrap > :last-child { justify-self: end; }
.foot-links { text-align: center; }

@media (max-width: 50rem) {
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .site-foot .wrap > :last-child { justify-self: start; }
  .foot-links { text-align: left; }
}

.foot-note {
  max-width: 68rem;
  margin: 1.75rem auto 0;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  text-align: center;
  font-size: .85rem;
  color: #b9c0e0;
}
.site-foot address { font-style: normal; }
.site-foot strong { color: #fff; }
.site-foot a { color: #fff; }

/* ---------- Copy buttons + toast ---------- */
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -.4rem 0 -.4rem .4rem;
  padding: 0;
  vertical-align: middle;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--blue);
  cursor: pointer;
}
.copy:empty { display: none; }
.copy:hover { background: var(--mist); }
.copy:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.copy.copied { color: var(--ok); border-color: var(--ok); }

.site-foot .copy {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

.site-foot .copy { width: 1.8rem; height: 1.8rem; }
.site-foot .wrap > div { line-height: 2.1; }
.site-foot .copy:hover { background: rgba(255, 255, 255, .14); }
.site-foot .copy:focus-visible { outline-color: #fff; }
.site-foot .copy.copied { color: #8ee2a3; border-color: #8ee2a3; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  padding: .7rem 1.25rem;
  border-radius: 6px;
  background: var(--bar);
  color: #fff;
  font-size: .95rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  pointer-events: none;
  z-index: 100;
}
.toast.show { opacity: 1; visibility: visible; }

/* ---------- Theme toggle + first-visit dialog ---------- */
.site-nav li { display: flex; align-items: center; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--mist); }
.theme-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.fx.fx-mul { mix-blend-mode: multiply; z-index: 39; }
.fx-toggle { margin-right: .5rem; }

.theme-dialog {
  width: min(30rem, calc(100% - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  animation: theme-pop .25s ease;
}
.theme-dialog::backdrop {
  background: rgba(10, 13, 26, .62);
  backdrop-filter: blur(3px);
}
.theme-dialog-body { padding: 2.25rem 1.75rem 2rem; text-align: center; }
.theme-dialog h2 {
  margin: 0 0 .6rem;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  line-height: 1.12;
}
.theme-dialog p { margin: 0 0 1.75rem; color: var(--grey-text); font-size: .98rem; }
.theme-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }

.theme-choice {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 9rem;
  justify-content: center;
  padding: .8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.theme-choice[data-theme-choice="dark"] { background: #0f1324; color: #e6e9f5; border-color: #2a3150; }
.theme-choice[data-theme-choice="light"] { background: #fff; color: #1a1f36; border-color: #cfd5e6; }
.theme-choice:hover { border-color: #8ea2ff; }
.theme-choice[data-theme-choice="light"]:hover { border-color: #26379a; }
.theme-choice:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@keyframes theme-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Tablet (< 60rem) ---------- */
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 30rem; margin: 1.5rem auto 0; }
  .hero-visual::before { width: 20rem; height: 20rem; }
  .hero-visual img { width: 100%; margin-left: 0; }
}

/* ---------- Phone (< 40rem) ---------- */
@media (max-width: 40rem) {
  body { font-size: 16px; }

  .theme-toggle-item { position: absolute; top: 1rem; right: 1.25rem; }
  .hero { padding: 2.75rem 0 3rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 24rem; margin: 1.5rem auto 0; padding: .5rem 0; }
  .hero-visual::before { width: 14rem; height: 14rem; }
  .partners-title { font-size: .8rem; letter-spacing: .1em; gap: .85rem; }
  .svc { grid-template-columns: minmax(0, 1fr); padding: 1.3rem 0; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .partner-list img, .partner-hint { transition: none; }
  .toast { transition: none; }
  .theme-dialog { animation: none; }
}

/* ---------- Nav item: Support (TeamViewer icon) ---------- */
.site-nav a.nav-support { display: inline-flex; align-items: center; gap: .4rem; }
.nav-support img { display: block; width: 1.2rem; height: 1.2rem; }

.nav-support img, .dl-card img { background: radial-gradient(circle closest-side, #fff 82%, transparent 82.5%); }

/* ---------- Support page ---------- */
.dl-card {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.5rem;
  max-width: 44rem;
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
}
.dl-card img { flex: none; width: 3.5rem; height: 3.5rem; }
.dl-card h2 { margin: 0 0 .35rem; font-size: 1.3rem; line-height: 1.25; }
.dl-card p { margin: 0 0 .75rem; }
.dl-card .dl-link { margin: .75rem 0 0; font-size: .95rem; color: var(--grey-text); overflow-wrap: anywhere; }

.steps { max-width: 38rem; margin: 0 0 2rem; padding-left: 1.4rem; }
.steps li { margin: 0 0 .75rem; padding-left: .25rem; }
.steps li::marker { font-weight: 700; color: var(--blue); }
.support-block { max-width: 38rem; margin: 0 0 2rem; }
.support-block h2 { margin: 0 0 .5rem; font-size: 1.3rem; line-height: 1.25; }
.support-block p, .support-block ul { margin: 0 0 .6rem; }
.support-block ul { padding-left: 1.2rem; }
.support-block li { margin: 0 0 .3rem; }
.support-block--tight { margin-bottom: .5rem; }
.support-note { max-width: 38rem; padding: 1rem 1.25rem; border-left: 4px solid var(--blue); background: var(--mist); }
@media (max-width: 36rem) {
  .dl-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Leistungen: photo tiles + detail panel ---------- */
.tiles-hint { margin: -1.5rem 0 1.25rem; color: var(--grey-text); }

.svc-tiles > ul {
  position: relative;
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.25rem;
}
.tile-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.tile-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.tile-img {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--mist);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.tile-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform .35s ease, opacity .25s ease;
}
:root[data-theme="dark"] .tile-img img { filter: brightness(.85); }
.tile-link:hover .tile-img img,
.tile-link:focus-visible .tile-img img { transform: scale(1.1); }

.tile-label { display: block; margin-top: .5rem; font-weight: 600; line-height: 1.3; }
.tile-link:hover .tile-label,
.tile-link:focus-visible .tile-label { color: var(--blue); }

.tile-more { display: none; }
@media (hover: none) {
  .tile-more { display: block; margin-top: .1rem; font-size: .85rem; color: var(--blue); }
  .tile-more::after { content: " \2192"; }
}

.tile-link.is-active .tile-img {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue), 0 6px 22px color-mix(in srgb, var(--blue) 35%, transparent);
}
.tile-link.is-active .tile-label { color: var(--blue); }

.svc-tiles.has-active .tile-link:not(.is-active) .tile-img img { opacity: .8; }
:root[data-theme="dark"] .svc-tiles.has-active .tile-link:not(.is-active) .tile-img img { opacity: .5; }
.svc-tiles.has-active .tile-link:not(.is-active):hover .tile-img img { opacity: 1; }

.svc-panel {
  grid-column: 1 / -1;
  position: relative;
  margin: .35rem 0 .5rem;
  padding: 1.9rem 2.25rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mist);
}
.svc-panel::before {
  content: "";
  position: absolute;
  top: -9px;
  left: var(--arrow-x, 50%);
  width: 16px;
  height: 16px;
  background: var(--mist);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.svc-panel.is-open { animation: panel-in .35s ease both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.svc-panel-list { list-style: none; margin: 0; padding: 0; }

.svc-panel .svc { padding: 0; border: 0; }
.svc-panel .svc h2 { font-size: 1.55rem; padding-right: 2.5rem; }
.svc-panel .svc h2:focus { outline: none; }
.svc-panel .svc ul { list-style: disc; }

.svc-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.svc-close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.svc-close:hover { color: var(--blue); border-color: var(--blue); }
.svc-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.svc-js .svc-list { display: none; }

@media (max-width: 40rem) {
  .svc-tiles > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
  .tile-label { font-size: .9rem; }
  .svc-panel { padding: 1.4rem 1.1rem 1.1rem; }
  .svc-panel .svc h2 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-img, .tile-img img { transition: none; }
  .svc-panel.is-open { animation: none; }
}

/* ---------- Home: partner badges ---------- */
.badges { padding-bottom: 1.5rem; }
.badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  padding: 1.25rem 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
:root[data-theme="dark"] .badge-card { background: #eef0f5; border-color: transparent; }
.badge-card img { display: block; height: var(--h, 8rem); width: auto; max-width: 100%; }

.b-agfeo { --h: 4.6rem; }
.b-tobit { --h: 6.6rem; }
.b-lancom { --h: 6.3rem; }
@media (max-width: 40rem) {
  .badge-card { min-height: 0; padding: 1rem 1.25rem; width: 100%; }
  .b-agfeo { --h: auto; }
  .b-agfeo img { width: 100%; height: auto; }
  .b-tobit { --h: 7.5rem; }
  .b-lancom { --h: 6.5rem; }
}

/* ---------- Notice banner (settings.js) ---------- */
.notice {
  background: #c62828;
  color: #fff;
  font-size: .95rem;
  line-height: 1.4;
  padding: .6rem 0;
  overflow: hidden;
  white-space: nowrap;
}
:root[data-theme="dark"] .notice { background: #b3261e; }
.notice-track {
  display: inline-flex;
  width: max-content;
  animation: notice-scroll 30s linear infinite;
}
.notice-item { flex: none; padding-right: 4rem; }
.notice:hover .notice-track { animation-play-state: paused; }
@keyframes notice-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .notice { text-align: center; white-space: normal; padding: .6rem 1.25rem; }
  .notice-track { display: block; width: auto; animation: none; }
  .notice-item { padding-right: 0; }
  .notice-item[aria-hidden="true"] { display: none; }
}

/* ---------- Seasonal effects (canvas) ---------- */
.fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}
