/*
 * Design-Tokens 1:1 aus dem ichbindeinauto-Storefront-Theme
 * (ExweTheme / ExweThemeExtensions, gegengeprueft am kompilierten all.css der Live-Seite):
 * Barlow, Textfarbe #0B1215, Primaer #00BCE3, border-radius 0.
 */

/* barlow-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url('font/barlow-v12-latin-regular.woff2') format('woff2');
}

/* barlow-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  src: url('font/barlow-v12-latin-500.woff2') format('woff2');
}

/* barlow-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  src: url('font/barlow-v12-latin-600.woff2') format('woff2');
}

/* barlow-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  src: url('font/barlow-v12-latin-700.woff2') format('woff2');
}

:root {
  /* Brand shades */
  --gray-0: #fff;
  --gray-100: #f9f9f9;
  --gray-200: #e7e7e8;
  --gray-600: #6d7173;
  --gray-800: #3c4144;
  --gray-900: #0b1215;

  /* Brand */
  --primary: #00bce3;

  /* Semantik */
  --fg: var(--gray-900);
  --muted: var(--gray-600);
  --bg: var(--gray-0);
  --bg-subtle: var(--gray-100);
  --border: var(--gray-200);

  /* Form */
  --radius: 0;
  --border-width: 1px;
  --max: 72rem;
  --max-text: 46rem;
  --gutter: 1.25rem;
  --focus-ring: 0 0 0 0.0625rem #fff, 0 0 0 0.1875rem var(--gray-900);
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  color: var(--fg);
  font-weight: 700;
  font-style: normal;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 25px;
}

h2 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
}

p {
  line-height: 1.4em;
  margin: 0 0 1rem;
}

a {
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary);
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

/* Layout */
.header-inner,
.site-main,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.site-header {
  border-bottom: var(--border-width) solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding-block: 1rem;
}

.brand {
  color: var(--fg);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--fg);
}

.site-main {
  padding-block: 2.5rem 4rem;
}

.site-main > section + section {
  margin-top: 3.5rem;
}

/* Intro */
.intro {
  max-width: var(--max-text);
}

/* Redaktionelle Abschnitte */
.content-section {
  max-width: var(--max-text);
}

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

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.4em;
}

/* Hinweis ueber den Bewertungen */
.disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Bewertungen */
.reviews-section > .disclaimer {
  margin-bottom: var(--gutter);
}

.reviews {
  display: grid;
  gap: var(--gutter);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem var(--gutter);
}

.review-body {
  margin: 0;
  flex: 1;
  font-size: 1.125rem;
}

.review-meta {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  border-top: var(--border-width) solid var(--border);
  padding-top: 0.875rem;
}

.review-author {
  color: var(--fg);
  font-weight: 600;
}

.review-source a {
  color: var(--muted);
  font-weight: 600;
}

.review-source a:hover {
  color: var(--fg);
}

/* FAQ wie das Theme-Modul: Trennlinie unten, Chevron dreht beim Oeffnen */
.faq {
  max-width: var(--max-text);
}

.faq-item {
  border-bottom: var(--border-width) solid var(--border);
}

.faq-q {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 25px 30px 15px 0;
  font-size: 1.25rem;
  line-height: 26px;
  font-weight: 700;
  list-style-type: none;
  cursor: pointer;
}

.faq-q::-webkit-details-marker {
  display: none;
}

/* Frage bleibt semantisch eine Ueberschrift, optisch aber die Summary-Zeile */
.faq-q h3 {
  margin: 0;
  font: inherit;
  color: inherit;
}

.faq-q::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"%3E%3Cpath fill="%230B1215" d="M221.4 378.5l-147-147c-4.7-4.7-4.7-12.3 0-17l20.7-20.7c4.7-4.7 12.3-4.7 17 0l130.3 130.3 130.3-130.3c4.7-4.7 12.3-4.7 17 0l20.7 20.7c4.7 4.7 4.7 12.3 0 17l-147 147c-4.7 4.6-12.3 4.6-17-.1z"%3E%3C/path%3E%3C/svg%3E');
}

.faq-item[open] .faq-q::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-a {
  margin: 0;
  padding: 9px 0 21px;
  font-size: 1.125rem;
  line-height: 24px;
  font-weight: 400;
}

/* Rechtstexte */
.legal {
  max-width: var(--max-text);
}

.legal h2 {
  margin-top: 2rem;
  font-size: 20px;
}

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

.legal li {
  margin-bottom: 0.5rem;
  line-height: 1.4em;
}

/* Footer */
.site-footer {
  border-top: var(--border-width) solid var(--gray-900);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-footer a {
  color: var(--fg);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-q::after {
    transition: none;
  }
}
