/* murnau.rocks – nachgebaut nach dem alten Foundation/SASS-Stil (assets/scss/app.sass, _header.sass) */

@font-face {
  font-family: "Amatic SC";
  src: url("/fonts/amatic-sc-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Amatic SC";
  src: url("/fonts/amatic-sc-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --primary: #1779ba;        /* Foundation-Grundfarbe */
  --primary-hover: #126195;
  --text: #0a0a0a;
  --muted: #8a8a8a;
  --light: #eee;
  --header-bg: #25585b url("/img/starsmountain.jpg") no-repeat;
  --header-text: #ffe;
  --transition: all .35s ease-in-out;
}

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

body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fefefe;
}

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

.wrap {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
.header {
  position: relative;
  text-align: center;
  background: var(--header-bg);
  background-size: cover;
  background-position: center top;
  padding: 2.5rem 1rem calc(2.5rem + 2.4rem);
}

.headline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: "Amatic SC", cursive;
  font-weight: 700;
  font-size: 47px;
  line-height: 1;
  color: var(--header-text);
}
.headline:hover { color: #fff; }
.headline img { height: 64px; width: auto; }
.headline small { font-weight: 400; font-size: 1em; opacity: .8; }

.header-subnav {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.header-subnav li { display: inline-block; }
.header-subnav a {
  display: block;
  padding: .9rem 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--header-text);
  transition: var(--transition);
}
.header-subnav a:hover,
.header-subnav a.is-active { background: rgba(250, 250, 250, .15); }

/* TEAMSPEAK-BEREICH (Knopf aus der alten Seite sites/node-new) */
.teamspeak {
  background: linear-gradient(to bottom right, #0a0a0a, #1a1a1a, #0a0a0a);
  color: #ccc;
  text-align: center;
  padding: 2.5rem 0 2rem;
}
.teamspeak p { margin: 1rem 0 0; font-size: .9rem; }
.teamspeak code { color: #fff; }

.ts-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 2rem .9rem 1.1rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  color: #fff;
  /* TeamSpeak-Blau als Verlauf, leicht glasig auf dem Foto */
  background: linear-gradient(135deg, #2a8ad8 0%, #1a75bb 50%, #12568c 100%);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s ease, box-shadow .3s ease, filter .3s ease;
}
.ts-button:hover,
.ts-button:focus-visible {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .5),
    0 0 0 6px rgba(42, 138, 216, .25),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}
.ts-button:active { transform: translateY(-1px); }
.ts-button.plain { padding: .9rem 2rem; }

.ts-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  box-sizing: content-box;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
}
.ts-text small {
  display: block;
  margin-top: .15rem;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .5px;
  opacity: .75;
}

/* ÜBERSCHRIFTEN mit Strich darüber */
main { padding: 1.5rem 1rem 2rem; }
h3 { font-weight: 600; font-size: 1.6rem; margin: 2rem 0 1rem; }
h3 a { color: inherit; }
h3 a::before {
  content: "";
  display: block;
  width: 3.125rem;
  height: .25rem;
  margin-bottom: .625rem;
  background: var(--primary);
  transition: var(--transition);
}
h3 a:hover::before { background: var(--primary-hover); }

/* PROJEKT-KARTEN */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}
.cards a {
  display: block;
  height: 100%;
  padding: 1rem 1.25rem;
  background: var(--light);
  color: var(--text);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.cards a:hover { background: #e0e0e0; border-left-color: darkorange; }
.cards strong { display: block; font-size: 1.1rem; }
.cards span { color: #555; font-size: .9rem; }

/* FOOTER */
.footer {
  margin-top: 1rem;
  padding: 1.6rem 0;
  background: var(--header-bg);
  background-size: cover;
  background-position: center bottom;
  color: #fff;
  font-family: ui-monospace, Consolas, "Liberation Mono", monospace;
}
.footer blockquote {
  margin: 0 0 1rem;
  padding: 0 0 0 1rem;
  border-left: 4px solid #fff;
  opacity: .7;
}
.footer blockquote p { margin: 0; }
.footer blockquote p::before { content: open-quote; }
.footer blockquote p::after { content: close-quote; }
.copy { margin: 0; font-size: .85rem; }
.copy a { color: #ccc; }
.copy a:hover { color: #fff; }

/* STARTSEITE (und 404): nur Hintergrundbild, Knopf mittig, Fußzeile unten */
body.start {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--header-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.start-header {
  padding: 2.5rem 1rem 0;
  text-align: center;
}
.start-header .headline { text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.start-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  text-align: center;
}
.start-main h1 { margin: 0; font-weight: 600; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.start-footer {
  padding: 1.6rem 1rem;
  font-family: ui-monospace, Consolas, "Liberation Mono", monospace;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  text-align: center;
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
}

/* IMPRESSUM & DATENSCHUTZ: lesbarer Kasten auf dem Foto */
.legal {
  max-width: 48rem;
  margin: 2rem auto 3rem;
  padding: 2rem 2.25rem;
  background: rgba(10, 14, 30, .82);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color: #e6e6e6;
  line-height: 1.65;
}
.legal h1 { margin: 0 0 1rem; font-size: 2rem; color: #fff; }
.legal h2 { margin: 2rem 0 .75rem; font-size: 1.3rem; color: #fff; }
.legal a { color: #7cc0f5; }
.legal a:hover { color: #fff; }
.legal strong { color: #fff; }
.legal .back { margin: 2rem 0 0; }

@media (max-width: 40em) {
  .legal { margin: 1.5rem 1rem 2rem; padding: 1.5rem 1.25rem; }
}

/* 404 */
.error { text-align: center; padding: 3rem 1rem; }
.error p { color: #555; }

@media (max-width: 40em) {
  .headline { font-size: 38px; }
  .headline img { height: 52px; }
  .ts-button { font-size: 1.1rem; padding: .75rem 1.5rem .75rem .9rem; }
  .ts-logo { width: 32px; height: 32px; }
}
