/* =============================================
   BORG Krems – style.css
   ============================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f4f0;
}

a { color: #185FA5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   Navbar
   ============================================= */

.navbar {
  background: #ffffff;
  border-bottom: 0.5px solid #e0ddd6;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  height: 82px;
  gap: 0;
}

.nav-logo {
  height: 70px;
  width: auto;
  display: block;
}

.nav-brand {
  display: flex;
  align-items: center;
  padding: 6px 0;
  flex-shrink: 0;
}

/* ── Squares: always visible next to logo ── */
.nav-squares-static {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  padding: 0 6px 0 10px;
  flex-shrink: 0;
}

.nav-sq {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── "Schwerpunkte" button – matches other nav links ── */
.nav-sp-btn {
  display: block;
  padding: 0 16px;
  height: 82px;
  line-height: 82px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
  font-weight: 400;
  margin-right: 0;
}

.nav-sp-btn:hover,
.nav-sp-btn.is-open {
  color: #185FA5;
  border-bottom: 2px solid #185FA5;
}

/* ── Wrapper holds squares + button + dropdown ── */
.nav-sp-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* ── Dropdown container ── */
.sp-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  flex-direction: column;
  gap: 5px;
  padding: 8px 4px 8px 0;
  min-width: 260px;
}

.sp-dropdown.is-open {
  display: flex;
}

/* Each dropdown row – white box with coloured border */
.sp-dd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: white;
  border: 2px solid;
  border-radius: 8px;
  padding: 8px 14px 8px 10px;
  white-space: nowrap;
  transition: background 0.15s ease;
  opacity: 0; /* shown by JS */
}

.sp-dd-row:hover {
  background: #f5f5f5;
  text-decoration: none;
}

/* Small coloured square as bullet */
.sp-dd-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sp-dd-name {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

/* Flying square (JS-created clone) */
.flying-sq {
  position: fixed;
  border-radius: 2px;
  pointer-events: none;
  z-index: 99999;
}

/* =============================================
   Nav Links
   ============================================= */

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  display: block;
  padding: 0 16px;
  height: 82px;
  line-height: 82px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #185FA5;
  border-bottom: 2px solid #185FA5;
  text-decoration: none;
}

/* =============================================
   Hero
   ============================================= */

.hero {
  background: linear-gradient(rgba(12,68,124,0.72), rgba(24,95,165,0.78)),
              url('Hero1.webp') center center / cover no-repeat;
  color: white;
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.hero-sub { font-size: 1rem; opacity: 0.85; margin-bottom: 1.75rem; }

.hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(255,255,255,0.18);
  border: 0.5px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: white;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.badge:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.07);
  text-decoration: none;
}

.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: white;
  color: #185FA5;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* =============================================
   Stats
   ============================================= */

.stats-section {
  background: #ffffff;
  border-bottom: 0.5px solid #e0ddd6;
  padding: 1.5rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.stat { background: #f5f4f0; border-radius: 8px; padding: 1rem; text-align: center; }
.stat-num { font-size: 26px; font-weight: 600; color: #1a1a1a; }
.stat-label { font-size: 12px; color: #888; margin-top: 2px; }

/* =============================================
   Sections
   ============================================= */

.section { padding: 2rem; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 17px; font-weight: 600; color: #1a1a1a; margin-bottom: 1.25rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* =============================================
   Schwerpunkte Cards
   ============================================= */

.schwerpunkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.schwerpunkt-card {
  background: #ffffff;
  border: 0.5px solid #e0ddd6;
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.schwerpunkt-card:hover { transform: scale(1.07); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.sp-icon { font-size: 28px; margin-bottom: 10px; }
.sp-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.sp-desc { font-size: 13px; color: #666; line-height: 1.5; }

.sp-blue   { border-top: 3px solid #378ADD; }
.sp-teal   { border-top: 3px solid #1D9E75; }
.sp-purple { border-top: 3px solid #7F77DD; }
.sp-amber  { border-top: 3px solid #EF9F27; }

.sp-blue   .sp-title { color: #0C447C; }
.sp-teal   .sp-title { color: #0F6E56; }
.sp-purple .sp-title { color: #3C3489; }
.sp-amber  .sp-title { color: #633806; }

.sp-photo { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; display: block; }

/* =============================================
   News
   ============================================= */

.news-list { display: flex; flex-direction: column; gap: 10px; }

.news-card { background: #ffffff; border: 0.5px solid #e0ddd6; border-radius: 12px; padding: 1rem 1.25rem; }
.news-date  { font-size: 12px; color: #999; margin-bottom: 4px; }
.news-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.news-body  { font-size: 13px; color: #555; line-height: 1.5; }

.news-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-top: 8px; font-weight: 500; }
.tag-blue   { background: #E6F1FB; color: #0C447C; }
.tag-teal   { background: #E1F5EE; color: #085041; }
.tag-purple { background: #EEEDFE; color: #3C3489; }

/* =============================================
   Cards / Upcoming / Contact
   ============================================= */

.card { background: #ffffff; border: 0.5px solid #e0ddd6; border-radius: 12px; padding: 1rem 1.25rem; }

.upcoming-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 0.5px solid #e0ddd6; }
.upcoming-item:last-child { border-bottom: none; }

.date-box { background: #E6F1FB; color: #0C447C; border-radius: 8px; padding: 6px 10px; text-align: center; min-width: 50px; flex-shrink: 0; }
.date-day { font-size: 18px; font-weight: 600; line-height: 1; }
.date-mon { font-size: 10px; font-weight: 500; letter-spacing: 0.5px; }
.upcoming-title { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.upcoming-sub   { font-size: 12px; color: #888; }

.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid #e0ddd6; }
.info-row:last-child { border-bottom: none; }
.info-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.info-label { font-size: 12px; color: #888; }
.info-val   { font-size: 13px; font-weight: 500; color: #1a1a1a; }

/* =============================================
   Footer
   ============================================= */

footer { background: #f0ede7; border-top: 0.5px solid #e0ddd6; padding: 2rem; text-align: center; }
.footer-name { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.footer-info { font-size: 13px; color: #555; margin-bottom: 6px; }
.footer-info a { color: #185FA5; }
.footer-copy { font-size: 12px; color: #aaa; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 600px) {
  .hero h1  { font-size: 2rem; }
  .navbar   { padding: 0 1rem; }
  .section  { padding: 1.5rem 1rem; }
  .stats-section { padding: 1.25rem 1rem; }
}