@charset "utf-8";

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font: 14px/1.6 Verdana, Arial, sans-serif;
  color: #222;
  background: #d0d0d0;
}

a{ color:#1c4851; text-decoration:none; }
a:hover{ opacity:.9; }

img, video, iframe{ max-width: 100%; height: auto; }

/* ===== Page Wrapper ===== */
.page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* ===== Header ===== */
.site-header{
  position: relative; /* Referenz für Hamburger */
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  margin-bottom: 16px;
}

.header-link{ display:block; color:inherit; }

.brand{
  padding: 10px 12px;
  background: #fff;
}

.brand-title{
  display: inline-block;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 14px;
}

/* Banner: NICHT CROPPEN */
.banner{
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.banner img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== Hamburger Toggle (CSS only) ===== */
.nav-toggle{
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Hamburger: Desktop aus */
.hamburger{
  display: none;
}

/* ===== Layout ===== */
.layout{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ===== Sidebar ===== */
.sidebar{
  width: 320px;
  background: #f7f7f7;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

.sidebar-title{
  margin: 10px 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.sidebar-list{
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.sidebar-list li{ margin: 0; }

.sidebar-list a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
}

.sidebar-list a:hover,
.sidebar-list a:focus{
  background: #eef3f1;
  outline: none;
  border: 1px solid #dbe7e3;
}

/* Tags */
.sidebar-tags{
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-tags li{
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f1;
  border: 1px solid #dbe7e3;
  font-size: 12px;
}

/* ===== Content ===== */
.content{
  flex: 1;
  min-width: 0;
}

.card{
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Hero */
.hero{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.lead{ margin: 0 0 12px; color: #444; }

.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid #dcdcdc;
  transition: transform .12s ease;
}

.btn:hover{ transform: translateY(-1px); }

.primary{
  background: #5fa36a;
  border-color: #5fa36a;
  color: #fff;
}

.secondary{
  background: #fff;
  color: #222;
}

.hero-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* ===== Entries (Cards) ===== */
.entries{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.entries > li{
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.entries h2{ margin: 0 0 10px; }

/* ===== Ab "Fototasse günstig": Bilder links, Text umfließt ===== */
.entries > li img{
  float: left;
  width: 220px;
  max-width: 45%;
  height: auto;
  margin: 6px 16px 10px 0;
  border-radius: 14px;
  display: block;
}

/* Card umfasst Float sauber */
.entries > li::after{
  content: "";
  display: block;
  clear: both;
}

/* ===== Footer ===== */
.site-footer{
  margin-top: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

.footer-links a{ font-weight: 700; }
.sep{ margin: 0 8px; color: #888; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .page{ padding: 12px; }

  /* Layout untereinander */
  .layout{ flex-direction: column; }

  /* Sidebar standardmäßig zu */
  .sidebar{
    display: none;
    width: 100%;
  }

  /* Wenn Toggle an: Sidebar anzeigen */
  .nav-toggle:checked ~ .layout .sidebar{
    display: block;
  }

  /* Hero untereinander */
  .hero{ grid-template-columns: 1fr; }

  /* ===== Hamburger: nur 3 Striche, zentriert zum Headertext ===== */
  .hamburger{
    display: flex !important;

    position: absolute;
    top: 14px;     /* optisch passend zum Brand-Text */
    right: 12px;
    z-index: 999;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;

    width: auto !important;
    height: auto !important;
    padding: 10px !important; /* Touchfläche */
    margin: 0 !important;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    -webkit-tap-highlight-color: transparent;
  }

  .hamburger::before,
  .hamburger::after{
    content: none !important;
  }

  .hamburger span{
    display: block;
    width: 18px;          /* kleiner */
    height: 2px;
    background: #1c4851;
    border-radius: 999px;
    transform: translateY(1px); /* 1px nach unten */
    transition: transform .18s ease, opacity .18s ease;
  }

  /* X-Animation */
  .nav-toggle:checked + .hamburger span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2){
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Auf sehr kleinen Screens: Bilder nicht floaten */
@media (max-width: 700px){
  .entries > li img{
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
  }
}
