:root {
  --accent: #acd904;
  --accent-dark: #7fa000;
  --header-bg: #232424;
  --content-bg: #393939;
  --content-text: #ffffffe0;
  --footer-bg: #121212;
  --info-bg: #2a2a2a;
  --info-text: #ddd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--content-bg);
  color: var(--content-text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--header-bg); }
.logobar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0;
}
.logobar img { width: 420px; max-width: 85%; height: auto; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 18px 20px;
  color: #ccc;
  font-weight: 400;
  font-size: 1rem;
}
.site-nav a:hover {
  background: rgba(0, 0, 0, 0.59);
  color: #ccc;
  text-decoration: none;
}
.site-nav li.active a {
  background: var(--accent);
  color: #2b2b2b;
  font-weight: bold;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 700px) {
  .logobar { justify-content: flex-start; }
  .logobar img { width: 160px; }
  .nav-toggle { display: flex; }
  .site-nav ul { display: none; flex-direction: column; width: 100%; }
  .site-nav.open ul { display: flex; }
}

/* Page content */
.page { padding: 40px 20px; }
.page::after { content: ""; display: block; clear: both; }
.page h1 {
  margin-top: 0;
  color: var(--accent) !important;
}
.page h3 { color: var(--accent) !important; font-weight: bold; }
.home img, .page img { max-width: 100%; border-radius: 4px; }
.page a { color: #8cc14c; }

/* Accordion */
.accordion-item {
  margin-bottom: 6px;
}
.accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--accent);
  color: #555 !important;
  font-weight: bold;
  font-size: 1.05rem;
  font-family: inherit;
  border: none;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}
.accordion-summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
}
.accordion-item.open .accordion-summary::after { content: "\2212"; }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: max-height 0.3s ease;
}
.accordion-inner { padding: 14px; }

/* Slideshow (floats top-right, text wraps around it) */
.slideshow {
  position: relative;
  float: right;
  width: 45%;
  max-width: 420px;
  margin: 0 0 20px 24px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #222;
}
.slideshow .slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slideshow .slide.active { display: block; }
.slideshow .slide-prev,
.slideshow .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.slideshow:hover .slide-prev,
.slideshow:hover .slide-next { opacity: 1; }
.slideshow .slide-prev:hover,
.slideshow .slide-next:hover { background: var(--accent); color: #222; }
.slideshow .slide-prev { left: 8px; }
.slideshow .slide-next { right: 8px; }

/* first accordion item always starts below a floated slideshow */
.page .accordion-item:first-of-type { clear: both; }

/* Google Maps embed (Anfahrt) */
.map-section { clear: both; }
.map-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1024 / 600;
  margin-top: 10px;
}
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: var(--info-bg);
  border-radius: 4px;
}
.map-placeholder p { margin: 0; max-width: 440px; color: var(--info-text); }
.map-load-btn {
  background: #555;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.map-load-btn:hover { background: var(--accent-dark); }
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}

@media (max-width: 700px) {
  .slideshow { float: none; width: 100%; max-width: none; margin: 0 0 20px 0; }
}

/* Contact form */
form.contact-form {
  max-width: 600px;
  background: var(--content-bg);
  padding: 20px;
  border-radius: 4px;
}
form.contact-form .field { margin-bottom: 16px; }
form.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #232424;
  color: #ccc;
  font-family: inherit;
  font-size: 1rem;
}
form.contact-form button {
  background: #555;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
form.contact-form .captcha-answer { width: 120px; }

.form-message {
  max-width: 600px;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.form-message.success {
  background: rgba(172, 217, 4, 0.15);
  border: 1px solid var(--accent);
  color: #e3f7a3;
}
.form-message.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid #dc3545;
  color: #f5a9a9;
}
form.contact-form button:hover { background: var(--accent-dark); }

/* Info bar / footer */
.info-bar {
  background: var(--info-bg);
  color: var(--info-text);
  padding: 40px 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.info-col { opacity: 0; }
.info-col.in-view.anim-left { animation: slideLeft 0.6s ease forwards; }
.info-col.in-view.anim-right { animation: slideRight 0.6s ease forwards; }
.info-col.in-view.anim-scale { animation: scaleUp 0.6s ease forwards; }
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.info-col h4 { margin: 0 0 6px; color: var(--info-text); }
.info-col a { color: var(--info-text); }
.info-col img { max-width: 100%; height: auto; margin: 0 0 6px; }
.info-col img + p { margin-top: 0; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.small { font-size: 1rem; color: #aaa; }

.site-footer {
  text-align: center;
  padding: 16px 0;
  font-size: 0.85rem;
  color: #888;
  background: var(--footer-bg);
}

@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* Floating contact popover (tab + slide-out panel) */
.contact-popover {
  position: fixed;
  top: 24px;
  right: 0px;
  z-index: 500;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.contact-tab {
  position: relative;
  z-index: 2;
  flex: 0 0 32px;
  width: 32px;
  background: rgba(172, 217, 4, 0.85);
  color: #2b2b2b;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  border-radius: 6px 0 0 6px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.35);
}
.contact-tab-text {
  writing-mode: vertical-rl;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.contact-tab-icon {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}
.contact-popover.open .contact-tab-icon { transform: rotate(0deg); }

.contact-panel {
  position: relative;
  z-index: 1;
  width: 260px;
  background: #2f2f2f;
  color: #ddd;
  padding: 20px;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.4);
  /* Verschiebt das geschlossene Panel komplett am Tab vorbei (eigene Breite
     + Tab-Breite), statt nur exakt dahinter - sonst scheint der Panel-
     Hintergrund durch den (teil-)transparenten Tab durch. */
  transform: translateX(calc(100% + 32px));
  transition: transform 0.3s ease;
}
.contact-popover.open .contact-panel { transform: translateX(0); }
.contact-panel p { margin: 0 0 10px; }
.contact-panel-name { font-weight: bold; color: #fff; }
.contact-panel a { color: var(--accent); }

@media (max-width: 480px) {
  .contact-panel { width: 200px; padding: 16px; }
}
