:root {
  --lime: #9ac51b;
  --lime-dark: #86b515;
  --pale: #fff69a;
  --frame: #d9e65a;
  --ink: #333;
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0px;
  background: var(--frame);
  color: var(--ink);
  
  font: 14px Arial, Helvetica, sans-serif;
  position: relative;
 }
 a{color: #333;}
.site {
  max-width: 980px; margin: 0 auto;
  background: white; 
  padding-top:30px;
}
p{line-height: 1.5;}
.header {
  display: grid; grid-template-columns: 190px 1fr 190px;
  align-items: center; gap: 12px; min-height: 220px;
  padding: 0 12px 12px;
}
.brand-mark { text-align:center; }
.brand-mark img { width: 165px; height: 150px; object-fit: contain; }
.tagline { color: var(--lime-dark); font: italic bold 17px Georgia, serif; line-height:1.35; }
.brand { text-align:center; }
.brand h1 { font-size: 30px; margin: 0 0 8px; font-weight:700; }
.brand .script { font: italic 48px/1.05 "Brush Script MT", "Segoe Script", cursive; color:#111; }
.contact { margin-top: 18px; font-size:16px; font-weight:bold; line-height:1.6; }
.header-side { text-align:center; color:var(--lime-dark); line-height:1.8; }
.header-side img { width:185px; height:150px; object-fit:cover; display:block; margin:0 auto 5px; }
nav {
  display:grid; grid-template-columns:repeat(5,1fr);
  border-top:3px solid var(--lime); border-bottom:3px solid var(--lime);
  background:#fff59a; 
}
nav a {
  display:block; padding:10px 5px; text-align:center;
  color:var(--lime-dark); font-weight:bold; text-decoration:none;
  border-right:1px solid #a6c82a;
}

nav a:last-child { border-right:0; }
.hero {
  display:grid; grid-template-columns: 1.75fr 1fr;
  gap:0; margin:0 12px 12px; background:#99977e;
  padding:0; min-height:250px;
}
.vita{background:#fff59a;padding:40px 0;}
.hero-main { position:relative; min-height:250px; }
.hero-main img { width:100%; height:250px; object-fit:cover; display:block; }
.hero-main strong {
  position:absolute; left:22px; top:18px; color:white;
  font: italic 42px Georgia,serif; text-shadow:1px 2px 3px #555;
}
.hero-side { padding:15px 10px; }
.hero-side img { width:100%; height:220px; object-fit:cover; border:4px solid white; }
.content {
  background:var(--pale); padding:18px 17px 34px;
  display:grid; grid-template-columns:184px minmax(0,1fr) 184px;
  gap:18px; min-height:620px;
}

.main-copy h2, .main-copy h3, .main-copy h4, .main-copy h2 a {color:var(--lime-dark);  }
.main-copy h2 a:hover {color:#333;  }
.main-copy h2 { font-size:22px; margin:20px 0 20px; }
.statement {
  background:#fff; border:3px solid var(--lime);
  padding:8px 12px; color:var(--lime-dark);
  font-weight:bold; font-size:18px; line-height:1.72;
  margin:0 0 28px;
  text-align:center;
}
.title{text-align:center}
.main-copy h3 { font-size:16px; font-weight:bold; margin:0 0 12px; }
.main-copy ul {
  list-style:none; padding:0; margin:0 auto 14px;
  line-height:1.55; max-width:510px;
}
#box1 { padding: 0px; width: 100px; float: left; margin: 0px 18px 0px 0px; min-height: 400px; height: 400px; }
#box2 { padding: 0px; width: 310px; float: left; margin-bottom: 30px; min-height: 400px; height: 400px; }
#box3 { padding: 0px; width: 100px; float: left; margin: 0px; min-height: 400px; height: 400px; }
#box4 { padding: 0px; width: 160px; float: left; margin: 10px 15px 0px 0px; min-height: 180px; height: 180px; }
#box5 { padding: 0px; width: 193px; float: left; margin: 10px 0px 0px; min-height: 180px; height: 180px; }
#box6 { padding: 0px; width: 160px; float: left; margin: 10px 0px 0px; min-height: 180px; height: 180px; }
.alignleft,
img.alignleft {
	display: inline;
	float: left;
	margin-right: 20px;
	margin-top: 4px;
	
}
.alignright,
img.alignright {
	display: inline;
	float: right;
	margin-left: 20px;
	margin-top: 4px;
}
.aligncenter,
img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.karte{margin-bottom:30px}
.edit-link { display:block; text-align:left; color:#333; margin-top:10px; }
/* ===== Slider ===== */
.slider { position: relative; width: 764px; margin: 0 auto 50px auto; border: 2px solid #98cd00; background: #fff; }
.slider-track { position: relative; width: 760px; height: 538px; overflow: hidden; }
.slider-track img { position: absolute; top: 0; left: 0; width: 760px; height: 538px; display: block; opacity: 0; transition: opacity .8s ease-in-out; }
.slider-track img.active { opacity: 1; }
.slider-btn {
  position: absolute; top: 50%; margin-top: -24px; width: 20px; height: 48px;
  background: rgba(255,246,153,.9); color: #98cd00; font-size: 30px; line-height: 48px; text-align: center;
  cursor: pointer; border: 2px solid #98cd00; font-family: Arial, Helvetica, sans-serif; font-weight: bold; z-index: 5;
}
.slider-btn:hover { color: #333; background: #fff699; }
.slider-btn.prev { left: 0px; }
.slider-btn.next { right: 0px; }
.slider-dots { text-align: center; padding: 10px 0 8px 0;   }
.slider-dots button { display: inline-block; width: 14px; height: 14px; margin: 0 5px; border-radius: 50%; border: 2px solid #98cd00; background: #fff; cursor: pointer; }
.slider-dots button.active { background: #98cd00; }
.slider-caption { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; color: #333; font-size: 12px; background: rgba(255,255,255,.85); padding: 4px 0; }

@media (max-width:760px) {
  body { padding:6px; }
  .header { grid-template-columns:1fr; text-align:center; gap:8px; padding:10px; }
  .brand-mark img { height:100px; }
  .brand .script { font-size:36px; }
  .contact { font-size:13px; }
  .header-side img { width:150px; height:110px; }
  nav { grid-template-columns:1fr 1fr; }
  nav a { border-bottom:1px solid #a6c82a; }
  .hero { grid-template-columns:1fr; }
  .hero-main img { height:210px; }
  .hero-side { display:none; }
  .content { grid-template-columns:1fr; }
  .side-column { display:none; }
  .statement { font-size:16px; }
}

.site-footer {
  min-height: 74px;
  margin: 7px -5px 0;
  padding: 0 12px;
  background: #d9e65a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #333;
  font-size: 11px;
}
.site-footer .footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  border: 0;
  background: transparent;
  margin: 0;
}
.site-footer .footer-nav a {
  display: inline;
  padding: 0;
  border: 0;
  color: #333;
  font-weight: normal;
  text-decoration: none;
}
.site-footer .footer-nav a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .site-footer {
    padding: 16px 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer .footer-nav {
    justify-content: flex-start;
    gap: 7px;
  }
}


/* Dropdown-Menü: klappt bei Maus-Hover und Tastatur-Fokus auf */
.main-navigation {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.55fr .55fr .95fr .9fr;
  z-index: 20;
  overflow: visible;
}
.main-navigation > a,
.main-navigation .nav-dropdown-trigger {
  display: block;
  padding: 9px 5px;
  text-align: center;
  color: var(--lime-dark);
  text-decoration: none;
  font-weight: bold;
  border-right: 1px solid #a6c82a;
  white-space: nowrap;
}
.main-navigation > a.active, .main-navigation > a:hover { color: #333; }
.nav-dropdown {
  position: relative;
  min-width: 0;
}
.nav-dropdown-trigger { cursor: pointer; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  background: #fff59a;
  border: 2px solid var(--lime);
  border-top: 0;
  box-shadow: 0 3px 6px rgba(0,0,0,.18);
  z-index: 50;
}
.dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-bottom: 2px solid var(--lime);
  color: var(--lime-dark);
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.25;
}
.dropdown-menu a:last-child { border-bottom: 0; }
.dropdown-menu a:hover
 {
  color: #333;
  background: #fffbd0;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}
/* Hero-Slider: Bild oben komplett, bei längerem Inhalt läuft gelber Hintergrund weiter */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* eine Spalte (überschreibt die alte 1.75fr 1fr) */
  min-height: 0;
  margin: 0;
  padding: 0;
  background: var(--pale);
}
/* Platzhalter: Mindesthöhe = Höhe von bild3.jpg (970x1122) */
.hero::before {
  content: "";
  grid-area: 1 / 1;
  padding-top: 115.67%;
}
.slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 970 / 1122;       /* Bild immer in voller, unverzerrter Größe */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slider-bg.active { opacity: 1; z-index: 2; }
.slider-bg.prev { opacity: 1; z-index: 1; transition: none; }
.hero-text {
  grid-area: 1 / 1;
  position: relative;
  z-index: 10;   /* immer über den Slider-Bildern */
  margin: 26% 21% 34px;           /* Text beginnt unter dem Banner, zwischen den Seitenfotos */
  padding: 40px 20px;
  background: none;
}
.hero-text .edit-link { text-align: center; }
@media (max-width: 760px) {
  .hero { display: block; padding: 14px 8px; }
  .hero::before { display: none; }
  .slider-bg { height: 100%; aspect-ratio: auto; background-size: cover; background-position: center; }
  .hero-text { margin: 0; padding: 14px 12px; background: rgba(255, 246, 154, .9); }
}

@media (max-width: 760px) {
  .main-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-navigation > a,
  .main-navigation .nav-dropdown-trigger {
    white-space: normal;
  }
  .dropdown-menu {
    width: min(270px, 85vw);
  }
}