/* ============================================================
   reingeklickt.net — Haupt-Stylesheet
   Design: Signal × Werkstatt Hybrid
   Strategie: Smart Home DIY + KI-Business (myBuisness)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0C1117;
  --bg2:         #141B24;
  --surface:     #1C2533;
  --surface2:    #243040;
  --surface3:    #2D3B4E;
  --primary:     #1A2B4A;
  --accent:      #F5820A;
  --accent2:     #3DAA6B;
  --blue:        #38BDF8;
  --red:         #EF4444;
  --text:        #E8EDF2;
  --text-sub:    #8A9BB0;
  --text-muted:  #4A5A6A;
  --border:      #1E2D3D;
  --border2:     #2A3A4E;
  --glow:        rgba(245,130,10,0.15);
  --glow-blue:   rgba(56,189,248,0.10);
  --radius:      8px;
  --radius-sm:   4px;
  --radius-lg:   16px;
  --transition:  0.2s ease;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--text-sub); line-height: 1.8; }

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}

.serif {
  font-family: 'Source Serif 4', Georgia, serif;
}

/* ── LAYOUT ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── TOP BAR ───────────────────────────────────────────────── */
.topbar {
  background: var(--accent);
  color: #000;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.topbar a { color: #000; font-weight: 800; text-decoration: underline; }

/* ── HEADER / NAV ──────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(12, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.logo .accent { color: var(--accent); }
.logo .dot { color: var(--text-sub); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav a {
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--surface);
  opacity: 1;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 1.25rem;
  padding: 0.25rem;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
}
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover { background: #e0720a; opacity: 1; color: #000; }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

.btn--ghost {
  background: var(--surface);
  color: var(--text-sub);
}
.btn--ghost:hover { background: var(--surface2); color: var(--text); opacity: 1; }

.btn--blue {
  background: var(--blue);
  color: #000;
}
.btn--blue:hover { opacity: 0.9; color: #000; }

.btn--lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.4rem 0.9rem; font-size: 0.75rem; }

/* ── BADGES / TAGS ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--accent  { background: rgba(245,130,10,0.15);  color: var(--accent);  border: 1px solid rgba(245,130,10,0.3); }
.badge--green   { background: rgba(61,170,107,0.15);  color: var(--accent2); border: 1px solid rgba(61,170,107,0.3); }
.badge--blue    { background: rgba(56,189,248,0.12);  color: var(--blue);    border: 1px solid rgba(56,189,248,0.25); }
.badge--red     { background: rgba(239,68,68,0.12);   color: var(--red);     border: 1px solid rgba(239,68,68,0.25); }
.badge--surface { background: var(--surface2); color: var(--text-sub); border: 1px solid var(--border2); }

/* ── SECTION LABELS ────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.section-label__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-label__text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.section-label__badge {
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.card--glow:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.card--blue:hover { border-color: var(--blue); }
.card--green:hover { border-color: var(--accent2); }

.card__img {
  width: 100%;
  height: 180px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}
.card__body { padding: 1.25rem; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.card__title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; color: var(--text); }
.card__excerpt { font-size: 0.875rem; color: var(--text-sub); line-height: 1.7; }
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── PROGRESS BARS ─────────────────────────────────────────── */
.progress { margin-bottom: 1rem; }
.progress__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.progress__label { color: var(--text); }
.progress__val { color: var(--text-sub); font-family: 'JetBrains Mono', monospace; }
.progress__bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}
.progress__fill--accent  { background: var(--accent); }
.progress__fill--green   { background: var(--accent2); }
.progress__fill--blue    { background: var(--blue); }

/* ── PRODUCT CARDS ─────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.product-card__top {
  padding: 2rem 1.5rem 1.5rem;
  flex: 1;
}
.product-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.product-card__badge { margin-bottom: 0.75rem; }
.product-card__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text); }
.product-card__desc { font-size: 0.875rem; color: var(--text-sub); line-height: 1.7; }
.product-card__features {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.product-card__features li {
  font-size: 0.8rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-card__features li::before {
  content: '✓';
  color: var(--accent2);
  font-weight: 700;
  flex-shrink: 0;
}
.product-card__bottom {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
}
.product-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}
.product-card__price span {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
}

/* ── NEWSLETTER ────────────────────────────────────────────── */
.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  border-left: 3px solid var(--accent);
}
.newsletter__form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.newsletter__input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Manrope', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter__input:focus { border-color: var(--accent); }
.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ── STATS ROW ─────────────────────────────────────────────── */
.stats-row {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  overflow-x: auto;
}
.stats-row__inner {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.stat__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}
.stat__label { font-size: 0.75rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.stat__value { font-size: 0.8rem; font-weight: 700; color: var(--blue); font-family: 'JetBrains Mono', monospace; }

/* ── TERMINAL BLOCK ────────────────────────────────────────── */
.terminal {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}
.terminal__bar {
  background: var(--surface2);
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal__body { padding: 1rem 1.25rem; color: var(--text-sub); line-height: 2; }
.terminal__line--cmd { color: var(--accent2); }
.terminal__line--out { color: var(--blue); }
.terminal__line--dim { color: var(--text-muted); }
.terminal__cursor { display: inline-block; width: 8px; height: 14px; background: var(--text); animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 2px; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand p { font-size: 0.85rem; color: var(--text-sub); margin-top: 0.75rem; line-height: 1.7; }
.footer__col h4 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col a { color: var(--text-sub); font-size: 0.85rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--text); opacity: 1; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer__bottom a { color: var(--text-muted); }
.footer__bottom a:hover { color: var(--text); opacity: 1; }

/* ── HERO SPECIFIC ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--border2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border2) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,130,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__glow--blue {
  top: 40%;
  right: 20%;
  background: radial-gradient(circle, rgba(56,189,248,0.04) 0%, transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
  content: '//';
  color: var(--text-muted);
}
.hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.hero h1 .highlight { color: var(--accent); }
.hero h1 .highlight--blue { color: var(--blue); }
.hero__sub { font-size: 1.05rem; margin-bottom: 2rem; max-width: 520px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text-sub);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fade-up { animation: fadeUp 0.6s ease forwards; }

/* ── UTILITY ───────────────────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-blue    { color: var(--blue); }
.text-green   { color: var(--accent2); }
.text-muted   { color: var(--text-muted); }
.text-sub     { color: var(--text-sub); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.fw-800       { font-weight: 800; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: auto; }
  .hero__inner { padding: 3rem 1.5rem; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: fixed; inset: 0; background: var(--bg2); padding: 5rem 2rem; z-index: 300; gap: 0.5rem; }
  .nav.open a { font-size: 1.25rem; padding: 0.75rem; }
  .hamburger { display: block; }
  .header__cta .btn:not(.btn--primary) { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-row__inner { gap: 1.5rem; }
  .section { padding: 3rem 0; }
}

/* ── PAGE-SPECIFIC: BLOG LISTING ─────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: transform var(--transition);
}
.post-row:hover { transform: translateX(4px); }
.post-row:last-child { border-bottom: none; }
.post-row__thumb {
  height: 110px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.post-row__title { font-size: 1rem; font-weight: 700; line-height: 1.45; margin-bottom: 0.35rem; color: var(--text); }
.post-row__excerpt { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 0.5rem; }
.post-row__meta { display: flex; gap: 0.75rem; font-size: 0.72rem; color: var(--text-muted); flex-wrap: wrap; }
.difficulty--easy   { color: var(--accent2); font-weight: 700; }
.difficulty--medium { color: var(--accent); font-weight: 700; }
.difficulty--hard   { color: var(--red); font-weight: 700; }

/* ── PAGE-SPECIFIC: PROJEKT CARDS ────────────────────────── */
.project-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
.project-hero:hover { border-color: var(--accent); }
.project-hero__status {
  text-align: right;
}
.project-hero__status .big-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── PAGE-SPECIFIC: ABOUT ─────────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
  border: 3px solid var(--border2);
}
