/* ===============================
   Basisvariablen (Farben, Spacing)
   =============================== */
:root {
  --font-base: clamp(1rem, 1.2vw, 1.2rem);
  --font-heading: clamp(1.6rem, 3vw, 2.5rem);
  --color-bg: #ffffff;
  --color-text: #1d1d1b;
  --color-accent: #a1cb7b;
  --color-accent-light:#88ac98;
  --color-muted: #777;
  --color-skeleton: #cacaca;
  --color-light-blue: #b1bed5;
  --color-light-green: #bfd8d5;
  --color-light-yellow: #f1f864;
  --max-width: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #fdfdfd;
    --color-text: #161616;
    --color-muted: #000000;
  }
}

/* ===============================
   Schriftarten (Fonts)
   =============================== */
@font-face {
  font-family: 'Playfair';
  src: url('/assets/fonts/PlayfairDisplay.woff2') format('woff2');
  font-weight: 100 300 500 700 900;
  font-display: swap;
}

@font-face {
  font-family: 'Sen';
  src: url('/assets/fonts/Sen.woff2') format('woff2');
  font-weight: 200 500 700 900;
  font-display: swap;
}

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

html {
  font-family: 'Sen', Georgia, serif;
  font-size: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Sen', Georgia, serif;
  font-size: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

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

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

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

/* ===============================
   Header + Menü
   =============================== */
 

  header {
  background: var(--color-bg);
  padding: 0rem!important;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  position:relative;
  z-index:99;
}

header .container{
  padding:0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

nav li {
  position: relative;
}

nav a {
  padding: 0.5rem;
  font-weight:100;
  color:var(--color-text);
}

nav a:hover{
  background-color:var(--color-accent);
  
}

.navimg{
  display:flex;

}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 1024px) {
  nav{
    padding:0 20px;
  }
}


/* ===============================
   Typografie
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'PLayfair', system-ui, sans-serif;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: var(--font-heading);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

p {
  margin-bottom: 1rem;
}

small {
  color: var(--color-muted);
}

/* ===============================
   Buttons, Forms, Footer
   =============================== */
button {
  background: var(--color-accent);
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  margin-top: 3rem;
  padding-top: 2rem;
 
}

/* ===============================
   Grid-System (2 / 3 / 4-Spalten)
   =============================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

/* Spezialfall für 3er-Grid unter 993px: 2 nebeneinander, 1 darunter */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 > :nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Unter 768px: alles 1-spaltig */
@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 > :nth-child(3) {
    grid-column: auto;
  }
}
