/* ============================================
   HELFERKASTEN.DE — Shared Design System
   Use this in every tool page via:
   <link rel="stylesheet" href="/helferkasten.css">
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ---- TOKENS ---- */
:root {
  --bg:        #F7F4EE;
  --surface:   #FFFFFF;
  --surface2:  #F0EDE6;
  --border:    #E2DDD4;
  --text:      #1A1916;
  --muted:     #8C897F;
  --accent:    #2D6A4F;   /* forest green */
  --accent2:   #E76F51;   /* warm coral */
  --accent3:   #264653;   /* deep teal */
  --yellow:    #F4A261;
  --white:     #FDFCF9;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 3px rgba(26,25,22,0.06);
  --shadow-md:  0 4px 16px rgba(26,25,22,0.08);
  --shadow-lg:  0 12px 40px rgba(26,25,22,0.10);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- HEADER ---- */
.hk-header {
  background: var(--text);
  color: var(--white);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hk-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hk-logo .icon {
  width: 28px; height: 28px;
  background: var(--accent2);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.hk-logo .dot { color: var(--accent2); }
.hk-nav {
  display: flex;
  gap: 4px;
  list-style: none;
}
.hk-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
}
.hk-nav a:hover, .hk-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.hk-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* ---- AD BANNER STRIP ---- */
.hk-ad-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px clamp(16px, 4vw, 40px);
  display: flex;
  justify-content: center;
}

/* ---- AD PLACEHOLDERS ---- */
.hk-ad {
  background: repeating-linear-gradient(
    45deg, #ede9e0, #ede9e0 4px, #e5e0d5 4px, #e5e0d5 8px
  );
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 4px;
}
.hk-ad::before { content: "📢"; font-size: 16px; }
.hk-ad-leaderboard { width: 100%; max-width: 728px; height: 90px; }
.hk-ad-rectangle  { width: 100%; height: 250px; }
.hk-ad-sidebar    { width: 160px; min-width: 160px; height: 600px; }

/* ---- BREADCRUMB ---- */
.hk-breadcrumb {
  padding: 12px clamp(16px, 4vw, 40px);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hk-breadcrumb a { color: var(--accent); }
.hk-breadcrumb .sep { opacity: 0.4; }

/* ---- PAGE LAYOUT ---- */
.hk-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 40px) 48px;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 32px;
  align-items: start;
}
.hk-main { min-width: 0; }
.hk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}
.hk-sidebar-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---- CARD ---- */
.hk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hk-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.hk-card .hk-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 400;
}

/* ---- FORM ELEMENTS ---- */
.hk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.hk-field { display: flex; flex-direction: column; gap: 7px; }
.hk-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.hk-field input,
.hk-field select,
.hk-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.hk-field input:focus,
.hk-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
  background: var(--white);
}

/* ---- BUTTONS ---- */
.hk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.hk-btn:hover { background: #235c42; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hk-btn:active { transform: translateY(0); }
.hk-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.hk-btn-secondary:hover { background: var(--accent); color: white; }
.hk-btn-coral { background: var(--accent2); }
.hk-btn-coral:hover { background: #d4613e; }

/* ---- RESULT BOX ---- */
.hk-result {
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  display: none;
  animation: hkFadeUp 0.3s ease;
}
.hk-result.show { display: block; }
.hk-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 14px;
}
.hk-result-row:last-child { border-bottom: none; }
.hk-result-row .lbl { color: rgba(255,255,255,0.45); }
.hk-result-row .val { font-weight: 700; }
.hk-result-row.big .val { font-family: var(--font-display); font-size: 22px; color: #6fcf97; }

/* ---- SECTION TITLE ---- */
.hk-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hk-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- TOOL CARD (for homepage grid) ---- */
.hk-tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.22s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.hk-tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(45,106,79,0.04));
  pointer-events: none;
}
.hk-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.hk-tool-card .emoji {
  font-size: 32px;
  line-height: 1;
}
.hk-tool-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.hk-tool-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.hk-tool-card .hk-arrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.hk-tool-card .hk-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent2);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- FOOTER ---- */
.hk-footer {
  background: var(--text);
  color: rgba(255,255,255,0.35);
  padding: 32px clamp(16px, 4vw, 40px);
  margin-top: 0;
}
.hk-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hk-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.hk-footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: white;
}
.hk-footer-logo span { color: var(--accent2); }
.hk-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hk-footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  transition: color 0.15s;
}
.hk-footer-links a:hover { color: white; }
.hk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 16px;
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* ---- ANIMATIONS ---- */
@keyframes hkFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hk-animate { animation: hkFadeUp 0.5s ease both; }
.hk-delay-1 { animation-delay: 0.1s; }
.hk-delay-2 { animation-delay: 0.2s; }
.hk-delay-3 { animation-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hk-layout { grid-template-columns: 1fr; }
  .hk-sidebar { display: none; }
  .hk-nav { display: none; }
  .hk-nav-toggle { display: block; }
  .hk-form-grid { grid-template-columns: 1fr; }
}
