/* ============================================================
   ARCANGELI DESIGN SYSTEM — v1.0
   Einbinden: <link rel="stylesheet" href="/shared/design.css">
   Bei Tools in tools/: href="../shared/design.css"
   Bei Tools in tools/archive/: href="../../shared/design.css"
   ============================================================ */

/* --- Reset & Base --- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #111;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  padding-top: 56px; /* Platz für feste Nav */
}
h1 { font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; font-size: 38px; }
@media(min-width:768px){ h1 { font-size: 56px; } }
h2 { font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }
h3, h4 { font-weight: 500; letter-spacing: -0.01em; }

/* --- Farben --- */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2a44;
  --border: #e5e5e5;
  --text: #111;
  --text-secondary: #666;
  --text-muted: #999;
  --bg: #fff;
  --bg-subtle: #fafafa;
  --max-width: 1160px;
}
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-ink { color: var(--text); }
.accent { color: var(--primary); }

/* --- Navigation --- */
.nav-glass {
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 0.5px solid var(--border);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 56px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-tool-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-tool-name::before { content: '—'; color: var(--text-muted); font-weight: 300; }
.nav-back {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-back:hover { color: var(--text); }

/* --- Buttons --- */
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background .2s;
}
.btn-accent:hover { background: var(--primary-dark); }

/* --- Tool Cards --- */
.tool-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  padding: 1.5rem;
  background: #fff;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(26,58,92,0.1);
  transform: translateY(-2px);
}
.tool-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
}

/* --- Tool Page Layout --- */
.tool-page-header {
  padding: 48px 24px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.tool-page-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}
.tool-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
}
@media(max-width:640px){
  .tool-container { padding: 24px 16px; }
}
.tool-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.tool-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-panel-body { padding: 14px 16px; }

/* --- Tags & Labels --- */
.category-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0f4f8;
  color: var(--primary);
}

/* --- Scroll Reveal --- */
.r { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.r.v { opacity: 1; transform: translateY(0); }

/* --- Footer --- */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
