/* Gilles Portal 2.0 — Clean Tech Theme
   Zusätzliches Stylesheet, nach der bisherigen style.css einbinden.
   Keine Änderungen an App, Datenbank oder Admin-Funktionen.
*/
:root {
  color-scheme: dark;
  --cc-text: #f4f7ff;
  --cc-muted: #a8b9ce;
  --cc-border: rgba(194,218,250,.15);
  --cc-surface: rgba(22,38,61,.76);
}
html { min-height: 100%; background: #07101e; }
body {
  min-height: 100vh;
  color: var(--cc-text);
  background:
    radial-gradient(ellipse 60% 45% at 76% -8%, rgba(44,108,195,.22), transparent 78%),
    radial-gradient(ellipse 45% 40% at 4% 55%, rgba(0,166,159,.09), transparent 78%),
    linear-gradient(145deg, #08101e 4%, #101e32 50%, #081322 100%) !important;
  background-attachment: fixed !important;
  -webkit-font-smoothing: antialiased;
}
/* Narrow the layout slightly for a focused, premium dashboard. */
main, .container, .shell, .wrap, .page {
  max-width: 1120px;
}
header, .hero, .page-header {
  margin-bottom: clamp(22px, 4vw, 36px) !important;
}
header h1, .hero h1, .page-header h1 {
  letter-spacing: -.045em;
  line-height: 1.08;
}
header p, .hero p, .page-header p { color: var(--cc-muted); }
.section-head { margin-bottom: 14px !important; }
.section-head h2 { letter-spacing: -.02em; }
.cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
.cards > .card, .cards > a.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  min-height: 170px !important;
  padding: 22px !important;
  border: 1px solid var(--cc-border) !important;
  border-radius: 20px !important;
  background: linear-gradient(148deg, rgba(36,57,82,.83), var(--cc-surface)) !important;
  box-shadow: 0 12px 35px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.045) !important;
  text-decoration: none;
  color: var(--cc-text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.cards > .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
  pointer-events: none;
}
.cards > .card:hover, .cards > .card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(116,188,255,.54) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.24), 0 0 0 1px rgba(116,188,255,.07) !important;
  outline: none;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  border-radius: 15px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.17), 0 7px 18px rgba(0,0,0,.16);
}
.tile-icon svg { width: 25px; height: 25px; }
.tile-text { min-width: 0; }
.tile-text strong { display: block; color: #f7f9ff; letter-spacing: -.025em; line-height: 1.25; }
.tile-text small { display: block; margin-top: 5px; color: #b0bfd1; line-height: 1.45; }
.arrow {
  border: 1px solid rgba(190,218,255,.26);
  background: rgba(118,161,213,.075);
  border-radius: 999px;
}
.bottom-nav { margin-top: 25px !important; }
.bottom-nav a { color: #a7c9ec; }
/* Avoid oversized cards on phone; keep a 2-column app launcher. */
@media (max-width: 850px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}
@media (max-width: 520px) {
  body { padding-left: 14px !important; padding-right: 14px !important; }
  header, .hero, .page-header { margin-bottom: 20px !important; }
  header h1, .hero h1, .page-header h1 { font-size: clamp(1.8rem, 8vw, 2.6rem) !important; }
  .cards > .card, .cards > a.card {
    min-height: 164px !important;
    padding: 14px !important;
    border-radius: 17px !important;
  }
  .tile-icon { width: 46px !important; height: 46px !important; min-width: 46px; border-radius: 13px !important; }
  .tile-icon svg { width: 23px; height: 23px; }
  .tile-text strong { font-size: 13px !important; overflow-wrap: anywhere; }
  .tile-text small { font-size: 11px !important; }
  .arrow { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cards > .card { transition: none !important; }
  .cards > .card:hover { transform: none; }
}
