/*
Theme Name: Naschpark
Author: Martin Czwiertnia
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2025
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: naschpark
*/

@font-face {
  font-family: "Manrope";
  src: url("https://naschpark.at/media/GreenShift/fonts/font_1/woff2/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("https://naschpark.at/media/GreenShift/fonts/font_2/woff2/Manrope-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("https://naschpark.at/media/GreenShift/fonts/font_3/woff2/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

body { 
  font-family: var(--font-sans);
  background: #f4f4f4;
}


/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/

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

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

body {
  min-height: 100dvh;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  display: none;
}

b, strong {
  font-weight: 700;
}

h1, h2, h3, h4 {
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  line-height: 1.05;
  margin-bottom: clamp(1rem, 1.5vw, 1.75rem);
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 3rem);
  line-height: 1.15;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(0.75rem, 1vw, 1.25rem);
}

h3 {
  font-size: clamp(1.5rem, 1.8vw + 0.5rem, 2.25rem);
  line-height: 1.2;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(0.5rem, 0.8vw, 1rem);
}

h4 {
  font-size: clamp(1.25rem, 1.2vw + 0.5rem, 1.75rem);
  line-height: 1.3;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(0.5rem, 0.8vw, 0.75rem);
}

p {
  font-size: clamp(1.125rem, 0.8vw + 1rem, 1.375rem); /* ca. 18px → 22px */
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: clamp(1rem, 1.5vw, 1.75rem);
  max-width: 70ch; /* optimale Leselänge */
  color: inherit;
}

/* Listen */
ul,
ol {
  font-size: clamp(1.125rem, 0.8vw + 1rem, 1.375rem);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: clamp(1rem, 1.5vw, 1.75rem);
  padding-left: 1.5rem; /* Einrückung für Aufzählungszeichen */
  max-width: 70ch;
}

li {
  margin-bottom: 0.5rem; /* etwas Luft zwischen den Punkten */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.25rem);
  line-height: 1.5;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #ccc;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  font-weight: 700;
  background-color: #f9f9f9;
}

tr:nth-child(even) td {
  background-color: #fafafa;
}

@media (max-width: 600px) {
  table {
    font-size: clamp(0.9rem, 1vw, 1rem);
  }

  th,
  td {
    padding: 0.5rem 0.75rem;
  }
}