/* =============================================================================
   hp26-theme.css — LIGHT CHROME + Background Image + Glass Cards
   Ziel (wie „sehr gut“ bewertet):
   - Header/Footer sehr hell, Text satt dunkelblau
   - Hintergrundbild deutlich sichtbar (nicht verwaschen)
   - Kacheln halb-durchlässig, gut lesbar, mit Glass/Blur
   - Kein Chaos durch doppelte/konkurrierende Farbsets
============================================================================= */

:root{
  /* Basis */
  --page-bg: #f6f8fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #475569;
  --border: rgba(17,24,39,.12);
  --shadow: 0 10px 26px rgba(17,24,39,.08);
  --shadow-hover: 0 16px 40px rgba(17,24,39,.12);

  /* „Sattes Dunkelblau“ */
  --hp26-ink: #0a1f66;

  /* Header/Footer: hell (Chrome) */
  --hp-header-bg:   rgba(255,255,255,.92);
  --hp-header-bg-2: rgba(255,255,255,.88);   /* leichter Verlauf */
  --hp-header-text: var(--hp26-ink);

  /* (Logo-Farbe nur als Platzhalter – Logo wird unten ausgeblendet) */
  --hp-logo: rgba(10,31,102,.18);

  /* Hintergrundbild global (wie Ihr Test) */
  --hp26-bg-image: url("/assets/startbild1.webp");
  --hp26-bg-overlay: .10; /* 0.10 = Bild klar sichtbar, nur minimal „entblendet“ */

  /* Glass-Karten */
  --hp26-card-alpha: .92; /* kleiner = durchsichtiger */
  --hp26-card-border: rgba(6,26,90,.16);
  --hp26-card-shadow: 0 12px 28px rgba(0,0,0,.12);
  --hp26-card-blur: 0px;
}

/* =============================================================================
   Sticky footer layout
============================================================================= */
html, body{ height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  color: var(--text);
  background-color: var(--page-bg);

  /* Bild klar sichtbar */
  background-image:
    linear-gradient(
      rgba(246,248,251,var(--hp26-bg-overlay)),
      rgba(246,248,251,var(--hp26-bg-overlay))
    ),
    var(--hp26-bg-image);

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

main{
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 16px 48px;
  min-width: 0;
}

/* =============================================================================
   Header (LIGHT CHROME)
============================================================================= */
.site-header{
  background: linear-gradient(180deg, var(--hp-header-bg), var(--hp-header-bg-2));
  border-bottom: 1px solid rgba(6,26,90,.14);
  box-shadow: none;
  color: var(--hp26-ink);
}

/* Titel größer, Logo-Kreis weg */
.brand .title{
  color: var(--hp26-ink);
  font-weight: 900;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: .2px;
}
.brand .logo{ display: none; } /* grüner Kreis weg */

/* Navigation dunkelblau */
.nav a{
  color: var(--hp26-ink);
  background: transparent;
}
.nav a:hover{
  background: rgba(6,26,90,.06);
  border-color: rgba(6,26,90,.18);
}
.nav a.active{
  background: rgba(6,26,90,.10);
  border-color: rgba(6,26,90,.22);
  color: var(--hp26-ink);
}
.nav-toggle{
  color: var(--hp26-ink);
  background: rgba(6,26,90,.06);
  border-color: rgba(6,26,90,.18);
}

/* Mobile-Menü als Panel */
.header-inner{ position: relative; }

@media (max-width: 760px){
  .nav.open{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;

    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open a{
    color: var(--hp26-ink);
    border-color: rgba(6,26,90,.12);
  }

  .nav.open a:hover{
    background: rgba(6,26,90,.06);
    border-color: rgba(6,26,90,.18);
  }

  .nav.open a.active{
    background: rgba(6,26,90,.10);
    border-color: rgba(6,26,90,.22);
  }
}

/* =============================================================================
   Cards (Glass)
============================================================================= */
.card{
  position: relative;
  overflow: hidden;

  background: rgba(255,255,255,var(--hp26-card-alpha));
  border: 1px solid var(--hp26-card-border);
  box-shadow: var(--hp26-card-shadow);

  backdrop-filter: blur(var(--hp26-card-blur));
  -webkit-backdrop-filter: blur(var(--hp26-card-blur));
}

/* farbige Leiste oben (bleibt wie bei Ihnen) */
.card::after{
  content:"";
  position: absolute;
  left: 0; top: 0;
  height: 6px; width: 100%;
  background: var(--card-accent, rgba(6,26,90,.55));
  opacity: .95;
  pointer-events: none;
}

/* dezente „Glow“-Flächen (bleibt wie bei Ihnen) */
.card::before{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 80% 18%,
      color-mix(in srgb, var(--card-accent, rgba(6,26,90,.55)) 16%, transparent),
      transparent 60%
    ),
    radial-gradient(420px 240px at 20% 85%,
      color-mix(in srgb, var(--card-accent, rgba(6,26,90,.55)) 10%, transparent),
      transparent 60%
    );
  pointer-events: none;
}

.card > *{ position: relative; }

.card h2{ color: var(--hp26-ink); }
.card p { color: rgba(6,26,90,.88); }

/* =============================================================================
   Footer (LIGHT CHROME) + Uhr rechts
============================================================================= */
.site-footer{
  flex-shrink: 0;
  width: 100%;
  background: var(--hp-header-bg);
  color: var(--hp26-ink);
  border-top: 1px solid rgba(6,26,90,.14);
  box-shadow: none;

  /* Wichtig: nicht zentrieren */
  text-align: left;
}

.site-footer a,
.site-footer small{
  color: var(--hp26-ink);
}

/* Container: links Text, rechts Uhr */
.site-footer .container{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Uhr rechts */
.footer-clock{
  margin-left: auto;
  white-space: nowrap;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}

/* =============================================================================
   Charts (wie gehabt)
============================================================================= */
.chart-box{ height: 320px; }
.chart-preview{ height: 90px; }

.chart-box canvas,
.chart-preview canvas{
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Farben der Kacheln */
.card--technik  { --card-accent: #2563eb; }  /* blau */
.card--projekte { --card-accent: #db2777; }  /* pink */
.card--bilder   { --card-accent: #0ea5e9; }  /* cyan/blau */
.card--intern   { --card-accent: #ef4444; }  /* rot */


/* ==========================================================================
   Charts immer auf „solider“ Fläche (damit kein Foto durchscheint)
   ========================================================================== */
.chart-box,
.chart-preview{
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(17,24,39,.12) !important;
  border-radius: 16px;
}

/* ==========================================================================
   Leseflächen für Textseiten (z.B. Impressum) – immer gut lesbar auf Foto
   ========================================================================== */
.detail-section{
  background: #ffffff; /* NICHT transparent */
  border: 1px solid rgba(6,26,90,.14);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 26px rgba(17,24,39,.08);
}

/* Abstand zwischen den Boxen */
.detail-section + .detail-section{
  margin-top: 14px;
}

/* Tabellen-Standard für hp26 (z.B. Statistik) */
.tbl{ width:100%; border-collapse:collapse; }
.tbl th,.tbl td{ padding:10px 12px; border-bottom:1px solid rgba(17,24,39,.12); }
.tbl th{ text-align:left; color:var(--hp26-ink); font-weight:800; }
.tbl tr:hover td{ background: rgba(6,26,90,.04); }


