/* ============================================================
   base.css – CSS Custom Properties, Reset, Typography
   Rodemers GmbH Prototyp
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+3:wght@400;600&display=swap');

/* --- Custom Properties --- */
:root {
  --color-primary:        #7B1111;
  --color-primary-dark:   #46140A;
  --color-primary-light:  #f5e8e8;
  --color-accent:         #F2E9CE;
  --color-accent-dark:    #d9c9a0;
  --color-dark:           #1a1209;
  --color-mid:            #5c4a3a;
  --color-light:          #faf7f2;
  --color-white:          #ffffff;
  --color-border:         #e8dcc8;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  --shadow-sm:  0 1px 3px rgba(26,18,9,0.10);
  --shadow-md:  0 4px 16px rgba(26,18,9,0.13);
  --shadow-lg:  0 8px 32px rgba(26,18,9,0.18);

  --transition: 0.28s ease;

  --container-max: 1240px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);

  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-mid);
  background: var(--color-light);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

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

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

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* --- Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.text-center { text-align: center; }
.text-accent  { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
