/* ============================================================
   Design tokens
   ============================================================ */
:root {
  /* Colors */
  --color-text: #3c332a;
  --color-text-muted: #cacaca;
  --color-link: #0066cc;
  --color-link-hover: #004499;
  --color-accent: #3c332a;
  --color-accent-bg: #f5d6d6;
  --color-bg-light: #f5f5f5;
  --color-bg-medium: #a3a3a3;
  --color-bg-dark: #222;
  --color-white: #fff;

  /* Layout */
  --max-width-content: 900px;
  --max-width-wide: 1200px;
  --radius-sm: 6px;
  --radius-md: 8px;

  /* Typography */
  /* --font-base: Arial, Helvetica, sans-serif; */
  --font-base: "IBM Plex Serif";
  --font-heading: "Hind";
  --font-size-base: 21px;
  --font-size-sm: 14px;
  --font-size-xs: 13px;
  --line-height-base: 1.6;

  /* Effects */
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition-fast: 0.2s;
}

/* ============================================================
   Base
   ============================================================ */
/* ibm-plex-serif-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/ibm-plex-serif-v20-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* playfair-display-sc-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Playfair Display SC";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/playfair-display-sc-v18-latin-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* hind-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Hind";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/hind-v18-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg-light);
}

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

a:hover {
  color: var(--color-link-hover);
}

h1 {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 72px;
  margin-bottom: 40px;
}

heavy {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ============================================================
   Content area
   ============================================================ */
.content {
  max-width: var(--max-width-content);
  margin: auto;
  padding: 60px 20px;
}

.content h1 {
  margin-bottom: 30px;
}

/* ============================================================
   Header
   ============================================================ */
.topbar {
  padding: 15px 20px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width-wide);
  margin: auto;
}

.logo {
  height: 54px;
}

.topinfo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-sm);
}

.loginlink {
  color: var(--color-text-muted);
  font-weight: bold;
}

.loginlink:hover {
  text-decoration: underline;
}

/* ============================================================
   Hero
   ============================================================ */
.heroimage {
  height: 50vh;
  background: url("../images/kurhaus_upscaled.jpg") center / cover;
}

/* ============================================================
   Welcome
   ============================================================ */
.welcome_section {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  text-align: center;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.welcome_left {
  flex: 2;
  min-width: 320px;
}

.welcome_full {
  width: 100%;
  text-align: center;
  margin-bottom: 10vh;
}

.welcome_right {
  flex: 1;
  margin-top: 180px;
  text-align: center;
}

.welcome_right img {
  max-width: 350px;
}

.contact_box {
  margin-top: 20px;
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
}

.flyertext {
  margin-top: 10px;
}

/* ============================================================
   News
   ============================================================ */
.news {
  padding: 60px 20px;
  background: var(--color-bg-light);
}

.news h2 {
  margin-bottom: 40px;
  text-align: center;
}

.newsgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--max-width-wide);
  margin: auto;
}

.newsitem {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
}

.newsitem:hover {
  transform: translateY(-4px);
}

.newsitem > img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
}

.newsrow {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.newsimage {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
}

.newsimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newstext {
  flex: 1;
}

/* ============================================================
   Beratung (accordion)
   ============================================================ */
.beratung {
  max-width: var(--max-width-content);
  margin: auto;
  padding: 60px 20px;
}

.beratung_intro {
  margin-bottom: 30px;
}

.accordion {
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
}

.accordion summary {
  position: relative;
  padding: 16px 20px 16px 30px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "▶";
  position: absolute;
  left: 10px;
  transition: transform var(--transition-fast);
}

.accordion summary:hover {
  background: var(--color-accent-bg);
  color: var(--color-accent);
}

.accordion[open] {
  background: var(--color-bg-medium);
}

.accordion[open] summary::before {
  transform: rotate(90deg);
}

.accordion p,
.accordion ul {
  margin: 0;
  padding: 0 20px 20px 30px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 50px 20px;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.footergrid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--max-width-wide);
  margin: auto;
  font-size: 14pt;
  color: var(--color-text-muted);
}

.footergrid a {
  color: var(--color-text-muted);
}

.footer_logo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-left: auto;
}

.footer_logo img {
  max-width: 70px;
  opacity: 0.85;
}

.credits {
  margin-top: 40px;
  font-size: 12px;
  text-align: center;
  opacity: 0.1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 800px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topinfo {
    font-size: var(--font-size-xs);
  }

  .newsgrid,
  .footergrid {
    flex-direction: column;
  }

  .footergrid {
    gap: 30px;
  }

  h1 {
    font-size: 36pt;
    line-height: 1.1;
  }
}

@media (max-width: 700px) {
  .newsrow {
    flex-direction: column;
  }

  .newsrow img {
    max-width: 100%;
  }
}

/*
 * Hamburger
 */

.burger_align {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: absolute;
  right: 0;
}

/* ── Burger button (upper right) ── */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--color-text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animate to X when open */
.burger.open span:nth-child(1) {
  transform: translateY(8.2px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8.2px) rotate(-45deg);
}

/* ── Nav menu ── */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #333;
  width: 200px;
  z-index: 99;
}

.nav.open {
  display: block;
}

.nav ul {
  list-style: none;
  padding: 0.5rem 0;
}

.nav ul li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.2s;
}

.nav ul li a:hover {
  background: #555;
}
