/* =============================================================================
   hp26 – Base CSS
   Zweck: Layout + Basis-Komponenten (ohne Theme-Experimente)
   Hinweis: Farben/Look-&-Feel werden in hp26-theme.css weiter verfeinert.
============================================================================= */

/* ===== CSS Variables (Base Defaults) ===== */
:root{
  /* Layout */
  --container: 1100px;
  --gap: 18px;
  --gap-sm: 16px;

  /* Radius */
  --radius: 16px;
  --radius-sm: 12px;

  /* Typography */
  --font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;

  /* Neutral defaults (werden im Theme überschrieben) */
  --page-bg: #f6f8fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #475569;
  --border: rgba(17,24,39,.12);

  /* Accent (Fallback) */
  --accent: #2563eb;

  /* Effects */
  --shadow: 0 10px 26px rgba(17,24,39,.08);
  --shadow-hover: 0 16px 40px rgba(17,24,39,.12);
  --border-hover: rgba(37,99,235,.22);
}

/* ===== Reset / Base ===== */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html,
body{
  height: 100%;
}

body{
  margin: 0;
  font-family: var(--font);
  line-height: 1.55;
  background: var(--page-bg);
  color: var(--text);
}

a{
  color: var(--accent);
}

a:hover{
  opacity: .95;
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Layout Container ===== */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* =============================================================================
   Header / Navigation (Structure only)
============================================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

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

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit; /* vorher: yellow (wirkt wie Debug) */
}

.brand .logo{
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--accent);
}

.brand .title{
  font-weight: 800;
  letter-spacing: .2px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a{
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: inherit;
}

.nav-toggle{
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

/* Mobile: Burger zeigt/öffnet Menü */
@media (max-width: 760px){
  .nav-toggle{ display: inline-flex; }

  .nav{ display: none; }

  .nav.open{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav a{ border-radius: 12px; }
}

/* =============================================================================
   Main / Typography
============================================================================= */
/* Seiten nutzen <main> direkt. Theme kann max-width/padding setzen. */
main{
  padding: 18px 16px 44px;
}

h1{
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin: 10px 0 14px;
}

h2{
  font-size: 1.15rem;
  margin: 0 0 10px;
}

p{
  margin: 0 0 12px;
  color: var(--muted);
}

/* =============================================================================
   Grid + Cards (Base)
============================================================================= */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

@media (max-width: 480px){
  .grid{
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
  }
}

.card{
  display: block;
  text-decoration: none;
  color: inherit;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;

  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

/* =============================================================================
   Images / Figure
============================================================================= */
figure{
  margin: 16px 0;
  padding: 0;
}

.responsive-image{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

figcaption{
  margin-top: 8px;
  color: var(--muted);
  font-size: .92rem;
}

/* =============================================================================
   Tables
============================================================================= */
table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th,
td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th{
  text-align: left;
  background: rgba(0,0,0,.03);
}

/* =============================================================================
   Footer (Base)
============================================================================= */
.site-footer{
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
