/* Bereinigte und responsive CSS für Seniorenkaffee mit funktionierendem Header und Footer */

:root{
  --bg: #fbfbfb;
  --panel: #ffffff;
  --accent: #2b6cb0;
  --muted: #666;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
}

/* ============================= */
/*        KARTENLAYOUT          */
/* ============================= */

.card {
  box-sizing: border-box;
  width: 100%;
  max-width: 750px;
  background: linear-gradient(180deg, var(--bg) 0%, #f7f9fc 100%);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--sans);
  color: #222;
  margin: 0 auto;
}

.panel{
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(30,40,60,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.picture-wrap{
  width: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eef6ff, #ffffff);
}

.picture-wrap img{
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.caption{
  margin-top: 15px;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  line-height: 1.4;
  color: var(--muted);
  font-family: var(--serif);
  text-align: left;
  hyphens: auto;
}

.caption b{ color: #222; font-weight:600; }

.info{
  margin-top: 15px;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: #222;
  display: block;
}

.info .lead{
  color: var(--accent);
  font-weight:700;
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

.names-list{
  font-style: normal;
  font-weight: 500;
  color: #1a1a1a;
}

.scale-wrapper{
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
}

/* PRINT */
@media print{
  .card{ box-shadow: none; border-radius: 0; width: 100%; }
}

/* ============================= */
/*   RESPONSIVE GLOBAL ELEMENTS  */
/* ============================= */

html { scroll-behavior: smooth; }

/* NEU: Footer immer unten (Sticky Footer via Flexbox) */
html, body{
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Content darf wachsen und drückt Footer nach unten */
section{
  /* Platz für fixed Header */
  padding: 140px 0 60px 0;
  flex: 1;
}

h1,h2,h3,h5,a{
  font-family:'Roboto',sans-serif;
  font-weight:500;
  color:#494949;
  text-transform:uppercase;
}

h3{ font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom:5px; }

p,
h4{ font-family:'Roboto Slab',sans-serif; color:#494949; }

hr{
  width:30px;
  height:3px;
  background:#494949;
  border:0;
  margin:0 auto 40px auto;
}

/* ============================= */
/*            HEADER             */
/* ============================= */

header {
  width: 100%;
  height: 65px;
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;

  /* wichtig: Bezugspunkt für absolut positioniertes Mobile-Menü */
  /* (fixed zählt hier auch, aber das ist für Klarheit) */
}

#logo {
  width: 120px;
  float: left;
  margin: 10px 0 50px 50px;
}

#logo:hover {
  opacity: 0.5;
}

#logo img {
  width: 37%;
  float: left;
}

#logo h5 {
  margin: 15px 0 30px 0;
}

/* Desktop-Navigation */
header nav {
  float: right;
  margin: 10px 50px 0 0;
}

header nav ul {
  margin: 0;
  padding: 0;
}

header nav ul li {
  float: left;
  margin-left: 25px;
  list-style: none;
}

/* Links sauber stylen (nach HTML-Fix funktioniert das jetzt wirklich) */
header nav ul li a {
  font-size: 16px;
  color: #494949;
  text-decoration: none;
}

header nav ul li a:hover {
  color: var(--accent);
  padding-top: 5px;
}

/* BURGER MENU */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin: 10px;
  float: right;
  cursor: pointer;
  text-align: center;
  font-size: 30px;
  color: #494949;
  user-select: none;
}

.menu-toggle:before {
  content: '\f0c9';
  font-family: FontAwesome;
  line-height: 40px;
}

.menu-toggle.active:before {
  content: '\f00d';
}

/* ============================= */
/*   MOBILE MENU - FIX (WICHTIG) */
/* ============================= */

@media (max-width: 1000px) {

  /* Nav unter Header andocken */
  header nav {
    display: none;

    position: absolute;
    top: 65px;     /* exakt Header-Höhe */
    left: 0;
    width: 100%;
    margin: 0;     /* verhindert seitlichen Versatz durch Desktop-Margin */

    background-color: #fffefe;
    box-shadow: 0 6px 18px rgba(30,40,60,0.12);
    z-index: 1001;
  }

  header nav.active {
    display: block;
  }

  header nav ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  header nav ul li {
    float: none;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #dddddd;
  }

  header nav ul li:hover {
    background-color: #eeeeee;
  }

  .menu-toggle {
    display: block;
  }

  /* optional: Logo etwas kompakter */
  #logo { margin-left: 20px; }
}

/* ============================= */
/*            FOOTER             */
/* ============================= */

footer{
  width:100%;
  min-height:70px;
  background-color:#3f3f3f;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;

  /* NEU: Footer schrumpft nicht */
  flex-shrink: 0;
}

footer p{
  font-size:12px;
  color:#f0f0f0;
  margin:0;
}

footer a{
  font-family:'Roboto Slab',sans-serif;
  color:#ADD8E6;
  text-decoration:none;
  margin:0 5px;
}

/* ============================= */
/*        RESPONSIVE MEDIA       */
/* ============================= */

@media (max-width: 1024px){
  #logo img{ width:35px; }
}

@media (max-width: 800px){
  .card{ padding:15px; }
}

@media (max-width:600px){
  .caption{ font-size:0.95rem; }
  .info{ font-size:1rem; }
  .info .lead{ font-size:1.2rem; }
}
