/* /public_html/assets/css/layout.css */

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: visible; /* <-- WICHTIG für Mobile Safari */
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,0.62);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  height: 30px;
  width: auto;
  display: block;
}
.brand-logo-full{
  height: 34px;
  width: auto;
  display: block;
}
.brand-mark{
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(34,211,238,0.14);
  border: 1px solid rgba(34,211,238,0.22);
  color: var(--text);
  font-weight: 700;
}
.brand-name{
  font-weight: 650;
  letter-spacing: -0.01em;
}

.site-nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-link{
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.header-actions{ display:flex; gap:10px; align-items:center; }
.lang-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 42px; height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 13px;
}
.lang-pill:hover{ color: var(--text); border-color: rgba(255,255,255,0.16); }

.site-main{
  padding: 30px 0 44px;
}

/* —— Kachel-Layout: Desktop-first, unsymmetrisch —— */
.tiles{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  align-items: start;
}

/* Basis-Kachel */
.tile{
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.03));
}

/* Spans */
.col-12{ grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }

.tall{ padding-bottom: 26px; }

/* Kleine Headline-Zeile in Kacheln */
.tile .eyebrow{
  display:block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

/* Hero-Kachel: etwas „appiger“, aber nicht laut */
.hero{
  padding: 26px 22px;
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(34,211,238,0.13), transparent 55%),
    linear-gradient(180deg, var(--surface-2), rgba(255,255,255,0.03));
  border-color: rgba(255,255,255,0.12);
}

.hero .lede{
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 8px;
  max-width: 70ch;
}

.site-footer{
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(11,15,20,0.6);
}

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  padding: 22px 0;
}

.footer-link{ color: var(--muted); }
.footer-link:hover{ color: var(--text); }
.sep{ color: rgba(255,255,255,0.25); margin: 0 8px; }

/* —— Responsive: mobil lesbar, aber nicht „mobile-first“ —— */
@media (max-width: 980px){
  :root{ --h1: 30px; }

  /* Header: zweizeilig */
  .header-inner{
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Logo links, Sprache rechts */
  .brand{ order: 1; }
  .header-actions{ order: 2; margin-left: auto; }

  /* Navigation unter der ersten Zeile */
  .site-nav{
    order: 3;
    flex-basis: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .site-nav::-webkit-scrollbar{ display:none; }

  .nav-link{
    padding: 10px 12px;
    white-space: nowrap;
  }

  /* Layout-Grid */
  .tiles{ grid-template-columns: repeat(6, 1fr); }
  .col-12{ grid-column: span 6; }
  .col-8, .col-7, .col-6, .col-5, .col-4{ grid-column: span 6; }
}