/* =========================================================
   TRASHY CORE – Design System / Base Framework
   ========================================================= */

/* DESIGN TOKENS -------------------------------------------------- */

:root {
  /* Colors */
  --tc-color-bg-page:    #fbfbfd;
  --tc-color-bg-surface: #ffffff;
  --tc-color-bg-soft:    #f3f4f6;

  --tc-color-text:       #020617;
  --tc-color-text-soft:  #4b5563;
  --tc-color-text-muted: #9ca3af;

  --tc-color-border-subtle: rgba(15, 23, 42, 0.06);
  --tc-color-border-strong: rgba(15, 23, 42, 0.12);

  --tc-color-primary:        #4f46e5;
  --tc-color-primary-soft:   #6366f1;
  --tc-color-primary-ghost:  rgba(79, 70, 229, 0.08);

  --tc-color-accent:         #22c55e;
  --tc-color-danger:         #ef4444;

  /* Typography */
  --tc-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;

  --tc-font-size-xs: 0.75rem;
  --tc-font-size-sm: 0.875rem;
  --tc-font-size-base: 1rem;
  --tc-font-size-md: 1.0625rem;
  --tc-font-size-lg: 1.125rem;
  --tc-font-size-xl: 1.25rem;

  /* Headline scale */
  --tc-font-size-h1: clamp(2.4rem, 4vw, 3.4rem);
  --tc-font-size-h2: clamp(1.9rem, 3vw, 2.6rem);
  --tc-font-size-h3: clamp(1.5rem, 2.4vw, 2.1rem);

  --tc-line-height-tight: 1.1;
  --tc-line-height-normal: 1.5;
  --tc-line-height-loose: 1.7;

  /* Spacing scale (4-pt) */
  --tc-space-0: 0;
  --tc-space-1: 0.25rem; /* 4px */
  --tc-space-2: 0.5rem;  /* 8px */
  --tc-space-3: 0.75rem; /* 12px */
  --tc-space-4: 1rem;    /* 16px */
  --tc-space-5: 1.25rem; /* 20px */
  --tc-space-6: 1.5rem;  /* 24px */
  --tc-space-8: 2rem;    /* 32px */
  --tc-space-10: 2.5rem; /* 40px */
  --tc-space-12: 3rem;   /* 48px */
  --tc-space-16: 4rem;   /* 64px */

  /* Radius */
  --tc-radius-xs: 0.25rem;
  --tc-radius-sm: 0.5rem;
  --tc-radius-md: 0.75rem;
  --tc-radius-lg: 1rem;
  --tc-radius-xl: 1.5rem;
  --tc-radius-pill: 999px;

  /* Shadows */
  --tc-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --tc-shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.16);
  --tc-shadow-primary: 0 18px 40px rgba(79, 70, 229, 0.4);

  /* Layout */
  --tc-container-width: 1200px;
  --tc-container-padding: 1.75rem;

  /* Z-Index */
  --tc-z-header: 1000;
  --tc-z-overlay: 1100;
}

/* BREAKPOINT DOKU (für Media Queries)
   -------------- 
   mobile:  0 – 639px
   tablet:  640 – 1023px
   desktop: >= 1024px
*/

/* GLOBAL RESET --------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--tc-font-sans);
  font-size: var(--tc-font-size-base);
  line-height: var(--tc-line-height-normal);
  color: var(--tc-color-text);
  background: var(--tc-color-bg-page);
}

/* Remove default margins */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

/* TYPOGRAPHY ----------------------------------------------------- */

h1,
.tc-heading-1 {
  font-size: var(--tc-font-size-h1);
  line-height: var(--tc-line-height-tight);
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2,
.tc-heading-2 {
  font-size: var(--tc-font-size-h2);
  line-height: var(--tc-line-height-tight);
  letter-spacing: -0.025em;
  font-weight: 700;
}

h3,
.tc-heading-3 {
  font-size: var(--tc-font-size-h3);
  line-height: var(--tc-line-height-tight);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.tc-text-muted {
  color: var(--tc-color-text-soft);
}

.tc-text-small {
  font-size: var(--tc-font-size-sm);
}

/* LINKS ---------------------------------------------------------- */

a {
  color: var(--tc-color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* LAYOUT UTILITIES ----------------------------------------------- */

.tc-container {
  max-width: var(--tc-container-width);
  margin-inline: auto;
  padding-inline: var(--tc-container-padding);
}

@media (max-width: 768px) {
  .tc-container {
    padding-inline: 1.25rem;
  }
}

/* Vertical Stack Helper */
.tc-stack > * + * {
  margin-top: var(--tc-space-4);
}

.tc-stack--tight > * + * {
  margin-top: var(--tc-space-2);
}

.tc-stack--loose > * + * {
  margin-top: var(--tc-space-6);
}

/* Simple Grid */
.tc-grid {
  display: grid;
  gap: var(--tc-space-5);
}

@media (min-width: 768px) {
  .tc-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tc-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* BUTTONS -------------------------------------------------------- */

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--tc-radius-pill);
  font-size: var(--tc-font-size-md);
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease,
    background 0.15s ease, border-color 0.15s ease;
}

/* Primary */
.tc-btn--primary {
  background: linear-gradient(135deg, var(--tc-color-primary), var(--tc-color-primary-soft));
  color: #fff;
  box-shadow: var(--tc-shadow-primary);
}

.tc-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Ghost / Outline */
.tc-btn--ghost {
  background: #ffffff;
  color: var(--tc-color-text);
  border: 1px solid var(--tc-color-border-subtle);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.tc-btn--ghost:hover {
  border-color: var(--tc-color-border-strong);
}

/* Small / Large modifiers */
.tc-btn--sm {
  padding: 0.55rem 1.2rem;
  font-size: var(--tc-font-size-sm);
}

.tc-btn--lg {
  padding: 0.9rem 2rem;
  font-size: var(--tc-font-size-lg);
}

/* CARDS / SURFACES ----------------------------------------------- */

.tc-card {
  background: var(--tc-color-bg-surface);
  border-radius: var(--tc-radius-lg);
  border: 1px solid var(--tc-color-border-subtle);
  padding: var(--tc-space-5);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.04);
}

/* SPACING UTILITIES ----------------------------------------------- */

.tc-mt-4 { margin-top: var(--tc-space-4); }
.tc-mt-6 { margin-top: var(--tc-space-6); }
.tc-mt-8 { margin-top: var(--tc-space-8); }

.tc-mb-4 { margin-bottom: var(--tc-space-4); }
.tc-mb-6 { margin-bottom: var(--tc-space-6); }
.tc-mb-8 { margin-bottom: var(--tc-space-8); }

.tc-pt-4 { padding-top: var(--tc-space-4); }
.tc-pt-8 { padding-top: var(--tc-space-8); }

.tc-pb-4 { padding-bottom: var(--tc-space-4); }
.tc-pb-8 { padding-bottom: var(--tc-space-8); }

/* TEXT ALIGN ------------------------------------------------------ */

.tc-text-center { text-align: center; }
.tc-text-right  { text-align: right;  }

/* DEBUG HELPER (bei Bedarf einschalten) */
/*
* { outline: 1px solid rgba(255, 0, 0, 0.05); }
*/