/* ============================================================
   BASE.CSS – Design Tokens & Resets
   Schreinerei Kraft e.K. – Website Prototyp
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Primary Color – exakt von schreinereikraft.de (Fallback: #1a3a5c) */
  --color-primary:       #1a3a5c;
  --color-primary-dark:  #122840;   /* ~15% dunkler */
  --color-primary-light: #e8eef5;

  /* Backgrounds */
  --color-bg:            #FFFFFF;
  --color-bg-alt:        #FAFAFA;

  /* Text */
  --color-dark:          #111827;
  --color-mid:           #4b5563;
  --color-light:         #f3f4f6;

  /* UI */
  --color-border:        #e5e7eb;
  --color-white:         #FFFFFF;

  /* Typography */
  --font-headline: 'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Sizes */
  --header-height:        72px;
  --banner-height:        36px;
  --container-max:        1280px;
  --border-radius:        8px;
  --border-radius-lg:     16px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);

  /* Transitions */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--color-mid);
  max-width: 70ch;
}

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }

.section {
  padding-block: var(--space-lg);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-xl);
  }
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-label {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.section-title {
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.section-intro {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--color-mid);
  max-width: 60ch;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

/* Auf sehr kleinen Bildschirmen darf Buttontext umbrechen */
@media (max-width: 479px) {
  .btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,58,92,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-primary-light);
}

/* ── Prototype Banner ── */
.prototype-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.4;
}

/* offset body for banner + header */
body {
  padding-top: calc(var(--banner-height) + var(--header-height));
}
