/* AQIO-Website – eigenes Aussehen für das Joomla-Standard-Template Cassiopeia (wird als user.css eingebunden) */
:root {
  --aqio-blau: #1f6fd1;
  --aqio-dunkel: #12161c;
  --aqio-karte: #ffffff;
  --aqio-linie: #dfe4ea;
  --aqio-leise: #5b6673;
  --cassiopeia-color-primary: #12161c;
  --cassiopeia-color-link: #1f6fd1;
  --cassiopeia-color-hover: #1557a8;
  --link-color: #1f6fd1;
}

body {
  background: #f4f6f9;
}

.header {
  background: linear-gradient(135deg, #12161c 0%, #1b2430 60%, #173a63 100%);
}

.brand-logo .site-title,
.navbar-brand a {
  letter-spacing: 0.06em;
  font-weight: 800;
}

.site-description {
  opacity: 0.8;
}

/* Startseite: großer Kopfbereich */
.aqio-hero {
  background: linear-gradient(135deg, #12161c 0%, #1d2a3a 55%, #1f4e86 100%);
  color: #fff;
  border-radius: 18px;
  padding: 42px 34px;
  margin: 0 0 28px;
}

.aqio-hero h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin: 6px 0 12px;
}

.aqio-hero p {
  max-width: 760px;
  font-size: 1.1rem;
  opacity: 0.92;
}

.aqio-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem !important;
  opacity: 0.7 !important;
}

.aqio-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 0 0 32px;
}

.aqio-kachel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--aqio-karte);
  border: 1px solid var(--aqio-linie);
  border-radius: 16px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 25, 40, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.aqio-kachel:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15, 25, 40, 0.12);
}

.aqio-kachel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

.aqio-kachel-sym {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  font-size: 4rem;
  background: linear-gradient(135deg, #e8f0fb, #f6f9fd);
}

.aqio-kachel b {
  font-size: 1.15rem;
}

.aqio-kachel span {
  color: var(--aqio-leise);
}

.aqio-drei {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* Produktseiten */
.aqio-lead {
  font-size: 1.2rem;
  color: #26313d;
  max-width: 820px;
}

.aqio-bild {
  margin: 22px 0;
}

.aqio-bild img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--aqio-linie);
  box-shadow: 0 8px 24px rgba(15, 25, 40, 0.1);
}

.aqio-bild figcaption {
  color: var(--aqio-leise);
  font-size: 0.9rem;
  margin-top: 6px;
}

.aqio-zwei {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Casa: Modul-Karten (Ausschnitte der Startseite) */
.aqio-module {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  align-items: start;
}
.aqio-module img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #2c3a4c;
  border-radius: 10px;
}
.aqio-liste-spalten {
  columns: 2 260px;
  column-gap: 32px;
}
.aqio-liste-spalten li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.aqio-handy img {
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

.aqio-klein img {
  max-width: 520px;
}

.aqio-merkmale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.aqio-merkmale > div {
  background: var(--aqio-karte);
  border: 1px solid var(--aqio-linie);
  border-radius: 14px;
  padding: 16px 18px;
}

.aqio-merkmale h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
  color: var(--aqio-blau);
}

.aqio-merkmale p {
  margin: 0;
  color: #34404d;
}

.aqio-tabelle td,
.aqio-tabelle th {
  vertical-align: top;
}

/* Preise */
.aqio-preise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.aqio-preis {
  display: flex;
  flex-direction: column;
  background: var(--aqio-karte);
  border: 1px solid var(--aqio-linie);
  border-radius: 16px;
  padding: 18px;
}

.aqio-preis h3 {
  font-size: 1.1rem;
}

.aqio-betrag {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--aqio-blau);
  margin: 4px 0 10px;
}

.aqio-preis ul {
  padding-left: 18px;
  flex: 1;
}

/* Hinweis auf Entwürfe/Platzhalter (vor dem Start entfernen) */
.aqio-entwurf {
  background: #fff4e5;
  border: 1px solid #f0c27b;
  color: #7a4b00;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

/* Knöpfe in Markenfarbe */
.btn-primary {
  --btn-bg: #1f6fd1;
  --btn-border-color: #1f6fd1;
  --btn-hover-bg: #1557a8;
  --btn-hover-border-color: #1557a8;
  background-color: #1f6fd1;
  border-color: #1f6fd1;
}

.btn-primary:hover {
  background-color: #1557a8;
  border-color: #1557a8;
}

/* Fußzeile: Menü nebeneinander */
.footer ul.mod-menu,
.footer ul.nav,
.footer .aqio-fussmenue ul {
  display: flex;
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul.mod-menu > li,
.footer ul.nav > li {
  margin: 0;
}

.footer a {
  color: #dbe4ee;
}

/* Funktionsseite (AQIO Nota – alle Funktionen) */
.aqio-inhalt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--aqio-karte);
  border: 1px solid var(--aqio-linie);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0 30px;
}

.aqio-inhalt a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf2fc;
  color: var(--aqio-blau);
  text-decoration: none;
  font-size: 0.95rem;
}

.aqio-inhalt a:hover {
  background: var(--aqio-blau);
  color: #fff;
}

.aqio-fkt {
  background: var(--aqio-karte);
  border: 1px solid var(--aqio-linie);
  border-radius: 18px;
  padding: 20px 24px 10px;
  margin: 0 0 26px;
  scroll-margin-top: 20px;
}

.aqio-fkt h2 {
  font-size: 1.45rem;
  color: var(--aqio-dunkel);
  margin: 0 0 4px;
}

.aqio-fkt .aqio-bild {
  margin: 14px 0;
}

.aqio-fkt ul {
  padding-left: 1.2em;
}

.aqio-fkt li {
  margin: 4px 0;
}

.aqio-fkt .aqio-zwei .aqio-bild img,
.aqio-ausschnitt img {
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

/* Handy-Bildschirme immer ganz zeigen (nicht oben/unten abschneiden) */
.aqio-fkt .aqio-zwei .aqio-bild.aqio-handy img,
.aqio-handy img {
  max-height: none;
  height: auto;
  object-fit: contain;
}

.aqio-hinweis {
  color: var(--aqio-leise);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .aqio-fkt {
    padding: 14px 14px 6px;
  }
}

/* Downloads */
.aqio-dl-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.aqio-dl {
  background: var(--aqio-karte);
  border: 1px solid var(--aqio-linie);
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}

.aqio-dl h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--aqio-blau);
}

.aqio-dl-unter {
  color: #5a6672;
  margin: 2px 0 10px;
}

.aqio-dl-daten {
  width: 100%;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.aqio-dl-daten th {
  width: 80px;
  padding: 3px 8px 3px 0;
  vertical-align: top;
  color: #5a6672;
  font-weight: 600;
}

.aqio-dl-daten td {
  padding: 3px 0;
}

.aqio-dl code {
  word-break: break-all;
  font-size: 0.8rem;
}

.aqio-dl-hinweis {
  background: #f1f6fc;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.93rem;
}

.aqio-dl .btn {
  white-space: normal;
  overflow-wrap: anywhere;
}

.aqio-dl details {
  margin: 8px 0;
}

.aqio-dl summary {
  cursor: pointer;
  font-weight: 600;
}
