/*
Theme Name: AutomatenLotse
Description: Theme der Seite AutomatenLotse (AT). Dunkler Schiefergrund, Rot-Weiß-Rot als schmale Kante, ein Alpenblau für Links. Erlaubte Blöcke: Überschriften, Text, Tabelle, Listen, Pro und Contra, Bild über die volle Breite, Autorenzitat.
Version: 1.0.0
Author: WP-generator
Text Domain: wpgen
*/

/* Inter, variable, self-hosted. Two files cover weights 100-900. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2-variations"),
       url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var-italic.woff2") format("woff2-variations"),
       url("assets/fonts/inter-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Slate is the ground, the flag's red carries every call to action, white
     is the reading surface. A muted alpine blue does the links so that red
     stays a signal and never turns into body colour. */
  --al-dunkel: #1D2731;
  --al-dunkel-2: #121A22;
  --al-hero: linear-gradient(158deg, #2C3C4A 0%, #1D2731 52%, #121A22 100%);
  --al-akzent: #1A6B86;          /* links, active states */
  --al-akzent-dunkler: #13566D;
  --al-rot: #C8102E;         /* CTA only, never body text */
  --al-rot-dunkler: #9E0C24;
  --al-himmel: #9DBCC9;            /* muted blue on dark ground */
  --al-gold: #C08A2E;
  --al-logo-a: #ffffff;
  --al-logo-b: #E8B4B8;
  --al-schrift: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --al-text: #1A222B;
  --al-gedaempft: #5E6C79;
  --al-linie: #DFE4E9;
  --al-karte: #ffffff;
  --al-seite: #F4F5F3;
  --al-plus: #E7F1E9;
  --al-plus-linie: #2C7A47;
  --al-minus: #F9EAEB;
  --al-minus-linie: #B3352F;
  --al-radius: 12px;
  --al-breite: 1180px;
  /* Mascot used as the icon of the "was schiefgelaufen ist" box. The path must
     be absolute: url() inside a custom property resolves from the file where
     the property is USED, not where it is declared. */
  --al-icon-hinweis: url('/wp-content/themes/wpgen-AT/assets/mascot.svg');
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--al-seite);
  color: var(--al-text);
  font: 400 18px/1.65 var(--al-schrift);
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.2px; }

img { max-width: 100%; height: auto; }
a { color: var(--al-akzent); }

.al-rahmen { max-width: var(--al-breite); margin: 0 auto; padding: 0 20px; }

/* ---------------- header ---------------- */

/* The flag appears once as a hairline over the header: three segments in the
   national order: red, white, red. */
.al-kopf { background: var(--al-dunkel); border-bottom: 1px solid #2C3C4A; }
.al-trikolore {
  display: flex;
  height: 4px;
}
.al-trikolore span { flex: 1; }
.al-trikolore span:nth-child(1) { background: var(--al-rot); }
.al-trikolore span:nth-child(2) { background: #ffffff; }
.al-trikolore span:nth-child(3) { background: var(--al-rot); }

/* Logo stays centred; the burger is absolutely placed so the mark does not
   shift when the button appears on narrow screens. */
.al-kopf-reihe {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}

.al-umschalter {
  display: none;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  cursor: pointer;
}
.al-umschalter span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.al-umschalter span + span { margin-top: 5px; }
.al-umschalter:hover { border-color: var(--al-rot); }
.al-umschalter:hover span { background: #fff; }
.al-umschalter.al-offen span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.al-umschalter.al-offen span:nth-child(2) { opacity: 0; }
.al-umschalter.al-offen span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.al-marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.al-marke-schild {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: flex; align-items: center; justify-content: center;
}
.al-marke-schild img { width: 100%; height: 100%; object-fit: contain; display: block; }

.al-marke-text { display: block; line-height: 1.04; }
.al-marke-text .al-marke-zeile1 {
  display: block; color: var(--al-himmel); font-size: 12px; font-weight: 700;
  letter-spacing: 3.4px; margin-right: -3.4px; text-transform: uppercase;
}
.al-marke-text .al-marke-zeile2 { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.4px; }
.al-marke-text .al-marke-zeile2 b { color: var(--al-logo-a); font-weight: 800; }
.al-marke-text .al-marke-zeile2 i { color: var(--al-logo-b); font-weight: 800; font-style: normal; }

.al-menu { border-top: 1px solid #16457F; }
.al-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.al-menu a {
  display: block; color: #D3E2F2; text-decoration: none; font-size: 15px; font-weight: 700;
  padding: 13px 14px;
}
.al-menu a:hover, .al-menu .current-menu-item > a { color: #fff; }
.al-menu .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--al-rot); }

.al-menu li { position: relative; display: flex; align-items: stretch; }

/* Arrow-only toggle next to the link: the link itself is left alone so it
   always navigates to the hub page, on every screen size. */
.al-menu-pfeil-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; margin: 0;
  color: #D3E2F2; padding: 0 12px;
}
.al-menu-pfeil-btn:hover, .menu-item-has-children.al-offen > .al-menu-pfeil-btn { color: #fff; }

.al-menu-pfeil {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.menu-item-has-children.al-offen .al-menu-pfeil { transform: rotate(-135deg) translate(-2px, -2px); }

.al-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 246px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #16212C;
  border: 1px solid #2C3C4A;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
}
.menu-item-has-children.al-offen > .sub-menu { display: block; }

/* a third level flies out to the right instead of stacking below */
.al-menu .sub-menu .sub-menu { top: -7px; left: 100%; }

.al-menu .sub-menu a {
  flex: 1 1 auto;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.al-menu .sub-menu a:hover { background: #16457F; color: #fff; }

/* desktop: hovering (or focusing into) the item opens its dropdown; the
   arrow button remains for touch and keyboard use via .al-offen above */
@media (min-width: 1041px) {
  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu { display: block; }

  /* a nested item's arrow points at its own flyout, to the right, not down */
  .al-menu .sub-menu .al-menu-pfeil { transform: rotate(-45deg); }
  .al-menu .sub-menu .menu-item-has-children.al-offen > .al-menu-pfeil-btn .al-menu-pfeil { transform: rotate(135deg); }
}

/* ---------------- menu on narrow screens ---------------- */

@media (max-width: 1040px) {
  .al-umschalter { display: block; }

  .al-menu {
    display: none;
    border-top: 1px solid #16457F;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .al-menu.al-offen { display: block; }

  .al-menu ul { display: block; }
  .al-menu li { position: static; display: flex; align-items: stretch; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .al-menu li:last-child { border-bottom: 0; }
  .al-menu a { display: block; flex: 1 1 auto; padding: 14px 4px; font-size: 16px; text-align: left; }
  .al-menu-pfeil-btn { flex: 0 0 auto; padding: 14px 10px; }
  .al-menu .current-menu-item > a { box-shadow: none; color: #fff; }

  .al-menu .sub-menu, .al-menu .sub-menu .sub-menu {
    position: static;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .24);
    margin: 0 -20px;
    padding: 4px 20px 8px;
  }
  .al-menu .sub-menu a { padding: 11px 12px; font-size: 15px; }
  .al-menu .sub-menu .sub-menu { margin: 0; padding-left: 14px; }

  body.al-menu-schloss { overflow: hidden; }
}

/* ---------------- hero ---------------- */

/* Flat bottom edge with a diagonal cut, not an arc: the shape is the strongest
   thing that separates this brand from the rest of the comparison sites. */
.al-intro {
  position: relative;
  overflow: hidden;
  background: var(--al-hero);
  color: #fff;
  padding: 30px 0 54px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}
.al-intro .al-rahmen { position: relative; z-index: 2; }

.al-intro .al-brotkrumen { font-size: 14px; color: #A8C4E0; margin-bottom: 18px; }
.al-intro .al-brotkrumen a { color: #A8C4E0; text-decoration: none; }
.al-intro .al-brotkrumen a:hover { color: #fff; }

.al-intro-solo .al-intro-raster { grid-template-columns: 1fr; }
.al-intro-solo h1 { max-width: 24ch; }
.al-intro-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: center; }
.al-intro h1 {
  font-size: clamp(30px, 4.6vw, 47px);
  line-height: 1.08; margin: 0 0 16px; font-weight: 800; letter-spacing: -.8px;
}
.al-intro p.al-lead { max-width: 64ch; font-size: clamp(16px, 1.35vw, 19px); font-weight: 400; color: #DFEAF6; margin: 0 0 22px; }
.al-intro p.al-lead strong { color: #fff; font-weight: 700; }
.al-intro-bild { border-radius: var(--al-radius); overflow: hidden; }

.al-kachel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.al-kachel-link {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--al-radius); padding: 16px 12px; text-align: center;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .4px;
}
.al-kachel-link:hover { background: rgba(255, 255, 255, .12); }
.al-kachel-link .al-kachel-icon { display: block; font-size: 24px; margin-bottom: 8px; }

/* ---------------- author blocks ---------------- */

.al-signatur { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 22px; }
.al-signatur .al-signatur-person { display: flex; align-items: center; gap: 10px; }
.al-signatur img, .al-visitenkarte img {
  border-radius: 50%; background: #16457F; object-fit: cover; flex: 0 0 auto;
}
.al-signatur img { width: 42px; height: 42px; }
.al-visitenkarte img { width: 72px; height: 72px; }
.al-signatur .al-signatur-daten { font-size: 13.5px; line-height: 1.4; color: #E7F0F9; }
.al-signatur .al-signatur-daten .al-signatur-rolle { color: #A8C4E0; }
.al-signatur .al-signatur-daten a { color: #fff; font-weight: 800; text-decoration: none; }
.al-signatur .al-signatur-daten a:hover { text-decoration: underline; }

.al-visitenkarte {
  background: var(--al-karte); border: 1px solid var(--al-linie); border-radius: var(--al-radius);
  border-top: 3px solid var(--al-rot);
  padding: 22px; display: flex; gap: 18px; align-items: flex-start; margin: 34px 0;
}
.al-visitenkarte .al-visitenkarte-body { flex: 1; }
.al-visitenkarte h2 { margin: 0 0 6px; font-size: 20px; padding: 0; border: 0; }
.al-visitenkarte .al-signatur-rolle { color: var(--al-gedaempft); font-size: 14px; margin: 0 0 10px; }
.al-visitenkarte p { margin: 0 0 10px; }
.al-visitenkarte .al-visitenkarte-link { font-weight: 800; text-decoration: none; }

/* Author quote. Italic is deliberately avoided: the italic font file is static
   and always renders heavy, so an italic quote reads as a bolded paragraph. */
.al-zitat {
  border-left: 4px solid var(--al-rot);
  background: #F1F6FC;
  border-radius: 0 var(--al-radius) var(--al-radius) 0;
  padding: 20px 24px; margin: 30px 0; font-size: 19px; line-height: 1.55;
  font-style: normal; font-weight: 400; color: var(--al-text);
}
.al-zitat p { margin: 0 0 10px; }
.al-zitat p:last-child { margin-bottom: 0; }
.al-zitat footer,
.al-zitat cite {
  display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 700;
  letter-spacing: .2px; color: var(--al-akzent);
}
.al-zitat cite::before { content: "— "; }

/* ---------------- content ---------------- */

.al-inhalt { padding: 30px 0 10px; }
.al-panel { background: var(--al-karte); border: 1px solid var(--al-linie); border-radius: var(--al-radius); padding: 28px 30px; }

/* Section headings carry a red bar on the left instead of an underline: it
   scans faster in a long page and does not collide with the first paragraph. */
.al-text h2 {
  font-size: 27px; margin: 36px 0 14px; letter-spacing: -.4px; line-height: 1.22;
  padding-left: 16px; border-left: 5px solid var(--al-rot);
}
.al-text h3 { font-size: 21px; margin: 26px 0 10px; }
.al-text h2:first-child, .al-text h3:first-child { margin-top: 0; }
.al-text p { margin: 0 0 16px; }
.al-text > *:first-child { margin-top: 0; }
.al-text > *:last-child { margin-bottom: 0; }
.al-text figure.wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.al-text figure.wp-block-table table { margin: 0; }
.al-text ul.wp-block-list, .al-text ol.wp-block-list { margin: 0 0 18px; padding-left: 22px; }
.al-text ul, .al-text ol { margin: 0 0 18px; padding-left: 22px; }
.al-text li { margin-bottom: 7px; }

.al-text table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.al-text th, .al-text td { border: 1px solid var(--al-linie); padding: 11px 13px; text-align: left; }
.al-text th { background: var(--al-dunkel); color: #fff; font-weight: 700; border-color: #1B5697; }
.al-text tr:nth-child(even) td { background: #F7FAFD; }

.al-text figure.al-bild,
.al-text figure.wp-block-image { margin: 28px 0; }
.al-text figure.al-bild img,
.al-text figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--al-radius);
  box-shadow: 0 6px 18px rgba(0, 24, 56, .10);
}
.al-text figure.al-bild img:hover,
.al-text figure.wp-block-image img:hover {
  box-shadow: 0 12px 28px rgba(0, 24, 56, .18);
  transform: translateY(-2px);
}
.al-text figure.al-bild figcaption,
.al-text figure.wp-block-image figcaption,
.al-text .wp-element-caption {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: #EFF4FA;
  border-left: 3px solid var(--al-rot);
  border-radius: 0 10px 10px 0;
  color: #4C5D6E;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.al-pro-contra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.al-pro-contra > div { border-radius: var(--al-radius); padding: 18px 20px; }
.al-pro-contra .al-pluspunkte { background: var(--al-plus); border: 1px solid var(--al-plus-linie); }
.al-pro-contra .al-minuspunkte { background: var(--al-minus); border: 1px solid var(--al-minus-linie); }
.al-pro-contra h3 { margin: 0 0 10px; font-size: 17px; }
.al-pro-contra .al-pluspunkte h3 { color: #1F6437; }
.al-pro-contra .al-minuspunkte h3 { color: #93231E; }
.al-pro-contra ul { margin: 0; padding-left: 20px; }

.al-faq h3 { font-size: 19px; margin: 22px 0 8px; }
.al-faq p { margin: 0 0 14px; }

/* Accordion: the script turns H3 + paragraph pairs in the content into a
   clickable block, so the source text stays plain. */
.al-faq-punkt {
  border: 1px solid var(--al-linie);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.al-faq-punkt.al-offen { border-color: #B5CFE9; box-shadow: 0 2px 10px rgba(0, 24, 56, .08); }

.al-faq-frage {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 16px 18px;
  font: 700 17px/1.4 var(--al-schrift);
  color: var(--al-text);
  text-align: left;
  cursor: pointer;
}
.al-faq-frage:hover { background: #F4F8FC; }
.al-faq-frage-text { flex: 1; }

.al-faq-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  position: relative;
  border-radius: 50%;
  background: #E9F0F8;
}
.al-faq-icon::before, .al-faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  background: #3E5063;
  border-radius: 2px;
}
.al-faq-icon::after { transform: rotate(90deg); }
.al-faq-punkt.al-offen .al-faq-icon { background: var(--al-rot); transform: rotate(180deg); }
.al-faq-punkt.al-offen .al-faq-icon::before,
.al-faq-punkt.al-offen .al-faq-icon::after { background: #fff; }
.al-faq-punkt.al-offen .al-faq-icon::after { opacity: 0; }

.al-faq-antwort { display: none; padding: 0 18px 16px; }
.al-faq-punkt.al-offen .al-faq-antwort { display: block; }
.al-faq-antwort p { margin: 0 0 10px; }
.al-faq-antwort p:last-child { margin-bottom: 0; }

/* ---------------- footer ---------------- */

.al-fuss { background: var(--al-dunkel); color: #C0D3E7; margin-top: 40px; padding: 34px 0 26px; font-size: 15px; }
.al-fuss-raster { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.al-fuss h4 { color: #fff; font-size: 15px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .6px; }
.al-fuss ul { list-style: none; margin: 0; padding: 0; }
.al-fuss li { margin-bottom: 8px; }
.al-fuss a { color: #C0D3E7; text-decoration: none; }
.al-fuss a:hover { color: #fff; }
.al-fuss-note { border-top: 1px solid #16457F; margin-top: 26px; padding-top: 18px; font-size: 13px; color: #8CA7C2; }
.al-alter {
  display: inline-block; border: 2px solid var(--al-rot); color: #fff; border-radius: 50%;
  width: 34px; height: 34px; line-height: 30px; text-align: center; font-weight: 800; font-size: 12px;
  margin-right: 10px; vertical-align: middle;
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .al-intro { padding: 22px 0 40px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%); }
  .al-intro-raster { grid-template-columns: 1fr; gap: 22px; }
  .al-intro-bild { order: 2; max-width: 440px; margin: 0 auto; width: 100%; }
  .al-intro-solo h1 { max-width: none; }
  .al-kachel { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
  .al-kachel-link { padding: 14px 10px; font-size: 12px; }
  .al-fuss-raster { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .al-rahmen { padding: 0 16px; }

  .al-intro-bild { max-width: 340px; }
  .al-intro p.al-lead { font-size: 16px; }
  .al-signatur { gap: 14px; margin-top: 18px; }
  .al-signatur .al-signatur-person { flex: 1 1 100%; }

  .al-inhalt { padding: 22px 0 6px; }
  .al-panel { padding: 20px 16px; }
  .al-text h2 { font-size: 22px; margin: 28px 0 10px; padding-left: 12px; border-left-width: 4px; }
  .al-text h3 { font-size: 19px; }
  .al-pro-contra { grid-template-columns: 1fr; }
  .al-visitenkarte { flex-direction: column; }
  .al-fuss-raster { grid-template-columns: 1fr; }
  .al-text table { display: block; overflow-x: auto; }
}

/* ---------------- author profile ---------------- */

.al-profil {
  display: flex; gap: 22px; align-items: flex-start;
  background: #F2F6FB; border: 1px solid var(--al-linie); border-radius: var(--al-radius);
  padding: 22px 24px; margin: 0 0 28px;
}
.al-profil img {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; background: #16457F; flex: 0 0 auto;
}
.al-profil .al-visitenkarte-body { flex: 1; min-width: 0; }
.al-profil .al-signatur-rolle { font-size: 16px; font-weight: 700; color: var(--al-text); margin: 0 0 14px; }
.al-profil ul.al-profil-daten { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.al-profil ul.al-profil-daten li {
  padding: 7px 0; border-top: 1px solid var(--al-linie); margin: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.al-profil ul.al-profil-daten li:first-child { border-top: 0; padding-top: 0; }
.al-profil ul.al-profil-daten strong { flex: 0 0 210px; color: var(--al-gedaempft); font-weight: 700; }

.al-profil.al-profil-klein { margin: 0 0 18px; padding: 20px 22px; }
.al-profil.al-profil-klein img { width: 120px; height: 120px; }
.al-profil.al-profil-klein h3 { margin: 0 0 4px; font-size: 20px; }
.al-profil.al-profil-klein h3 a { text-decoration: none; }
.al-profil.al-profil-klein .al-signatur-rolle { font-size: 14px; color: var(--al-gedaempft); font-weight: 700; margin: 0 0 10px; }
.al-profil.al-profil-klein p { margin: 0 0 10px; }
.al-profil.al-profil-klein .al-visitenkarte-link { font-weight: 800; text-decoration: none; }

/* ---------------- self-assessment test ---------------- */

.al-test { margin: 26px 0 32px; }
.al-test-app {
  border: 1px solid var(--al-linie); border-radius: var(--al-radius);
  background: #F2F6FB; padding: 24px 26px;
}
.al-test-kopf h3 { margin: 0 0 4px; font-size: 20px; }
.al-test-verlauf { margin: 0 0 18px; font-size: 14px; color: var(--al-gedaempft); }

/* The separator is drawn with ::before, not border-top: a flex legend stops
   breaking the fieldset frame and the rule would run through the text. */
.al-test-frage { border: 0; margin: 0; padding: 0 0 4px; }
.al-test-frage + .al-test-frage::before {
  content: ""; display: block; height: 1px; background: var(--al-linie); margin: 18px 0;
}
.al-test-frage legend { display: flex; gap: 10px; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.al-test-frage .al-test-optionen { clear: both; }
.al-test-frage legend .al-test-nummer {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: #DCE5EF;
  color: var(--al-gedaempft); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.al-test-frage.al-test-fertig legend .al-test-nummer { background: var(--al-akzent); color: #fff; }
.al-test-frage legend .al-test-wortlaut { font-weight: 700; }

.al-test-frage .al-test-optionen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.al-test-frage .al-test-optionen input { position: absolute; opacity: 0; width: 0; height: 0; }
.al-test-frage .al-test-optionen label {
  display: block; text-align: center; cursor: pointer; user-select: none;
  border: 1px solid var(--al-linie); border-radius: 10px; background: #fff;
  padding: 10px 8px; font-size: 14px; line-height: 1.3;
}
.al-test-frage .al-test-optionen label:hover { border-color: var(--al-akzent); }
.al-test-frage .al-test-optionen input:checked + label {
  background: var(--al-akzent); border-color: var(--al-akzent); color: #fff; font-weight: 700;
}
.al-test-frage .al-test-optionen input:focus-visible + label { outline: 2px solid var(--al-akzent); outline-offset: 2px; }

.al-test-senden, .al-test-neu {
  margin-top: 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--al-rot); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 800; padding: 13px 22px;
}
.al-test-senden:hover:enabled, .al-test-neu:hover { background: var(--al-rot-dunkler); }
.al-test-senden:disabled { background: #D3DCE5; color: #7C8B9A; cursor: not-allowed; }
.al-test-note { margin: 12px 0 0; font-size: 13.5px; color: var(--al-gedaempft); }

.al-test-ergebnis { display: none; }
.al-test-ergebnis.al-test-sichtbar { display: block; margin-top: 26px; padding-top: 24px; border-top: 2px solid var(--al-linie); }
.al-test-abzeichen { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 10px; color: #fff; }
.al-test-abzeichen .al-test-o-titel { font-size: 21px; font-weight: 800; }
.al-test-abzeichen .al-test-o-body { font-size: 14px; opacity: .92; }
.al-test-abzeichen.al-z0 { background: #2C7A47; }
.al-test-abzeichen.al-z1 { background: #6E9A46; }
.al-test-abzeichen.al-z2 { background: #C98A2E; }
.al-test-abzeichen.al-z3 { background: var(--al-rot); }

.al-test-skala-rahmen { margin: 18px 0 6px; }
.al-test-skala { width: 100%; height: auto; display: block; }
.al-test-skala .al-test-g-body { font-family: var(--al-schrift); font-size: 21px; font-weight: 800; fill: #1A222B; }
.al-test-skala .al-test-g-band { font-family: var(--al-schrift); font-size: 13px; fill: #5A6B7C; }
.al-test-skala .al-test-g-achse { font-family: var(--al-schrift); font-size: 12.5px; fill: #8496A8; }

.al-test-lead { margin: 6px 0 18px; }
.al-test-teile { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 12px; }
.al-test-teil .al-test-teil-kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.al-test-teil .al-test-teil-name { color: var(--al-gedaempft); }
.al-test-teil .al-test-teil-wert { font-weight: 800; }
.al-test-teil .al-test-teil-bahn { height: 12px; border-radius: 6px; background: #DCE5EF; overflow: hidden; }
.al-test-teil .al-test-teil-fuellung { height: 100%; border-radius: 6px; }
.al-test-teile-note { font-size: 15px; color: var(--al-gedaempft); margin: 0 0 20px; }
.al-test-ergebnis h4 { font-size: 18px; margin: 0 0 10px; }
.al-test-schritte { margin: 0 0 18px; padding-left: 22px; }
.al-test-schritte li { margin-bottom: 8px; }
.al-test-warnung { font-size: 14px; color: var(--al-gedaempft); margin: 0; }

@media (max-width: 640px) {
  .al-profil { flex-direction: column; padding: 18px 16px; }
  .al-profil img { width: 120px; height: 120px; }
  .al-profil ul.al-profil-daten li { display: block; }
  .al-profil ul.al-profil-daten strong { display: block; flex: none; }

  .al-test-app { padding: 18px 14px; }
  .al-test-frage .al-test-optionen { grid-template-columns: 1fr 1fr; }
  .al-test-senden, .al-test-neu { width: 100%; }
  .al-test-teile { grid-template-columns: 1fr; }
  /* The svg scales with its viewBox, so on a narrow screen the labels have to
     grow in user units or they become unreadable. */
  .al-test-skala .al-test-g-body { font-size: 30px; }
  .al-test-skala .al-test-g-band { font-size: 19px; }
  .al-test-skala .al-test-g-achse { font-size: 17px; }
  .al-test-teil .al-test-teil-kopf { display: block; }
  .al-test-teil .al-test-teil-wert { display: block; margin-top: 2px; }
}

/* ---------- "Jak testujeme": the four steps, rendered by the theme ---------- */

.al-methode { margin: 30px 0 0; }
.al-methode-titel { font-size: 22px; margin: 0 0 6px; letter-spacing: -.3px; }
.al-methode-lead { color: var(--al-gedaempft); font-size: 16px; margin: 0 0 20px; max-width: 78ch; }
.al-methode-mehr { margin: 16px 0 0; font-size: 15px; }
.al-methode-icon { width: 24px; height: 24px; display: block; }

.al-methode-schritte {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.al-methode-schritt { position: relative; padding: 0 14px; text-align: center; margin: 0; }
.al-methode-schritt::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 50%;
  border-top: 2px solid var(--al-linie);
}
.al-methode-schritt::after {
  content: ""; position: absolute; top: 27px; left: 50%; right: 0;
  border-top: 2px solid var(--al-linie);
}
.al-methode-schritt:first-child::before, .al-methode-schritt:last-child::after { display: none; }
.al-methode-zeichen {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--al-dunkel); color: #fff;
}
.al-schritt-uhr .al-methode-zeichen { background: var(--al-rot); color: #fff; }
.al-methode-nummer {
  position: absolute; right: -4px; bottom: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--al-dunkel);
  border: 2px solid var(--al-linie);
  font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}
.al-methode-body { display: block; margin-top: 12px; }
.al-methode-schritt-titel { display: block; font-size: 16px; line-height: 1.3; font-weight: 800; }
.al-methode-note { display: block; color: var(--al-gedaempft); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.al-methode-detail { display: block; font-size: 14px; line-height: 1.5; margin-top: 8px; text-align: left; }

@media (max-width: 860px) {
  .al-methode-schritte { grid-template-columns: 1fr 1fr; }
  .al-methode-schritt { padding-bottom: 20px; }
  .al-methode-schritt:nth-child(2)::after, .al-methode-schritt:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .al-methode-schritte { grid-template-columns: 1fr; }
  .al-methode-schritt { display: flex; gap: 14px; text-align: left; padding: 0 0 18px; }
  .al-methode-schritt::before, .al-methode-schritt::after { display: none; }
  .al-methode-schritt:not(:last-child) .al-methode-zeichen::after {
    content: ""; position: absolute; left: 50%; top: 54px; height: 34px;
    border-left: 2px solid var(--al-linie);
  }
  .al-methode-zeichen { flex: 0 0 54px; }
  .al-methode-body { margin-top: 2px; }
}

/* "Kde to zadrhlo": the log of what actually failed during a test. */
.al-haken {
  position: relative;
  border: 1px solid var(--al-linie);
  border-left: 3px solid var(--al-rot);
  border-radius: 10px;
  background: #F7FAFD;
  padding: 16px 18px 14px 60px;
  margin: 22px 0;
}
.al-haken::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: var(--al-icon-hinweis, none) center/contain no-repeat;
  opacity: .95;
}
.al-haken h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--al-text);
}
.al-haken p { margin: 0 0 10px; }
.al-haken p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .al-haken { padding: 14px; }
  .al-haken::before { position: static; display: block; margin-bottom: 8px; }
}

/* Hub page that is nothing but a list of its children. */
.al-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.al-liste-punkt { border: 1px solid var(--al-linie); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.al-liste-rubrik { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--al-rot); }
.al-liste-titel { font-size: 20px; font-weight: 800; line-height: 1.3; text-decoration: none; }
.al-liste-titel:hover { text-decoration: underline; }
.al-liste-text { margin: 0; color: var(--al-gedaempft); line-height: 1.55; }
.al-liste-spur { margin-top: auto; padding-top: 10px; display: flex; gap: 16px; color: var(--al-gedaempft); font-size: 14px; }
.al-liste-leer { color: var(--al-gedaempft); margin: 0; }
@media (max-width: 720px) { .al-liste { grid-template-columns: 1fr; } }
.al-text:has(> .al-liste), .al-text:has(> .al-liste-leer) { background: none; border: 0; padding: 0; }

/* ---------------- disclaimer under the byline ---------------- */

.al-warnung {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px;
  line-height: 1.55;
  color: #BFD3E8;
  max-width: 82ch;
}
.al-warnung-alter {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border: 1px solid var(--al-rot);
  border-radius: 20px;
  color: #fff;
  background: var(--al-rot);
  font-weight: 800;
  font-size: 12px;
}

/* ---------------- portrait on the author page ---------------- */

.al-intro-autor .al-rahmen { position: relative; }
.al-portraet {
  position: absolute; right: 0; top: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.al-portraet img {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(215, 20, 26, .55);
  box-shadow: 0 14px 34px rgba(0, 18, 42, .5);
}
.al-portraet .al-portraet-stadt { font-size: 13px; color: #A8C4E0; letter-spacing: .3px; }
.al-intro-autor h1, .al-intro-autor p.al-lead { max-width: 30ch; }

@media (max-width: 900px) {
  .al-portraet { position: static; align-items: flex-start; margin-top: 18px; }
  .al-portraet img { width: 128px; height: 128px; }
  .al-intro-autor h1, .al-intro-autor p.al-lead { max-width: none; }
}

/* ---------------- in-content CTA banner ---------------- */

.al-banner { display: block; margin: 30px 0; }
.al-banner img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 24, 56, .16);
}
.al-banner--hell img { box-shadow: 0 10px 24px rgba(0, 24, 56, .10); }

@media (max-width: 640px) {
  .al-banner { margin: 22px 0; }
  .al-banner img { border-radius: 14px; }
}

/* Eight top-level menu items do not fit a row at the base size, so the desktop
   breakpoint tightens them. Submenus stay comfortable. */
@media (min-width: 1041px) {
  .al-menu a { font-size: 14px; padding: 12px 9px; }
  .al-menu-pfeil-btn { padding: 0 8px; }
  .al-menu .sub-menu a { font-size: 14px; padding: 9px 15px; }
}

/* ---------------- hover states ----------------
   Static: the state changes at once, nothing fades or moves. */

.al-marke:hover .al-marke-schild img { transform: rotate(-6deg) scale(1.06); }

.al-text p a { text-underline-offset: 3px; }
.al-text p a:hover { color: var(--al-akzent-dunkler); }

.al-liste-punkt:hover {
  border-color: #BCD3EA;
  box-shadow: 0 10px 26px rgba(0, 24, 56, .10);
}

.al-banner:hover img { box-shadow: 0 18px 36px rgba(0, 24, 56, .22); }

.al-text tbody tr:hover td { background: #EEF4FB; }

.al-methode-schritt:hover .al-methode-zeichen { box-shadow: 0 8px 18px rgba(0, 24, 56, .22); }
