/* Shared base styles for the whole site.
 *
 * Provides the design tokens, global reset, typography, and reusable
 * component patterns (cards, grids, buttons, hero, forms) used across
 * all pages. Page groups (malen-ton, workshop) override tokens for
 * their color scheme, and individual pages add unique styles on top.
 */

/* ================================================================
   Design Tokens
   ================================================================ */

:root {
  --bg: color(display-p3 .941 .898 .867);
  --card: #ffffff;
  --text: #2e2a24;
  --muted: #7a6e64;
  --accent: #0066cc;
  --shadow: 0 4px 12px rgba(0, 0, 0, .1);
  --radius: 18px;
  --max: 1100px;
  --maxw: 1120px;
  --dur: 520ms;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

@supports not (color: color(display-p3 1 1 1)) {
  :root {
    --bg: rgb(240, 229, 221);
  }
}

/* ================================================================
   Reset
   ================================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ================================================================
   Typography
   ================================================================ */

h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.15;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

p {
  margin: 0 0 10px;
}

ul {
  padding-left: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}

main li {
  margin: 6px 0;
}

/* ================================================================
   Container
   ================================================================ */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================================
   Cards
   ================================================================ */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.hero-card {
  width: 100%;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

/* ================================================================
   Grid
   ================================================================ */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.grid-2 {
  display: flex;
  align-items: stretch;
  gap: 22px;
}

.grid-2 .card:first-child,
.grid-2 .card:last-child {
  flex: 1;
}

/* ================================================================
   Buttons
   ================================================================ */

.nav-button,
.back-button {
  display: inline-block;
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  background: #555;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-button:hover,
.back-button:hover {
  background: #333;
}

.fenster-card-btn {
  width: 100%;
  padding: 12px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: auto;
  flex-shrink: 0;
  transition: background 0.2s;
}

.fenster-card-btn:hover {
  background-color: #333;
}

/* ================================================================
   Contact link
   ================================================================ */

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ================================================================
   Hero (background-image pattern)
   ================================================================ */

.hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  width: 100%;
  padding: 600px 0 0;
}

/* ================================================================
   Content sections
   ================================================================ */

main {
  padding: 50px 0 80px;
}

section {
  margin-bottom: 32px;
}

/* ================================================================
   Forms
   ================================================================ */

.form-wrap {
  overflow: hidden;
  border-radius: 16px;
  padding-bottom: 40px;
}

.form-iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    flex-direction: column;
  }
}
