*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #1d2b3a;
  background:
    linear-gradient(180deg, #f4f8fd 0%, #ffffff 28%),
    radial-gradient(circle at top, rgba(53, 108, 169, 0.08), transparent 42%);
}

a {
  color: #174e86;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.hero,
.section,
.site-footer {
  isolation: isolate;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 32, 58, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 184, 222, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-link:focus-visible {
  outline: 2px solid rgba(94, 158, 219, 0.65);
  outline-offset: 6px;
  border-radius: 0.35rem;
}

.logo-image {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(0) invert(1);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a9c8e7;
}

.logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: #e9f2fb;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-details {
  display: none;
  position: relative;
}

.nav-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 0.55rem 0.9rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(196, 219, 241, 0.34);
  color: #e9f2fb;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nav-summary::-webkit-details-marker {
  display: none;
}

.nav-details[open] .nav-summary {
  background: rgba(255, 255, 255, 0.08);
}

.main-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem;
  border-radius: 0.35rem;
  background: rgba(8, 32, 58, 0.98);
  border: 1px solid rgba(148, 184, 222, 0.22);
  box-shadow: 0 26px 60px rgba(2, 13, 25, 0.45);
}

.main-nav-panel a {
  padding: 0.55rem 0.7rem;
}

.hero {
  padding: 4.75rem 0 5rem;
  background:
    linear-gradient(105deg, rgba(6, 28, 52, 0.96), rgba(11, 49, 88, 0.88)),
    radial-gradient(circle at top right, rgba(88, 151, 221, 0.24), transparent 30%);
  color: #f3f7fb;
}

.hero-home {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 6.25rem;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/logenhaus.png');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  z-index: -3;
}

.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(58, 136, 220, 0.38), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(45, 119, 194, 0.28), transparent 40%),
    linear-gradient(110deg, rgba(3, 16, 30, 0.92), rgba(7, 30, 55, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  z-index: -2;
}

.hero-home-content {
  max-width: 680px;
  text-align: left;
  position: relative;
}

.hero-home-content::before {
  content: '';
  position: absolute;
  left: -28px;
  top: -26px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(58, 136, 220, 0.45), transparent 60%);
  filter: blur(1px);
  z-index: -1;
  animation: glow-pulse 6s ease-in-out infinite;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: #9fc2e7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.hero p {
  margin-bottom: 2rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: rgba(243, 247, 251, 0.88);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero-facts span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 95, 163, 0.16);
  color: #214764;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-house-image {
  width: 100%;
  display: block;
  border-radius: 0.35rem;
  border: 1px solid rgba(168, 197, 228, 0.28);
  box-shadow: 0 28px 60px rgba(3, 10, 20, 0.34);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.45rem;
  border-radius: 0.2rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.82rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1d5fa3, #2d77c2);
  color: #fff;
  box-shadow: 0 14px 30px rgba(29, 95, 163, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #164d86, #1d5fa3);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(29, 95, 163, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #f3f7fb;
  border: 1px solid rgba(196, 219, 241, 0.48);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #eef4fb, #f8fbff);
}

.section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: #102b47;
}

.section p,
.section ul,
.section ol {
  max-width: 66ch;
  font-size: 1.02rem;
}

.section .container {
  animation: fade-in-up 0.7s ease both;
}

.section-title-center {
  text-align: center;
  margin-bottom: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.card {
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border-radius: 0.3rem;
  padding: 1.55rem 1.5rem;
  border: 1px solid #d8e6f4;
  box-shadow: 0 14px 32px rgba(18, 63, 107, 0.07);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, rgba(45, 119, 194, 0.22), rgba(148, 184, 222, 0.08));
  opacity: 0;
  transition: opacity 0.18s ease-out;
  z-index: -1;
}

.card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
  color: #123a60;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #8fb7de;
  box-shadow: 0 20px 44px rgba(18, 63, 107, 0.13);
}

.card:hover::before {
  opacity: 1;
}

.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.history-figure {
  margin: 0;
  padding: 1.8rem;
  border-radius: 0.3rem;
  background: linear-gradient(180deg, #f8fbff, #e8f2fd);
  border: 1px solid #cfe1f4;
  box-shadow: 0 18px 45px rgba(18, 63, 107, 0.12);
}

.history-logo {
  width: 100%;
  display: block;
  object-fit: contain;
}

ul,
ol {
  padding-left: 1.2rem;
}

.link-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.event-list {
  list-style: none;
  padding-left: 0;
}

.event-list li {
  padding: 1.1rem 1.15rem;
  border-radius: 0.3rem;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  border: 1px solid #d7e6f5;
  margin-bottom: 0.75rem;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

.event-list li:hover {
  transform: translateY(-2px);
  border-color: #9fc3e6;
  box-shadow: 0 10px 24px rgba(18, 63, 107, 0.12);
}

details {
  border-radius: 0.3rem;
  border: 1px solid #d7e6f5;
  padding: 0.95rem 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
  transition:
    background-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: #123a60;
}

details[open] {
  background: linear-gradient(135deg, #eef6ff, #dfefff);
  border-color: #9fc3e6;
  box-shadow: 0 10px 24px rgba(18, 63, 107, 0.1);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 30rem;
}

.contact-form label {
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 0.2rem;
  border: 1px solid #c8d9ea;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1b4f72;
  box-shadow: 0 0 0 2px rgba(27, 79, 114, 0.15);
}

.contact-note {
  font-size: 0.9rem;
  color: #555;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid #d8e7f7;
  padding: 2rem 0;
  background: linear-gradient(180deg, #0a2744, #081f36);
  color: #dce9f5;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #dce9f5;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-6px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section .container {
    animation: none;
  }
  .hero-home-content::before {
    animation: none;
  }
  .btn,
  .card,
  .event-list li {
    transition: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .main-nav-inline {
    display: none;
  }

  .nav-details {
    display: block;
    margin-left: auto;
  }

  .nav-summary {
    background: linear-gradient(180deg, #0b2d4f, #071f36);
    color: #f1f7ff;
    border: 1px solid rgba(141, 183, 224, 0.38);
    box-shadow: 0 8px 20px rgba(2, 12, 24, 0.45);
  }

  .nav-details[open] .nav-summary {
    background: linear-gradient(180deg, #123e69, #0b2d4f);
    border-color: rgba(159, 198, 236, 0.5);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .columns-3 {
    grid-template-columns: 1fr;
  }

  .hero-layout,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .logo-image {
    width: 52px;
    height: 52px;
  }

  .hero-home {
    padding: 4.75rem 0 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 9vw, 3.25rem);
  }
}

