:root {
  --accent: #5381f6;
  --accent-hover: #87a9ff;
  --accent-dark: #3a5fc9;
  --accordion-bg: #3490eb;
  --header-bg: #232424;
  --content-bg: #393939;
  --content-text: #ffffffe0;
  --footer-bg: #232424;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, "Segoe UI", 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 { color: var(--accent-hover); text-decoration: underline; }

/* Header */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
}
.logo-icon { flex: 0 0 auto; }
.logo-icon img { height: 75px; width: auto; }

.brand-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.logo-text { display: block; }
.logo-text img { height: 32px; width: auto; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 6px 16px 6px 0;
  color: var(--accent);
  font-weight: 400;
  font-size: 1.1rem;
}
.site-nav a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
.site-nav li.active a {
  color: var(--accent-hover);
  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;
  flex: 0 0 auto;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 700px) {
  .logo-icon img { height: 44px; }
  .logo-text img { height: 32px; }
  .nav-toggle { display: flex; }

  /* Menü als Overlay unter dem Header, damit der Header beim Auf-/Zuklappen
     seine Höhe nicht ändert (kein "Springen" der sticky Kopfzeile). Der
     naechste positionierte Vorfahre ist .site-header (position: sticky). */
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    margin: 0;
    padding: 6px 20px 14px;
    background: var(--header-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  }
  .site-nav.open ul { display: flex; }
  .site-nav a { padding: 10px 0; }
}

/* Page content */
.page { padding: 40px 20px; }
.page h1 {
  margin-top: 0;
  color: var(--accent) !important;
}
.page h4 { color: var(--accent) !important; font-weight: bold; }
.home img, .page img { max-width: 100%; border-radius: 4px; }

/* Accordion */
.accordion-group { display: flex; flex-direction: column; gap: 6px; }
.accordion-item { margin-bottom: 6px; }
.accordion-summary {
  display: block;
  width: 100%;
  background: var(--accordion-bg);
  color: #333 !important;
  font-weight: bold;
  font-size: 1.05rem;
  font-family: inherit;
  border: none;
  border-radius: 5px;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}
.accordion-summary::after {
  content: "+";
  float: right;
  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; }

.profile-photo {
  float: right;
  margin: 0 0 14px 20px;
}
.profile-photo img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
}
@media (max-width: 700px) {
  .profile-photo {
    float: none;
    margin: 0 auto 14px;
  }
}

/* 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: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
form.contact-form button:hover { background: var(--accent-dark); }
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(83, 129, 246, 0.15);
  border: 1px solid var(--accent);
  color: #cddcfd;
}
.form-message.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid #dc3545;
  color: #f5a9a9;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #bbbbbb;
  padding: 14px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footer-copy { margin: 0; font-size: 0.85rem; color: #888; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 18px;
}
.footer-nav a { color: #bbbbbb; }
.footer-nav a:hover { color: var(--accent-hover); }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; text-align: center; }
}
