/* 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; }
html, body {
  margin: 0; padding: 0;
  text-align: center;
}
section{ padding: 140px 0 60px 0; }
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;
}

#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;
}

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;
}

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;
}

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

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

@media (max-width: 1000px) {
    header nav {
        display: none;
        width: 100%;
    }
    header nav.active {
        display: block;
        background-color: #fffefe;
    }
    header nav ul {
        display: block;
        width: 100%;
    }
    header nav ul li {
        width: 100%;
        margin: 0;
        padding: 5px 0;
        border-top: 1px solid #dddddd;
    }
    header nav ul li:hover {
        background-color: #eeeeee;
    }
    .menu-toggle {
        display: block;
    }
}


/* ============================= */
/*            FOOTER             */
/* ============================= */
footer{
  width:100%;
  min-height:70px;
  background-color:#3f3f3f;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
}
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){
  header nav{ display:none; width:100%; }
  header nav.active{ display:block; }
  header nav ul{ flex-direction:column; gap:0; }
  header nav ul li{ padding:10px 0; border-top:1px solid #ddd; }
  .menu-toggle{ display:block; }
  .card{ padding:15px; }
}

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