/* inter-300 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/inter/inter-v19-latin_latin-ext-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter/inter-v19-latin_latin-ext-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/inter/inter-v19-latin_latin-ext-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* league-spartan-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/league-spartan/league-spartan-v14-latin_latin-ext-700.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --font-heading: "League Spartan", sans-serif;
  --font-body: "Inter", sans-serif;
  --color-bg: #fdfcf9;
  --color-text: #222;
  --color-primary: #1e3a8a;
  --color-primary-hover: #172554;
  --color-accent: #10733f;
  --color-accent-hover: #0e5f35;
  --color-footer: #f4f4f4;
  --color-button-text: #ffffff;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  font-family: var(--font-heading);
  box-shadow: 0 2px 30px -10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.site-header,
header[role="banner"] {
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.header-content {
  min-height: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  gap: 0.75rem;
}

.logo-link .logo {
  height: 35px;
  width: auto;
  border-radius: 50%;
}

@media (min-width: 700px) {
  .site-header,
  header[role="banner"] {
    height: 80px;
    min-height: 80px;
    max-height: 80px;
  }
  .header-content {
    min-height: 80px;
    height: 80px;
  }
  .logo-link .logo {
    height: 54px;
    width: auto;
  }
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

header nav a:focus-visible {
  outline: 3px solid #ffcc00;
}

/* Hamburger-Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.27em;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 2.1em;
  height: 2.1em;
  padding: 0.15em;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 1.75em;
  height: 0.24em;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  .header-content nav {
    display: none;
    position: absolute;
    top: 54px; /* Passe ggf. an die Höhe deines Headers an! */
    left: 0;
    width: 100vw;
    background: var(--color-primary);
    box-shadow: 0 5px 24px -8px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 1.2em 1em 1em 1em;
    z-index: 1000;
    gap: 1.2em;
  }
  .header-content nav.open {
    display: flex;
  }
  .header-content {
    position: relative;
  }
}

@media (max-width: 700px) {
  .header-content nav a {
    font-size: 1.25em;
    padding: 0.4em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

main {
  padding-top: 1rem;
  width: 100%;
  margin: auto;
  flex: 1;
}

/* Top Padding auf Startseite entfernen */
body.startseite main {
  padding-top: 0;
}

.hero {
  background: var(--color-primary);
  color: white;
  padding: 4rem 0;
  width: 100%;
}

.start-here {
  background: var(--color-light);
  padding: 3rem 0;
}

.hero .lead {
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-button-text);
  transition: background 0.2s ease;
}

.button.small {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
}

.button:hover {
  background: var(--color-accent-hover);
  outline: none;
}

.button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.button.secondary {
  background: white;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--color-accent);
  color: white;
}

.preview-section {
  background: #f8f8f8;
  padding: 3rem 0;
  width: 100%;
}

.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card img {
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0.5rem 0 0;
}

.card p {
  font-size: 0.95rem;
  color: #444;
  flex-grow: 1;
}

.button.small {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

footer {
  background: var(--color-footer);
  font-size: 0.9rem;
  color: #555;
  padding: 1rem 0;
  margin-top: auto;
}

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-right a {
  color: #555;
  text-decoration: none;
  margin-left: 1rem;
}

.footer-right a:focus-visible {
  outline: 2px solid var(--color-primary);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 1rem;
}
