:root{
  /* Brand */
  --brand-dark:#062547;
  --brand-signal:#d6306f;
  --brand-accent:#5d88b6;
  /* Background */
  --bg-soft: #ecf1f6;
  --bg-soft-press: #e2edf7;
  /* Text */
  --text:#1f2833;
  --text-muted: #627082;
  /* Icons */
  --icon-muted: #bdc3c9;
  /* Links */
  --link: #196dc2;
  --link-hover: #165faa;
  /* Surfaces */
  --surface-bg:#ffffff;
  /* Spacing */
  --header-safe-x: 12px;
  --mobile-x:16px;
  --mobile-y:16px;
  --tablet-x:20px;
  /* Borders */
  --border-weak:rgba(6,37,71,.08);
  --border-strong:rgba(6,37,71,.16);
  /* Soft Signal */
  --soft-signal-bg:rgba(214,48,111,.12);
  --soft-signal-bg-hov:rgba(214,48,111,.16);
  --soft-signal-border:rgba(214,48,111,.26);
  --soft-signal-text:#a81c56;
  /* Success / Positive */
  --success:#2fa56a;
  --soft-success-bg:#cee5e0;
  --soft-success-border:#bfe3cd;
  --soft-success-text:#185137;
  /* Warning / Caution */
  --warning:#f0c546;
  --soft-warning-bg:#ede8d3;
  --soft-warning-border:#f6e2a2;
  --soft-warning-text:#7d5b14;
  /* Danger / Negative */
  --danger:#e05252;
  --soft-danger-bg:#ead8dc;
  --soft-danger-border:#f3b7b7;
  --soft-danger-text:#8b3030;
  /* Info / Neutral+ */
  --info:#1769aa;
  --soft-info-bg:rgba(23,105,170,.12);
  --soft-info-bg-hov:rgba(23,105,170,.16);
  --soft-info-border:rgba(23,105,170,.26);
  --soft-info-text:#135487;
  /* Pure Neutral */
  --neutral:#4b5563;
  --soft-neutral-bg:rgba(75,85,99,.10);
  --soft-neutral-bg-hov:rgba(75,85,99,.16);
  --soft-neutral-border:rgba(75,85,99,.22);
  --soft-neutral-text:#374151;
  /* Radii */
  --radius-lg:20px;
  --radius-md:16px;
  --radius-sm:12px;
  --radius-pill:999px;
  /* Buttons */
  --signal-glow: rgba(214,48,111,.34);
  --btn-py:10px;
  --btn-px:16px;
  --btn-gap:.5rem;
  --btn-font-weight:500;
  /* Chips - Typo & Spacing */
  --fs-chip: 13px;
  --lh-chip: 1.2;
  --chip-py: 5px;
  --chip-px: 10px;
  /* Interaction */
  --focus-ring-color:var(--brand-accent);
  --focus-ring-width:2px;
  --active-translate:1px;
  /* Header */
  --header-control-h: 40px;
  /* Remap of GeneratePress variables */
  --max-width: 1200px;
  --contrast: var(--text);
  --base-2: var(--surface-bg);
  --contrast-3: var(--brand-accent);
}


html { scroll-behavior:smooth; }
html, body { min-height:100%; }

@font-face{
  font-family: "Inter Var";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Inter Var";
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

strong, b { font-weight: 600 !important; }

body, button, input, select, textarea {
  font-family:"Inter Var", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
}

body {
      background: linear-gradient(
        rgba(93,136,182,.15) 150px,
        #fff9e655 400px,
        #d6306f05 600px,
        #5d88b620 2000px
      );
}

.grid-container { max-width: var(--max-width);}


@media (min-width: 1025px) {
  .one-container .container {
    box-shadow: 0 25px 20px var(--bg-soft);
  }
}

.one-container .site-content {
    padding: 35px 40px;
}

h1 { font-size: 32px; font-weight: 600;  line-height: 1.22; }
h2 { font-size: 24px; margin-top: 30px; margin-bottom: 14px; font-weight: 500; line-height: 1.24; }
h3 { font-size: 20px; margin-top: 30px; margin-bottom: 14px; font-weight: 500; line-height: 1.26; }

@media (max-width: 768px) {
  h1 { font-size: 26px; font-weight: 600; }
  h2 { font-size: 20px; margin-top: 30px; margin-bottom: 14px; font-weight: 500; }
  h3 { font-size: 18px; margin-top: 30px; margin-bottom: 14px; font-weight: 500; }
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aiui-btn { transition: none; }
}

/* Sidebar below content (Tablet + Mobile) */
@media (max-width: 1024px) {
  .site-content {
    display: flex;
    flex-direction: column;
  }
  .site-content .content-area,
  .site-content .sidebar {
    width: 100%;
    max-width: none;
  }
}

/* Sidebar */
.widget-area .widget {
    padding: 0 0 20px 20px;
}
@media (max-width: 1024px) {
    .widget-area .widget {
        padding-top: 30px;
        padding-left: 0;
        margin-bottom: 0;
    }
}

/* Padding in mobile header */
@media (max-width:768px){
  .aiui-header-inner,
  .aiui-footer-inner,
  .aiui-mobile-menu{
    padding-inline: var(--mobile-x);
  }
  .one-container .site-content{
    padding: var(--mobile-y) var(--mobile-x);
  }
}


/* Featured images in single posts and archives */
.single .featured-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.single .featured-image img { display: block; }
.archive .post-image,
.blog .post-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.archive .post-image img,
.blog .post-image img { display: block; }


/* ---- Buttons - Base & Variants ---- */
.aiui-btn{
  appearance:none;
  border:1px solid transparent;
  background:none;
  color:var(--text);
  font-size: 15px;
  font-weight:var(--btn-font-weight);
  padding:var(--btn-py) var(--btn-px);
  border-radius:var(--radius-pill);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--btn-gap);
  text-decoration:none;
  line-height:1;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .06s ease;
}
.aiui-btn:active{ transform:translateY(var(--active-translate)); }
.aiui-btn:focus-visible{
  outline:var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset:2px;
}

/* Disabled state */
.aiui-btn:disabled,
.aiui-btn[aria-disabled="true"]{
  opacity:.6;
  cursor:not-allowed;
  pointer-events:none;
  transform:none;
}

/* Variants */
.aiui-btn--primary{ background:var(--brand-dark); color:#fff; }
.aiui-btn--signal{  background:var(--brand-signal); color:#fff; }
.aiui-btn--outline{ background:#fff; color:var(--text); border-color:var(--border-strong); }
.aiui-btn--soft-signal{
  background:var(--soft-signal-bg);
  border-color:var(--soft-signal-border);
  color:var(--soft-signal-text);
}
.aiui-btn--ghost{ background:transparent; color:var(--text); }
.aiui-btn--ghost-on-dark{ color:#fff; }

.aiui-btn--with-icon svg,
.aiui-btn--with-icon .icon{
  width:16px;
  height:16px;
  flex:0 0 16px;
  fill: currentColor;
}

/* Buttons two-line (vertical) */
.aiui-btn--2line{
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:10px 16px;
  border-radius:var(--radius-md);
  white-space:normal;
  text-align:center;
  min-width:160px;
}
.aiui-btn-line1{ font-size:15px; line-height:1.2; font-weight:600; }
.aiui-btn-line2{ font-size:13px; line-height:1.2; font-weight:500; opacity:.85; }

/* Full-width on small viewports */
@media (max-width:480px){
  .aiui-btn--2line{ min-width:0; width:100%; }
}

/* Anchor state bundling */
a.aiui-btn:is(:link,:hover,:visited,:focus,:active){ text-decoration:none; }
.aiui-btn--primary:is(:link,:visited,:focus,:active),
.aiui-btn--signal:is(:link,:visited,:focus,:active){ color:#fff; }
.aiui-btn--outline:is(:link,:visited,:focus,:active){ color:var(--text); }
.aiui-btn--soft-signal:is(:link,:visited,:focus,:active){ color:var(--soft-signal-text); }
.aiui-btn--ghost:is(:link,:visited,:focus,:active){ color:var(--text); }
.aiui-btn--ghost-on-dark:is(:link,:visited,:focus,:active){ color:#fff; }

/* Hovers */
.aiui-btn.aiui-btn--primary:hover{ background:#04203c; color:#fff; }
.aiui-btn.aiui-btn--signal:hover{  background:#c22661; color:#fff; }
.aiui-btn.aiui-btn--outline:hover{ background:#f6f8fb; color:var(--text); }
.aiui-btn.aiui-btn--soft-signal:hover{ background:var(--soft-signal-bg-hov); color:var(--soft-signal-text); }
.aiui-btn.aiui-btn--ghost:hover{ background:rgba(6,37,71,.06); color:var(--text)}
.aiui-btn.aiui-btn--ghost-on-dark:hover{ background:rgba(255,255,255,.12); color: #fff}

/* Focus backgrounds */
.aiui-btn--primary:focus{ background:var(--brand-dark); }
.aiui-btn--signal:focus{  background:var(--brand-signal); }
.aiui-btn--outline:focus{ background:#fff; color:var(--text);}
.aiui-btn--soft-signal:focus{ background:var(--soft-signal-bg); }

/* Selected/pressed outline */
.aiui-btn--outline[aria-pressed="true"],
.aiui-btn--outline.is-selected,
input[type="radio"]:checked + .aiui-btn--outline,
input[type="checkbox"]:checked + .aiui-btn--outline{
  border-color: var(--brand-signal);
  box-shadow: 0 0 0 3px var(--signal-glow);
}

/* Chips - Base & Variants */
.aiui-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  line-height: var(--lh-chip);
  font-size: var(--fs-chip);
  padding: var(--chip-py) var(--chip-px);
  border-radius:var(--radius-pill);
  border:1px solid var(--border-strong);
  background:#fff;
  color:var(--text);
}
.aiui-chip--signal{
  background:var(--brand-signal);
  color:#fff;
  border-color:transparent;
}
.aiui-chip--success{
  background:var(--success);
  color:#fff;
  border-color:transparent;
}
.aiui-chip--warning{
  background:var(--warning);
  color:#fff; border-color:transparent;
}
.aiui-chip--info{
  background:var(--info);
  color:#fff;
  border-color:transparent;
}
.aiui-chip--danger{
  background:var(--danger);
  color:#fff;
  border-color:transparent;
}
.aiui-chip--soft-signal{
  background:var(--soft-signal-bg);
  border-color:var(--soft-signal-border);
  color:var(--soft-signal-text);
}
.aiui-chip--soft-success{
  background:var(--soft-success-bg);
  border-color:var(--soft-success-border);
  color:var(--soft-success-text);
}
.aiui-chip--soft-warning{
  background:var(--soft-warning-bg);
  border-color:var(--soft-warning-border);
  color:var(--soft-warning-text);
}
.aiui-chip--soft-info{
  background:var(--soft-info-bg);
  border-color:var(--soft-info-border);
  color:var(--soft-info-text);
}
.aiui-chip--soft-danger{
  background:var(--soft-danger-bg);
  border-color:var(--soft-danger-border);
  color:var(--soft-danger-text);
}
.aiui-chip--soft-neutral{
  background:var(--soft-neutral-bg);
  border-color:var(--soft-neutral-border);
  color:var(--soft-neutral-text);
}

.icon{
  display:inline-block;
  line-height: 1;
  width:1em;
  height:1em;
  fill:currentColor;
  vertical-align:-0.125em;
  flex-shrink:0;
}
.icon-fw{ width:1.25em; }
.icon > svg{
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}


/* ---- Header ---- */
.aiui-site-header{
  background: var(--brand-dark);
  color: #fff;
}
.aiui-site-header a{ color:#fff; text-decoration:none; }

.aiui-site-header .aiui-desktop-actions .aiui-btn{
  min-height: var(--header-control-h);
}

.aiui-site-header .aiui-logo img{
  height: var(--header-control-h);
  width: auto;
  display:block;
}

.aiui-header-inner{
  display: grid;
  grid-template-columns: auto 1fr auto; /* Logo | Search | Actions/Burger */
  align-items: center;
  gap: 28px;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-block: 12px;
  padding-inline: clamp(var(--mobile-x), 4vw, var(--tablet-x));
}

.aiui-search{ width:100%; position:relative; }
.aiui-site-header .aiui-search__input{
  height: var(--header-control-h);
  width:100%;
  background:#fff;
  color:var(--text);
  border:1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  padding-right: 44px;
  outline: none;
}

.aiui-search__btn{
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  height: var(--header-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: none;
  border: none;
  color: var(--brand-signal);
  cursor: pointer;
  border-radius: var(--radius-pill);
  -webkit-tap-highlight-color: transparent;
}

/* Neutralize hover/focus of parent theme */
.aiui-site-header .aiui-search__btn,
.aiui-site-header .aiui-search__btn:where(:hover,:active,:focus){
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--brand-signal) !important;
  text-decoration: none !important;
}

.aiui-site-header .aiui-search__btn:focus { outline: none !important; }
.aiui-site-header .aiui-search__btn:focus-visible{
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 2px;
}

.aiui-site-header .aiui-search__input::placeholder{ color: rgba(6,37,71,.55); }

.aiui-desktop-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

/* --- Suche: Dropdown --- */
.aiui-search__results{
  position: absolute;
  top: calc(100% + 2px);
  inset-inline: 0;
  background: var(--surface-bg);
  border: 1px solid var(--border-weak);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(6,37,71,.12);
  padding: 6px;
  z-index: 1000;
  max-height: 60vh;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.aiui-search__item{
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  line-height: 1.25;
  transition: background-color .12s ease;
}
.aiui-search__item:hover,
.aiui-search__item:focus-visible,
.aiui-search__item[aria-selected="true"]{
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}
.aiui-search__item:active{
  background: var(--bg-soft-press);
  color: var(--text);
  text-decoration: none;
}
.aiui-site-header .aiui-search__results .aiui-search__item,
.aiui-site-header .aiui-search__results .aiui-search__item:where(:hover,:focus-visible,:active,[aria-selected="true"]){
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.aiui-search__empty{
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 15px;
}


/* Burger */
.aiui-menu-toggle{
  display:none;
  appearance:none;
  background:transparent;
  border:1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill);
  width: var(--header-control-h);
  height: var(--header-control-h);
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.aiui-menu-toggle:hover{ background: rgba(255,255,255,.12); }
.aiui-menu-toggle:focus-visible{
  outline: var(--focus-ring-width) solid var(--brand-accent);
  outline-offset: 2px;
}
.aiui-menu-toggle .icon{ width:20px; height:20px; fill: currentColor; }
.aiui-menu-toggle .aiui-icon-x{ display:none; }
.aiui-menu-toggle[aria-expanded="true"] .aiui-icon-bars{ display:none; }
.aiui-menu-toggle[aria-expanded="true"] .aiui-icon-x{ display:block; }

.aiui-menu-toggle .icon path{
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

/* Mobile Menu */
.aiui-mobile-menu{
  flex-direction:column;
  gap:8px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--brand-dark);
  border-top:1px solid rgba(255,255,255,.08);
}
.aiui-mobile-menu[hidden] { display: none !important; }
.aiui-mobile-link{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill);
  text-align: left;
}
.aiui-mobile-link:hover{ background:rgba(255,255,255,.12); }

.aiui-site-header .aiui-desktop-actions .aiui-btn{
  font-size: 15px;
  font-weight: 400;
}

@media (max-width: 1024px){
  .aiui-desktop-actions{ display:none; }
  .aiui-menu-toggle{ display:flex; }
  .aiui-mobile-menu:not([hidden]){ display:flex; }
}

@media (min-width: 1025px){
  .aiui-mobile-menu{ display:none !important; }
}

@media (max-width: 768px){
  .aiui-header-inner{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo burger"
      "search search";
    row-gap:10px;
  }
  .aiui-logo{ grid-area: logo; }
  .aiui-menu-toggle{ grid-area: burger; }
  .aiui-search{ grid-area: search; }
}

/* A11y */
.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;
}


/* ---- Breadcrumbs ---- */
.aiui-breadcrumbs{
  font-size: 14px;
}

.aiui-breadcrumbs .aiui-bc-sep{
  color: var(--icon-muted);
}

.aiui-breadcrumbs .grid-container{
  display:flex;
  align-items:center;
  overflow:hidden;
  gap:.25em;
}
.aiui-breadcrumbs .grid-container > *{
  white-space:nowrap;
  flex:0 0 auto;
}
.aiui-breadcrumbs .grid-container > .current{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* ---- Sidebar widgets ----*/

.widget-title {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 500;
  padding-bottom: .25em;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 2px;
  background-image: linear-gradient(90deg, var(--link), transparent);
}
@media (max-width: 768px){
  .widget-title { font-size: 18px; }
}

.widget-area .sidebar-media-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  font-size: 15px;
}

.widget-area .sidebar-media-list .wp-block-latest-posts__featured-image,
.widget-area .sidebar-media-list .wp-block-post-featured-image {
  float: none;
  margin: 0;
  grid-row: 1 / span 2;
}
.widget-area .sidebar-media-list .wp-block-latest-posts__featured-image img,
.widget-area .sidebar-media-list .wp-block-post-featured-image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border-weak)
}

.widget-area .sidebar-media-list .wp-block-latest-posts__post-title,
.widget-area .sidebar-media-list .wp-block-post-title,
.widget-area .sidebar-media-list .wp-block-latest-posts__post-date,
.widget-area .sidebar-media-list .wp-block-post-date {
  grid-column: 2;
  display: block;
  line-height: 1.25;
}
.widget-area .sidebar-media-list .wp-block-latest-posts__post-date,
.widget-area .sidebar-media-list .wp-block-post-date {
  color: var(--text-muted)
}
.widget-area .widget a:not(.aiui-btn):not(.aiui-chip):link,
.widget-area .widget a:not(.aiui-btn):not(.aiui-chip):visited {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease;
}
.widget-area .widget a:not(.aiui-btn):not(.aiui-chip):hover,
.widget-area .widget a:not(.aiui-btn):not(.aiui-chip):focus-visible {
  color: var(--link-hover);
  text-decoration: none;
}
.inside-right-sidebar {
    height: 100%;
}
.inside-right-sidebar > *:last-child {
    position: sticky;
    top: 35px;
}


/* Show featured image caption as overlay */
.featured-image-credit { position: relative; display: block; }
.featured-image-credit img { display: block; width: 100%; height: auto; }
.featured-image-credit .img-credit{
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  background: rgba(0,0,0,.6);
  color:#fff;
  padding: .25rem .5rem;
  font-size: .8rem;
  border-radius: .25rem;
  line-height: 1.2;
  max-width: 90%;
  text-wrap: balance;
}


/* ---- Footer ---- */
.site-footer { background: transparent; padding: 0; border: 0; }

.aiui-footer{
  background: var(--brand-dark);
  color: #fff;
  font-size: 15px;
}
.aiui-footer a{ color:#fff; text-decoration:none; }
.aiui-footer a:hover{ text-decoration:underline; }

.aiui-footer-inner{
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 28px clamp(var(--mobile-x), 4vw, var(--tablet-x));
}
.aiui-footer-inner-bottom{ padding-top: 20px; padding-bottom: 20px; text-align: center; }

.aiui-footer-cols{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.aiui-footer-brand{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.aiui-footer-brand img{ height: 40px; width: auto; display:block; }
.aiui-footer-brand-desc{ margin:0; opacity:.9; line-height:1.4; max-width:48ch; }

.aiui-footer h3{
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 600;
}

.aiui-footer-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.aiui-footer-subline{
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
}

.aiui-footer-info-note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .6);
}
.aiui-footer-info-note a{ color: rgba(255, 255, 255, .6); }

@media (max-width: 900px){
  .aiui-footer-cols{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .aiui-footer-cols{ grid-template-columns: 1fr; }
}


/* --- search results page with FuseJS --- */
.search .aiui-searchpage{
  min-height: 50vh;
  min-height: 50svh;
}
.aiui-searchpage__list{
  list-style:none; margin:0; padding:0;
  display:grid; gap:12px;
  grid-template-columns:1fr;
}
@media (min-width:769px){ .aiui-searchpage__list{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1025px){ .aiui-searchpage__list{ grid-template-columns:repeat(3,1fr); } }

.aiui-searchpage__link.aiui-btn{
  width:100%;
  justify-content:flex-start;
  text-align:left;
  white-space:normal;
}


/* Smartphone page */
.manufacturers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px 10px;
}

.manufacturers-container .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: 10px;
}

.timeline-container .card-title {
    margin-top: 0;
}

.timeline-container .timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.timeline-container .timeline:after {
    background-color: rgba(0, 94, 153, .25);
    bottom: 0;
    content: "";
    left: 10px;
    margin-left: -1px;
    position: absolute;
    top: 0;
    width: 2px;
}
@media (min-width: 768px) {
    .timeline-container .timeline:after { left: 10px; }
}

.timeline-container .timeline > .timeline-item {
    margin: 0;
    padding: 0;
    position: relative;
}
.timeline-container .timeline > .timeline-item:after {
    background: #ffffff;
    box-sizing: border-box;
    border: 2px solid #00609a;
    border-radius: 50%;
    content: "";
    height: 10px;
    left: 5px;
    position: absolute;
    top: calc(50% - 5px);
    width: 10px;
    z-index: 1;
}

.timeline-container .timeline > .timeline-item .timeline-body {
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline-container .timeline > .timeline-item .timeline-content {
    padding: 6px 30px;
}

@media (min-width: 768px) {
    .timeline-container .timeline > .timeline-item { left: 0; }
    .timeline-container .timeline > .timeline-item:after { left: 5px; }
}

.manufacturers-container details > summary {
    cursor: pointer;
    list-style: none;
    margin: 0;
    padding: 0.3em 0;
    position: relative;
}
.manufacturers-container details > summary::-webkit-details-marker { display: none; }
.manufacturers-container details > summary::marker { content: ""; }
.manufacturers-container details > summary::before {
    content: "▼ ";
    margin: 0 6px 0 4px;
    font-size: 0.9em;
    display: inline-block;
    transition: transform 0.3s;
}
.manufacturers-container details[open] > summary::before { content: "▲ "; }
.manufacturers-container details > summary:hover { text-decoration: underline; }


/* Magazin cards */
.magazine-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
  margin:0 0 40px 0;
}

@media (min-width: 769px){
  .magazine-cards{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px){
  .magazine-cards{ grid-template-columns: repeat(3, 1fr); }
}

.mag-card{
  display:flex !important;
  flex-direction:column;
  background: var(--surface-bg);
  color: var(--text);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 4px #0000001a;
  padding: 0 !important;
}

.mag-card__thumb img{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  object-fit:cover;
  display:block;
  border-bottom:1px solid var(--border-weak);
}

.mag-card__body{
  padding:16px 20px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  height:100%;
}

.mag-card__title{
  margin:0;
  font-size: 18px;
  line-height:1.4;
  font-weight:600;
}
.mag-card__title a{
  color: var(--text);
  text-decoration:none;
}
.mag-card__title a:hover{
  color: var(--link-hover);
  text-decoration:none;
}

.mag-card__date{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 13px;
  color: var(--text-muted);
}

.mag-card__excerpt{
  margin:0;
  font-size: 15px;
  line-height:1.55;
  color: var(--text);
  display:-webkit-box;
  line-clamp:4;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.pagination{
  margin-top: 28px;
  text-align:center;
}
.pagination .page-numbers{
  display:inline-flex;
  gap:8px;
  padding:0;
  list-style:none;
}
.pagination .page-numbers li{ display:inline-block; }

.pagination .page-numbers a,
.pagination .page-numbers span{
  border:1px solid var(--border-strong);
  background:#fff;
  color:var(--text);
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-pill);
  line-height:1;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 40px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pagination .page-numbers a:hover{
  background: var(--bg-soft);
  color: var(--text);
}
.pagination .page-numbers .current{
  background: var(--brand-signal);
  color:#fff;
  border-color: transparent;
}

/* --- front-page --- */
.home-mag-more {
  text-align:center;
  margin-top:20px;
}

.home-section-header { margin: 0; }
.home-section-header .home-section-title { font-size: 22px; }

@media (max-width: 768px) {
  .home-section-header .home-section-title { font-size: 20px; }
}

.home-section-header .home-section-title:first-child { margin-top: 0; }

.my-swiper-container { padding-bottom: 20px !important; }

.swiper-slide { width: 220px !important; }

.carousel-link {
  display:block;
  text-decoration:none;
  color:inherit !important;
  position:relative;
}

.carousel-content{
  border:1px solid var(--border-strong);
  border-radius:var(--radius-md);
  font-size:14px;
  box-shadow:0 0 4px #0000001a;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  align-items:stretch;
  text-align:center;
  height:auto;
  position:relative;
  will-change:transform;
  transform:translateZ(0);
  transition: box-shadow .25s ease;
}
.carousel-link:hover .carousel-content,
.carousel-link:active .carousel-content{ box-shadow:0 4px 4px #00000026; }


.my-swiper-container .carousel-link:hover,
.my-swiper-container .carousel-link:focus-visible,
.my-swiper-container .carousel-link:hover .carousel-title,
.my-swiper-container .carousel-link:hover .carousel-date{
  text-decoration: none;
}

.carousel-title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:22px;
  height:22px;
  font-weight:600;
  text-align:center;
}

.carousel-image{
  background: #f4f7f9;
  display:flex;
  justify-content:center;
  padding:16px;
}
.carousel-image img{ width:100%; height:auto; display:block; }

.carousel-body{
  background:#fff;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:0;
  align-items:stretch;
  text-align:center;
}

.carousel-date{
  font-size:12px;
  color:var(--text-muted);
  margin-bottom:15px;
}

.carousel-button{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin-top:auto;
  text-align:center;
  text-decoration:none;
  font-weight: 400;
}

.swiper-button-prev,
.swiper-button-next{
  position:absolute;
  top:50% !important;
  width:40px !important;
  height:40px !important;
  margin-top:-40px !important;
  z-index:10 !important;
  cursor:pointer !important;
  background-color:rgba(255,255,255,.8) !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid var(--border-strong);
}
.swiper-button-prev{ left:10px !important; }
.swiper-button-next{ right:10px !important; }

.swiper-button-prev::after,
.swiper-button-next::after{
  font-size:20px !important;
  color: var(--brand-accent) !important;
  font-weight:bold;
}

@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next{ display:none !important; }
}

.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible{
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.swiper-button-disabled{
  pointer-events:auto !important;
  cursor:auto !important;
}

.phone-finder-slot {
    width: 100%;
    padding: 28px 0 30px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #f2f5f6;
    border-radius: var(--radius-md);
}

.phone-finder-wrapper {
    width: 50%;
    min-width: 280px;
    max-width: 660px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    z-index: 1;
}

.phone-finder-wrapper .icon {
    font-size: 36px;
    color: #fc7a1e;
    line-height: 1;
}

.phone-finder-wrapper h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--brand-dark);
}

.phone-finder-wrapper p {
    margin: 0;
    font-size: 16px;
    color: var(--brand-dark);
}

@media (max-width:768px) {
    .phone-finder-slot {
        border: 1px solid var(--brand-dark);
    }

    .phone-finder-slot::before {
        content: "";
        position: absolute;
        top: -60px;
        left: -80px;
        width: 210px;
        height: 100px;
        background: #fc7a1e;
        opacity: .15;
        transform: rotate(8deg);
        pointer-events: none;
        z-index: 0;
    }

    .phone-finder-slot::after {
        content: "";
        position: absolute;
        bottom: -70px;
        right: -90px;
        width: 180px;
        height: 150px;
        background: #00a79a;
        opacity: .15;
        transform: rotate(-6deg);
        pointer-events: none;
        z-index: 0;
    }

    .phone-finder-wrapper {
        width: 90%;
    }

    .phone-finder-wrapper .icon {
        font-size: 28px;
        color: var(--brand-dark);
    }

    .phone-finder-wrapper h2 {
        font-size: 20px;
    }

    .phone-finder-wrapper p {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
  .phone-finder-slot::before,
  .phone-finder-slot::after {
    content: "";
    position: absolute;
    top:0;
    height: 100%;
    width: auto; 
    background-size: contain;
    background-repeat:no-repeat;
    pointer-events: none;
    z-index: 0;
  }

  .phone-finder-slot::before {
    left: 0;
    background-position:left top;
    background-image: url("https://wannkaufen.de/wp-content/uploads/phone-finder-left.png");
    aspect-ratio: 460 / 512;
  }

  .phone-finder-slot::after {
    right: 0;
    background-position:right top;
    background-image: url("https://wannkaufen.de/wp-content/uploads/phone-finder-right.png");
    aspect-ratio: 400 / 512;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .phone-finder-slot::before { left: -100px; }
    .phone-finder-slot::after { right: -100px; }
}


/* Related posts */
.wk-related { margin-top: 40px; margin-bottom: 20px; }
.wk-related .widget-title {
  margin-bottom: 20px;
}

.wk-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px){ .wk-related__list{ grid-template-columns: 1fr 1fr; } }

.wk-rel-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px 16px;
  align-items: start;
}
@media (max-width: 420px){
  .wk-rel-card{ grid-template-columns: 120px 1fr; }
}

.wk-rel-card__thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16/9;
}
.wk-rel-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wk-rel-card__body{ display: flex; flex-direction: column; gap: 6px; }

.wk-rel-card__kicker{
  font-size: 14px;
  line-height: 1.2;
}
.wk-rel-card__kicker:is(:link, :visited){ color: var(--link); text-decoration: none; }
.wk-rel-card__kicker:hover{ color: var(--link-hover); text-decoration: underline; }

.wk-rel-card__title{
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wk-rel-card__title:is(:link, :visited){ color: var(--text); text-decoration: none; }
.wk-rel-card__title:hover{ color: var(--link-hover); }

.wk-rel-card__date{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}


/* Smartphone Finder: Top 3 */
.wk-featured-smartphones {
  color: var(--text);
  margin-bottom: 30px;
  font-size: 15px;
}
.wk-featured-smartphones article {
    margin:0 !important;
    padding: 0 20px 12px 20px;
}
@media (max-width: 420px) {
    .wk-featured-smartphones article {
        padding: 0 15px 12px 15px;
    }
}
.wk-featured-smartphones .icon-link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  width:100%;
  text-align:left;
  text-decoration:none;
  color: var(--brand-dark);
}
.wk-featured-smartphones .icon-link:hover{
  color: var(--link-hover);
}
.wk-cards-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    align-items: stretch;
}
.wk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 0 4px rgba(0,0,0,.1);
    overflow: hidden;
}
.wk-card__header {
    text-align: center;
    padding-top: 36px;
}
.wk-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 !important;
}
.wk-card__variant {
    font-size: 14px;
    color: var(--text-muted)
}
.wk-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
.wk-card__media {
    flex: 0 0 40%;
    text-align: center;
}
.wk-card__media img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
}
.wk-ctas {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wk-badge{
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 12px;
  background-color: #ffd66e;
}
@media (max-width: 420px) {
    .wk-card__media img {
        height:120px
    }
}

/* ---- Phone pages ---- */

.wk-product-shell{
  display:flex;
  flex-direction:column;
  gap:36px;
}
[hidden]{
  display:none !important;
}

/* Hero grid */
#product-hero.wk-hero-grid{
  display:flex;
  flex-direction:column;
  gap:24px;
}
@media (min-width: 769px){
  #product-hero.wk-hero-grid{
    display:grid;
    gap:24px;
    grid-template-columns:minmax(0,1.05fr) minmax(340px,.85fr);
    grid-template-areas:
      "info media"
      "insights insights";
  }
  .wk-hero-info{ grid-area:info; }
  .wk-hero-media{ grid-area:media; }
  .wk-hero-insights{ grid-area:insights; }
}

/* Hero info */
.wk-hero-info h1{
  margin:0 0 8px 0;
  font-size:28px;
  line-height:1.15;
}
@media (max-width: 768px){
  .wk-hero-info h1{ font-size:22px; }
}
.wk-title-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  align-items:center;
  margin-bottom:14px;
}
.wk-meta-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  color:var(--text-muted);
  white-space:nowrap;
}
.wk-meta-item .icon{
  width:1.1em;
  height:1.1em;
}

/* Variant Picker */
.wk-variant-picker{
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  gap: 8px;
  justify-content: start; 
}
.wk-variant-picker label.aiui-btn{
  width: 100%;
  justify-content: center;
}
.wk-variant-picker legend{
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.wk-variant-picker input[type="radio"].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;
}

/* Product image and links */
.wk-media-row{
  display:flex;
  flex-direction:column;
  gap:16px;
}
@media (min-width:769px){
  .wk-media-row{
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items:start;
    gap:16px;
  }
}
.wk-media-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.wk-media-visual img{
  height:160px;
  width:auto;
  max-width:100%;
  display:block;
}

.wk-media-ctas{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.wk-media-ctas .aiui-btn{
  width:100%;
  justify-content:center;
}
.wk-sub-cta-row{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

/* --- Metrics --- */
.wk-hero-insights{
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wk-buy-hint-line{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(260px,1.1fr);
  column-gap:50px;
  row-gap:10px;
  align-items:flex-start;
  grid-template-areas:
    "title score"
    "sub   score"
    "full  full";
}
.wk-buy-hint-title{
  grid-area: title;
  font-size:16px;
  font-weight:600;
}
.wk-buy-hint-sub{
  grid-area: sub;
  font-size:14px;
  color:var(--text-muted);
  line-height: 1.55;
}
.wk-buy-hint-sub--full{
  grid-area: full;
  margin-top:4px;
}
@media (max-width: 768px) {
  .wk-buy-hint-line {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "score"
      "sub"
      "full";
    row-gap: 10px;
  }
}
/* Score bar */
.score-scale {
  --score: 50;
  --bubble-gap: 10px;
  --bubble-overflow: 18px;
  --score-color: var(--warning);
  --bubble-bg: var(--soft-warning-bg);
  --bubble-border: var(--soft-warning-border);
  --bubble-text: var(--soft-warning-text);
  grid-area: score;
  width: 100%;
  max-width: 600px;
}
.score-scale--danger {
  --score-color: var(--danger);
  --bubble-bg: var(--soft-danger-bg);
  --bubble-border: var(--soft-danger-border);
  --bubble-text: var(--soft-danger-text);
}
.score-scale--warning {
  --score-color: var(--warning);
  --bubble-bg: var(--soft-warning-bg);
  --bubble-border: var(--soft-warning-border);
  --bubble-text: var(--soft-warning-text);
}
.score-scale--success {
  --score-color: var(--success);
  --bubble-bg: var(--soft-success-bg);
  --bubble-border: var(--soft-success-border);
  --bubble-text: var(--soft-success-text);
}
.score-scale__bar {
  position: relative;
  width: 100%;
  height: 52px;
}
.score-scale__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  display: flex;
  gap: 1%;
}
.score-scale__track-part {
  height: 100%;
  border-radius: var(--radius-pill);
}
.score-scale__track-part--danger {
  flex: 30;
  background: var(--danger);
}
.score-scale__track-part--warning {
  flex: 38;
  background: var(--warning);
}
.score-scale__track-part--success {
  flex: 30;
  background: var(--success);
}
.score-scale__dot {
  position: absolute;
  left: calc(clamp(0, var(--score), 100) * 1%);
  bottom: -5px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--score-color);
  background: #ffffff;
  box-sizing: border-box;
}
.score-scale__bubble {
  position: absolute;
  left: calc(clamp(0, var(--score), 100) * 1%);
  bottom: calc(6px + var(--bubble-gap));
  transform: translateX(-50%);
  background: var(--bubble-bg);
  color: var(--bubble-text);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid var(--bubble-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.score-scale__bubble-main {
  font-weight: 600;
}
.score-scale__bubble-score {
  font-weight: 500;
  opacity: 0.8;
}
.score-scale__bubble-separator {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background-color: currentColor;
  opacity: 0.45;
}
.score-scale__bubble::before,
.score-scale__bubble::after {
  content: "";
  position: absolute;
  left: var(--pointer-x, 50%);
  transform: translateX(-50%);
  border-style: solid;
}
.score-scale__bubble::before {
  bottom: -6px;
  border-width: 6px 6px 0 6px;
  border-color: var(--bubble-border) transparent transparent transparent;
}
.score-scale__bubble::after {
  bottom: -4.75px;
  border-width: 5px 5px 0 5px;
  border-color: var(--bubble-bg) transparent transparent transparent;
}
.score-scale__labels {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
/* End score bar */
.wk-buy-hint-sub > * + * {
  margin-top: 0.5rem;
}
.wk-metric--pink {
  --metric-value-color:#d6306f;
  --metric-icon-color:#d6306f;
}
.wk-metric--rose {
  --metric-value-color:#eeacc5;
  --metric-icon-color:#eeacc5;
}
.wk-metric--pink .wk-metric-value,
.wk-metric--rose .wk-metric-value{
  opacity:1;
}
.wk-metrics-grid{
  order:1;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:12px;
}
.wk-metric-card{
  background:#fff;
  border:1px solid var(--border-weak);
  border-radius:var(--radius-md);
  padding:14px 14px 13px;
  display:grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label icon"
    "value icon"
    "sub   sub";
  column-gap:12px;
  row-gap:6px;
  min-height:110px;
}
.wk-metric-card:has(.wk-metric-sublabel){
  grid-template-areas:
    "label    icon"
    "sublabel icon"
    "value    icon"
    "sub      sub";
}
.wk-metric-label{
  grid-area:label;
  font-size:.72rem;
  text-transform:uppercase;
  font-weight: 600;
  letter-spacing:.05em;
  color:var(--text-muted);
}
.wk-metric-value{
  grid-area:value;
  font-size:1.35rem;
  font-weight:700;
  line-height:1.1;
  color:var(--metric-value-color, var(--brand-dark));
  opacity: 0.9;
}
.wk-metric-sub,
.wk-metric-sublabel{
  font-size:.74rem;
  color:var(--text-muted);
}
.wk-metric-sub{
  grid-area: sub;
}
.wk-metric-sublabel{
  grid-area: sublabel;
  margin-top: 10px;
}
.wk-metric-icon{
  grid-area:icon;
  align-self:start;
  justify-self:end;
  width:28px; height:28px;
  color: var(--metric-icon-color, var(--brand-dark));
  opacity:.8;
}
.wk-metric-icon svg{
  width:100%;
  height:100%;
  display:block;
  fill: currentColor;
}

.wk-metrics{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.wk-metrics-ctl{
  order:2;
}
.wk-metrics-ctl > summary{
  display:inline;
  cursor:pointer;
  list-style:none;
  padding:0;
  margin:0;
  background:none;
  border:0;
  font-size: 15px;
  color:var(--link);
}
.wk-metrics-ctl > summary::-webkit-details-marker{
  display:none;
}
.wk-metrics-ctl > summary:hover,
.wk-metrics-ctl > summary:focus-visible{
  text-decoration:none;
  color:var(--link-hover);
  outline: none;
}
.wk-metrics-ctl .label-less{ display:none; }
.wk-metrics-ctl[open] .label-more{ display:none; }
.wk-metrics-ctl[open] .label-less{ display:inline; }
.wk-metrics-ctl .chev{
  margin-left:4px;
  display:inline-block;
  transition:transform .2s ease;
}
.wk-metrics-ctl[open] .chev{
  transform:translateY(.08em) rotate(180deg);
}

.wk-metrics-ctl:not([open]) ~ .wk-metrics-grid > .wk-metric-card:nth-child(n+5){
  display:none;
}
@media (max-width: 768.98px){
  .wk-metrics-ctl:not([open]) ~ .wk-metrics-grid > .wk-metric-card:nth-child(n+4){
    display:none;
  }
}

@media (min-width:769px){
  .wk-metrics:not(:has(.wk-metrics-grid > .wk-metric-card:nth-child(n+5))) .wk-metrics-ctl{
    display:none;
  }
}
@media (max-width:768.98px){
  .wk-metrics:not(:has(.wk-metrics-grid > .wk-metric-card:nth-child(n+4))) .wk-metrics-ctl{
    display:none;
  }
}


.wk-section{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.wk-section h2{
  margin:0;
}

/* price prediction */
.wk-prognose-grid{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.wk-prognose-figure{
  background:#f4f7f9;
  border:1px solid var(--border-weak);
  border-radius:var(--radius-md);
  padding:4px;
}
.wk-prognose-figure img{
  width:100%;
  height:auto;
  display:block;
  border-radius:var(--radius-sm);
}
@media (min-width: 769px){
  .wk-prognose-grid{
    flex-direction:row;
    align-items:flex-start;
  }
  .wk-prognose-figure{
    flex:0 0 60%;
  }
  .wk-prognose-grid > .wk-metrics-grid{
    flex: 1 1 auto;
    min-width: 0;
  }
}
.wk-prognose-grid .wk-metrics-grid{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wk-section-box{
  background:var(--surface-bg);
  border:1px solid var(--border-weak);
  border-radius:var(--radius-lg);
  padding:16px;
}


/* Price comparison */

.price-comparison .visible-xs,
.price-comparison .visible-xs-inline {
  display: none !important;
}
@media (max-width: 768px) {
  .price-comparison .visible-xs {
    display: block !important;
  }
  .price-comparison .visible-xs-inline {
    display: inline-block !important;
  }
  .price-comparison .hidden-xs {
    display: none !important;
  }
}
.price-comparison .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}
.price-comparison .fix-row {
  margin-left: -10px;
  margin-right: -10px;
}
.price-comparison [class*="col-"] {
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
}

.price-comparison .col-xs-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
.price-comparison .col-xs-7  {
  flex: 0 0 58.3333%;
  max-width: 58.3333%;
}
.price-comparison .col-xs-5  {
  flex: 0 0 41.6667%;
  max-width: 41.6667%;
}

@media (min-width: 769px) {
  .price-comparison .col-sm-2 {
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
  }
  .price-comparison .col-sm-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .price-comparison .col-sm-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
  .price-comparison .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.price-comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.price-comparison-header.pcw-header{
  flex-wrap:nowrap;
}
.pcw-header .price-comparison-text{
  flex:1 1 auto;
  min-width:0;
}
.pcw-alert-btn{ flex:0 0 auto; }
.pcw-alert-btn .pcw-label{ display:inline; }
.pcw-alert-btn .pcw-label > span + span { margin-left: .25em; }
@media (max-width: 768px){
  .price-comparison-header.pcw-header { flex-direction: row; align-items: center; }
  .pcw-alert-btn .pcw-label{
    display:flex;
    flex-direction:column;
    line-height:1.15;
    white-space:normal;
  }
  .pcw-alert-btn .pcw-label > span { white-space: nowrap; }
  .pcw-alert-btn .pcw-label > span + span { margin-left: 0; }
}

.price-section {
  text-align: right;
}
.price-comparison .availability .icon {
  margin-right: 4px;
}
.popover-container {
    display: inline-block;
    overflow: visible;
}
.popover-icon {
    display: inline-block;
    position: relative;
    top: -0.4em;
    font-size: 0.8em;
}
.popover-content {
    width: 220px;
    max-height: 300px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-70%);
    background-color: #fff;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 10000;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.5s;
    font-size: 12px;
    line-height: 1.625;
    text-align: left;
}
.popover-icon:hover .popover-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.1s;
}
.price-comparison-entry img {
  height: 40px;
  width: auto;
}
.availability-indicator {
  display:inline-block;
  width:8px;
  height:8px;
  background:#42ba96;
  border-radius:50%;
  margin-bottom:-1px;
  margin-right:3px;
}
.out-of-stock .availability-indicator {
  background:#e74c3c;
}
.in-stock-unknown .availability-indicator {
  background:#888;
}

.availability-desktop .in-stock {
  color:#42ba96;
}
.availability-desktop .out-of-stock {
  color:#e74c3c;
}
.availability-desktop .in-stock-unknown {
  color:#888;
}

.visible-xs-inline {
  display:none;
}
@media (max-width:768px){
  .visible-xs-inline {
    display:inline-block !important;
  }
  .visible-xs {
    display:block !important;
  }
  .hidden-xs {
    display:none !important;
  }
  .price-comparison-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.mt-10{
  margin-top:10px;
}
.mt-5{
  margin-top:5px;
}

.limit-text-1, .limit-text-2, .limit-text-3, .limit-text-responsive-2-1{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.limit-text-1{
  -webkit-line-clamp:1;
  line-clamp:1;
}
.limit-text-2{
  -webkit-line-clamp:2;
  line-clamp:2;
}
.limit-text-3{
  -webkit-line-clamp:3;
  line-clamp:3;
}
.limit-text-responsive-2-1{
  -webkit-line-clamp:1;
  line-clamp:1;
}
@media (max-width:768px){
  .limit-text-responsive-2-1{
    -webkit-line-clamp:2;
    line-clamp:2;
  }
}

.text-sm{
  font-size:13px;
}
.price-comparison-text{
  font-size:14px;
}
.price-comparison-entry{
  font-size:14px;
  border-top:1px solid #ddd;
  padding:10px 2px;
  cursor:pointer;
}
@media (max-width:768px){
  .price-comparison-entry{
    font-size:16px;
  }
  .price-comparison-entry,
  .price-comparison-entry .popover-icon,
  .price-comparison-entry .aiui-btn,
  .price-comparison-entry a {
    -webkit-tap-highlight-color: transparent;
  }
  .price-comparison-entry:active,
  .price-comparison-entry a:active,
  .price-comparison-entry .aiui-btn:active {
    background: transparent;
  }
  .price-comparison .visible-xs .limit-text-1 {
    font-size: 14px;
    font-weight: 600;
  }
}
.price-comparison-entry:hover{
  background:#f9f9f9;
}

.price-comparison-footer{
  border-top:1px solid #ddd;
  padding-top:10px;
  color:#888;
}
.price-comparison-footer a{
  color:#888;
}
.price-comparison-footer a:hover{
  text-decoration:underline;
}
.price-comparison-entry .aiui-btn{
  font-size:14px;
  text-align: center;
}

@media (min-width:769px){
  .price-comparison-entry .price-section{
    margin:0 -10px;
  }
}
.price-section strong{
  color:var(--brand-dark);
  font-size:18px;
}

/* Specification section */
.specifications-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}
@media (min-width: 769px) {
    .specifications-container {
        grid-template-columns: 1fr 1fr;
    }
}
.specification-item {
    display: flex;
    flex-direction: column;
}
.specification-item p {
    margin: 0;
    flex-grow: 1;
}

/* Top phones on frontpage */
.ai-top-smartphones {
  background: var(--link);
}

.ai-top-smartphones__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--mobile-x) 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-top-smartphones__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ai-top-smartphones__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--surface-bg);
  margin: 0;
}

.ai-top-smartphones__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ai-top-smartphones__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-bg);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .16s ease;
}

.ai-top-smartphones__card:hover,
.ai-top-smartphones__card:focus-visible {
  box-shadow: 0 0 12px var(--surface-bg);
  text-decoration: none;
  color: var(--text);
}

.ai-top-smartphones__card:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 2px;
}

.ai-top-smartphones__media {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-top-smartphones__img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ai-top-smartphones__rank.aiui-chip {
  font-size: 11px;
  padding: 2px 8px;
  margin-bottom: 2px;
  border: none;
}

.ai-top-smartphones__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.ai-top-smartphones__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ai-top-smartphones__score-label {
  font-size: 11px;
  color: var(--text-muted);
}

.ai-top-smartphones__score-chip.aiui-chip {
  font-size: 11px;
  padding: 2px 8px;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .ai-top-smartphones__inner {
    padding: 18px var(--tablet-x) 20px;
  }

  .ai-top-smartphones__media {
    gap: 8px;
  }

  .ai-top-smartphones__rank.aiui-chip {
    margin-bottom: 6px;
  }

  .ai-top-smartphones__name {
    font-size: 14px;
  }

  .ai-top-smartphones__title {
    font-size: 20px;
  }

  .ai-top-smartphones__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .ai-top-smartphones__card {
    border-radius: var(--radius-md);
    padding: 12px;
  }

  .ai-top-smartphones__score-label {
    font-size: 12px;
  }

  .ai-top-smartphones__score-chip.aiui-chip {
    font-size: 12px;
    padding: 3px 9px;
  }
}

@media (min-width: 1025px) {
  .ai-top-smartphones__name {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}