/* =========================================================
   Sternwarte Helenesee – Fluid CSS v3
   Gleiche Gestaltung, fluidere Größen, reduzierte Media-Queries
   ========================================================= */

/* ---------------------------------------------------------
   Webfonts
   --------------------------------------------------------- */

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

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

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

@font-face {
  font-family: 'Avenir Next LT Pro';
  src: url('fonts/Avenir/AvenirNextLTPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next LT Pro';
  src: url('fonts/Avenir/AvenirNextLTPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next LT Pro';
  src: url('fonts/Avenir/AvenirNextLTPro-Demi.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------
   Variablen / Basis
   --------------------------------------------------------- */

:root {
  --bg: #05070b;
  --panel: rgba(12, 23, 36, 0.76);
  --panel-soft: rgba(12, 23, 36, 0.56);
  --line: rgba(255, 255, 255, 0.13);
  --text: #d9dee7;
  --muted: #a4adbb;
  --subtle: #778191;
  --accent: #B8B4A3;
  --accent-light: #DDD7C6;
  --glow: 0 0 28px rgba(221, 215, 198, 0.12);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.38);

  --page-width: 1120px;
  --content-width: 980px;
  --page-gutter: clamp(0.8rem, 2.2vw, 2rem);
  --panel-radius: clamp(18px, 2vw, 24px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top center, rgba(45, 90, 140, 0.3), transparent 45rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.7)),
    #000 url('img/bg_sterne.png') repeat;
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  background: transparent;
  color: var(--text);
}

/* ---------------------------------------------------------
   Links / Listen
   --------------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: none;
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

a:hover {
  color: var(--accent-light);
}

a:visited,
a:active {
  color: var(--accent);
}

ul,
ol {
  margin-left: 0;
  padding-left: 0;
  text-align: left;
  list-style-position: inside;
}

.info ul,
.info ol,
.gallery-item ul,
.gallery-item ol {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}


/* ---------------------------------------------------------
   Startseite / Hero
   --------------------------------------------------------- */

.start-container,
.start-body-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: clamp(1rem, 2.5vw, 2rem);
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(150px, 22vw, 300px);
  height: auto;
  display: block;
  z-index: 1;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(clamp(-20px, -1.7vw, -12px));
  z-index: 2;
}

.hero-title h1 {
  margin: 0;
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-size: clamp(1.25rem, 4.2vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: clamp(0.10em, 0.22vw, 0.20em);
  white-space: nowrap;
}

.hero-title .white {
  color: #DDD7C6;
}

.hero-title .blue {
  color: #289CD1;
}

.hero-claim {
  margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
  font-family: 'Avenir Next LT Pro', sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  letter-spacing: clamp(0.20em, 0.55vw, 0.42em);
  color: #289CD1;
  text-transform: uppercase;
}

.start-container img,
.start-body-container img {
  width: clamp(150px, 18vw, 230px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(217, 122, 14, 0.22));
}

.subtitle {
  max-width: var(--content-width);
  margin: 0;
  text-align: center;
  font-size: clamp(0.8rem, 1.25vw, 1rem);
  line-height: 1.7;
  color: var(--muted);
}

.home-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: min(100%, var(--content-width));
  margin-top: clamp(1rem, 2.2vw, 1.6rem);
  padding-top: clamp(0.8rem, 1.8vw, 1.2rem);
  border-top: 1px solid var(--line);
}

.home-links a {
  justify-self: center;
  display: inline-block;
  margin: 0;
  padding: clamp(0.3rem, 0.7vw, 0.45rem) clamp(0.4rem, 1.1vw, 0.75rem);
  border-radius: 999px;
  color: var(--accent);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 500;
  text-decoration: none;
}

.home-links a:hover {
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.home-links a:visited,
.home-links a:active {
  color: var(--accent);
}

.enterprise {
  width: clamp(90px, 10vw, 120px);
  height: auto;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.6;
}

.logo-area {
  position: relative;
  display: inline-block;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: min(var(--page-width), calc(100% - 2rem));
  margin: clamp(0.75rem, 1.5vw, 1rem) auto clamp(0.6rem, 1.1vw, 0.75rem);
  padding: clamp(0.85rem, 1.6vw, 1rem) clamp(0.85rem, 2vw, 1.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: linear-gradient(135deg, rgba(17, 28, 43, 0.86), rgba(8, 17, 28, 0.74));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(5px);
}

.header-bg-right {
  position: absolute;
  inset: 0 0 0 auto;
  width: clamp(110px, 24vw, 300px);
  overflow: hidden;
  border-radius: 0 20px 20px 0;
  pointer-events: none;
  z-index: 0;
}

.header-bg-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/hintergrund.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

header * {
  position: relative;
  z-index: 1;
}

header a {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}

header img {
  height: clamp(72px, 9vw, 110px);
  width: auto;
  margin-right: clamp(0.75rem, 1.8vw, 1.2rem);
  flex-shrink: 0;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.5));
}

header h1 {
  flex: 1;
  margin: 0;
  padding: 0;
  font-size: clamp(0.95rem, 1.7vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-light);
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.82),
    0 0 18px rgba(217, 122, 14, 0.16);
}

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

nav {
  width: min(var(--page-width), calc(100% - 2rem));
  margin: clamp(0.6rem, 1.1vw, 0.75rem) auto clamp(0.75rem, 1.4vw, 1rem);
  padding: clamp(0.45rem, 1vw, 0.55rem) clamp(0.55rem, 1.2vw, 0.75rem);
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2vw, 22px);
  background: linear-gradient(135deg, rgba(10, 27, 43, 0.82), rgba(5, 12, 20, 0.74));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-radius: 20px;
}

.nav-links a {
  display: inline-block;
  margin: 0;
  padding: clamp(0.35rem, 0.8vw, 0.45rem) clamp(0.55rem, 1.2vw, 0.75rem);
  border-radius: 999px;
  color: var(--accent);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 100%;
  border: 0;
  background: none;
  color: var(--accent-light);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
}

/* ---------------------------------------------------------
   Hauptinhalt
   --------------------------------------------------------- */

.container {
  width: min(100% - 2rem, var(--content-width));
  margin: clamp(1.2rem, 2.5vw, 2rem) auto;
}

.intro-text {
  max-width: var(--content-width);
  margin-top: 0;
  text-align: center;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: var(--muted);
}

.neu-badge {
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.container img {
  max-width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.6vw, 16px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(255, 255, 255, 0.06);
}

.backlink {
  display: inline-block;
  margin-top: 2rem;
  color: var(--subtle);
  text-decoration: none;
}

.backlink:hover {
  color: var(--accent-light);
}

.info {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 20px);
  background: rgba(4, 8, 13, 0.46);
  color: var(--muted);
  line-height: 1.85;
  text-align: left;
  font-size: clamp(0.9rem, 1.25vw, 0.96rem);  
}

/* ---------------------------------------------------------
   Galerie
   --------------------------------------------------------- */

.gallery-item {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid #1a1a1a;
  border-radius: clamp(16px, 2vw, 20px);
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.25vw, 0.96rem);
  line-height: 1.65;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 122, 14, 0.35);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), var(--glow);
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  border-radius: clamp(8px, 1.2vw, 10px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.gallery-item h2 {
  margin: 1rem 0 0.65rem;
  color: #edf1f7;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.gallery-item p {
  max-width: 860px;
  margin-inline: auto;
  text-align: left;
}

.gallery-item a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  text-decoration: none;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

footer {
  width: min(var(--page-width), calc(100% - 2rem));
  margin: clamp(1.8rem, 3vw, 2.5rem) auto 1rem;
  padding: clamp(0.85rem, 1.6vw, 1rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2vw, 22px);
  background: linear-gradient(135deg, rgba(17, 28, 43, 0.78), rgba(6, 14, 23, 0.72));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
  color: #8c95a3;
  font-size: clamp(0.68rem, 1vw, 0.75rem);
  text-align: center;
}

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

.footer-note {
  color: #6b7480;
  font-size: clamp(0.45rem, 0.8vw, 0.5rem);
}

/* ---------------------------------------------------------
   Mobile Layout – nur echte Layoutwechsel
   --------------------------------------------------------- */

@media (max-width: 800px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(10, 27, 43, 0.72);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 0.1rem 0;
    text-align: center;
  }

  .burger {
    display: block;
    text-align: left;
  }

  .header-bg-right {
    opacity: 0.42;
  }
}

/* Sehr schmale Displays */
@media (max-width: 420px) {
  .hero-title h1 {
    letter-spacing: 0.08em;
  }

  .hero-claim {
    letter-spacing: 0.16em;
  }

  .home-links {
    gap: 0.1rem;
  }

  .home-links a {
    padding-inline: 0.3rem;
  }
}
