/* file: www/style/desktop.css */
/* ==========================================================================
   Desktop-Layout (ab 1101px)
   ========================================================================== */

/* Layoutgrundlagen */
html, body{
  background: #f5f6f7;
}

/* zentrierte Mittelspalte mit klaren Rändern */
:root{
  --content-w: 1100px;
  --rails-shadow: 14px 0 24px rgba(0,0,0,.10),
                  -14px 0 24px rgba(0,0,0,.10);
  --header-h: 105px; /* an Logo-Größe angepasst, verhindert „Wegrutschen“ des Menüs */
}

/* Body: keine fixe Bottom-Nav am Desktop */
body{
  padding-bottom: 0;
}

/* Container optisch freistellen */
.container-1100{
  max-width: var(--content-w);
  padding: 0 16px;
  background: #fff;
  box-shadow: var(--rails-shadow);
  border-radius: 14px;
  margin-top: 24px;      /* Abstand unterhalb Header/Menu */
  margin-bottom: 32px;   /* unten etwas Luft */
}

.content-pad{
  padding: 24px 0;
}

/* == HEADER Desktop ======================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);                  /* jetzt auch Desktop dunkel */
  box-shadow: 0 2px 4px rgba(0,0,0,.35);         /* etwas kräftiger, weil dunkler Hintergrund */
  border-bottom: 0;                              /* rote Linie übernimmt ja schon die main-nav */
}

.header-inner{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Reihenfolge im Header nur auf Desktop anpassen */
.header-left{    order: 10; }
.header-search{  order: 20; }
.header-spacer{  order: 30; }
.header-meta{    order: 40; }

/* Logo größer auf Desktop */
.header-logo img{
  height: 85px;
}

/* Titel einblenden */
.header-title{
  display: flex;
  flex-direction: column;
}
.header-site-name{
  font-size: 22px;
  font-weight: 700;
}
.header-site-sub{
  font-size: 13px;
  color: var(--header-sub);  /* statt #555 */
}

/* Meta rechts fühlt sich automatisch „luftiger“ an */
.header-meta{
  align-items: flex-end;
}

/* Hamburger ausblenden */
.header-menu-btn{
  display: none;
}

/* Suche im Header (nur Desktop, unter der Uhr) */
.header-search{
  display: block;
  width: 160px;           /* jetzt schmaler */
}

.header-search-input{
  padding: 4px 9px;       /* übernimmt „schlank“ aus base, hier nur Safety */
  font-size: 13px;
}

/* Bottom-Nav am Desktop komplett ausblenden */
.bottom-nav{
  display: none !important;
}

/* == Grids & Karten Desktop =============================================== */

.grid-2{
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards{
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quick{
  grid-template-columns: repeat(4, 1fr);
}

/* Filterzeilen breiter */
.filters .row{
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Karten und Kacheln mit mehr Luft */
.card{
  padding: 16px;
}
.tile{
  padding: 20px;
}

/* dezentes Hover-Verhalten (global) */
a:hover{
  text-decoration: underline;
}

/* == Hauptnavigation unter dem Header ===================================== */

.main-nav{
  display: block;
  position: sticky;
  top: var(--header-h);                  /* direkt unter dem Header kleben */
  z-index: 25;                           /* unter Header (z=30), über Inhalt */
  background: var(--header-bg);          /* gleich wie Header */
  border-bottom: 3px solid var(--brand); /* rote Linie als Abschluss */
}

.main-nav-inner{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 16px;
}

.main-nav-root{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

/* Hauptpunkte */
.main-nav-item{
  position: relative;
}

.main-nav-item > a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--header-sub);              /* helles Grau auf dunklem Hintergrund */
  border-radius: 6px 6px 0 0;
  font-weight: 500;
}

.main-nav-item > a i{
  font-size: 14px;
}

/* aktiver Hauptpunkt */
.main-nav-item.is-active > a{
  background: var(--brand);
  color: #ffffff;
}

/* Hover */
.main-nav-item > a:hover{
  background: rgba(255,255,255,0.06);
}

.main-nav-item.is-active > a:hover{
  background: var(--brand);
  color: #ffffff;
}

/* Subindikator */
.main-nav-item.has-sub > a::after{
  content: " ▾";
  font-size: 11px;
}

/* Submenü */
.main-nav-sub{
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-top: none;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  display: none;
  z-index: 40;
}

/* Dropdown bei Hover sichtbar */
.main-nav-item.has-sub:hover .main-nav-sub{
  display: block;
}

/* Unterpunkte */
.main-nav-subitem a{
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #222;
  white-space: nowrap;
}
.main-nav-subitem a:hover{
  background: #f7f7f7;
}

/* aktiver Unterpunkt */
.main-nav-subitem.is-active > a{
  background: var(--field);
  font-weight: 600;
}

/* file: www/style/desktop.css – GANZ UNTEN */
.site-header .header-search-input{
  background-color: var(--header-field) !important;
  padding: 4px 9px;
  border-radius: 999px;
}



.ref-teaser {
    margin: 1.5rem 0;
}

.ref-teaser-inner {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    background: #fafafa;
}

.ref-teaser-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.ref-teaser-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #df2334;
    color: #fff;
}

.ref-teaser-category {
    font-size: 0.8rem;
    color: #666;
}

.ref-teaser-title {
    font-size: 1.1rem;
    margin: 0.2rem 0 0.4rem;
}

.ref-teaser-title a {
    text-decoration: none;
}

.ref-teaser-title a:hover {
    text-decoration: underline;
}

.ref-teaser-text {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}

.ref-teaser-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #666;
}

.ref-teaser-link {
    margin-left: auto;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Liste */
.ref-list {
    margin: 2rem 0;
}

.ref-list-header h2 {
    margin-bottom: 0.2rem;
}

.ref-list-subtitle {
    margin-top: 0;
    font-size: 0.9rem;
    color: #666;
}

.ref-list-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.ref-list-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    background: #fff;
}

.ref-list-title {
    margin: 0 0 0.3rem;
}

.ref-list-title a {
    text-decoration: none;
}

.ref-list-title a:hover {
    text-decoration: underline;
}

.ref-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.4rem;
}

.ref-list-teaser {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
}

.ref-list-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.ref-list-link {
    font-size: 0.85rem;
    text-decoration: none;
}
