/* ===== FONTS (lokal, DSGVO-konform) ===== */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/librebaskerville-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/librebaskerville-400i.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/librebaskerville-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700.woff2') format('woff2');
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-accent: #d8232a;
  --color-text: #1a1919;
  --color-bg: #f2f5f7;
  --color-map-default: #d0d0d0;
  --color-map-hover: #6b6b6b;
  --color-map-active: #d8232a;
  --color-white: #ffffff;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Lato', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

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

a:hover {
  color: #a01a1f;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-accent);
}

.nav-list a.active {
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  background: var(--color-text);
  color: var(--color-white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  background: var(--color-text);
  color: var(--color-white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
}

/* ===== MAP SECTION ===== */
.map-section {
  padding: 4rem 0;
  text-align: center;
}

.map-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.map-intro {
  color: #666;
  margin-bottom: 2.5rem;
}

.map-wrapper {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

/* SVG Map */
.austria-map {
  width: 100%;
  height: auto;
}

.bundesland {
  fill: var(--color-map-default);
  stroke: var(--color-white);
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.2s ease;
}

.bundesland:hover {
  fill: var(--color-map-hover);
}

.bundesland:active,
.bundesland.active {
  fill: var(--color-map-active);
}

/* Inactive Bundesländer (no homepage) */
.bundesland.disabled {
  cursor: default;
}

.bundesland.disabled:hover {
  fill: var(--color-map-default);
}

/* Tooltip */
.map-tooltip {
  position: absolute;
  background: var(--color-text);
  color: var(--color-white);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 10;
}

.map-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-text);
}

.map-tooltip.visible {
  opacity: 1;
}

.map-bundesland-label {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 1.5em;
  color: var(--color-text);
}

/* ===== INFO SECTIONS ===== */
.info-section {
  padding: 4rem 0;
  background: var(--color-white);
}

.info-section--alt {
  background: var(--color-bg);
}

.info-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.info-content {
  max-width: 750px;
  margin: 0 auto;
}

.info-content p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #444;
  line-height: 1.8;
}

.info-content ul li {
  margin-bottom: 0.5rem;
}

.info-content strong {
  color: var(--color-text);
}

.info-content h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}

.info-content h3:first-child {
  margin-top: 0;
}

/* Content with image (side-by-side) */
.info-content-with-image {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.info-content-with-image--reverse {
  grid-template-columns: 300px 1fr;
}

.info-content-with-image--reverse .info-image {
  order: -1;
}

.info-content-with-image .info-content {
  max-width: none;
}

.info-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
}

.info-section--alt .contact-card {
  background: var(--color-bg);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.contact-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Partner grid */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.partner-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.partner-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ===== FOOTER (sticky) ===== */
.site-footer {
  background: var(--color-text);
  color: #aaa;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

body {
  padding-bottom: 3rem;
}

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

.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-links a {
  color: #aaa;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .info-content-with-image,
  .info-content-with-image--reverse {
    grid-template-columns: 1fr;
  }

  .info-content-with-image--reverse .info-image {
    order: 0;
  }

  .info-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 3px solid var(--color-accent);
    display: none;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.25rem;
  }

  .map-section h2,
  .info-section h2 {
    font-size: 1.4rem;
  }
}
