:root {
  --ink: #3A3A3A;
  --body-text: #6b6259;
  --muted: #8a8078;
  --faint: #a89b8c;
  --divider: #f0e9de;
  --bg: #FFF8EC;
  --red: #FF6B6B;
  --red-shadow: #d9524d;
  --red-hover: #e2554f;
  --yellow: #FFC94D;
  --yellow-shadow: #f0b93a;
  --blue: #6EC5E9;
  --green: #7ED957;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Nunito', sans-serif;
  color: var(--body-text);
}

a { color: var(--red); }
a:hover { color: var(--red-hover); }

/* Every link below carries its own fixed color; a class+pseudo-class
   selector outranks the generic element a:hover above, so none of
   these shift color on hover (matching the reference design). */
.nav-cta:hover, .btn-mail:hover, .btn-dark-pill:hover, .btn-red-pill:hover { color: #fff; }
.nav-link:hover, .doc-link:hover, .admin-back:hover, .btn-phone:hover { color: var(--ink); }
.modal-close:hover { color: var(--muted); }
.site-footer a:hover { color: var(--faint); }

.heading-font { font-family: 'Baloo 2', sans-serif; }

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-8deg); }
}
@keyframes pop {
  0% { transform: scale(.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  #hero-photo-wrap { display: none; }
}

.page-wrap { position: relative; overflow: hidden; }

/* Header */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 0 var(--yellow-shadow);
}
.brand-name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-link {
  text-decoration: none; color: var(--ink);
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 15px;
}
.nav-cta {
  text-decoration: none; background: var(--red); color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; box-shadow: 0 4px 0 var(--red-shadow);
}

.nav-toggle-input { display: none; }
.nav-toggle-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; cursor: pointer; position: relative; z-index: 3;
}
.nav-toggle-bar { display: block; width: 100%; height: 3px; border-radius: 2px; background: var(--ink); }

@media (max-width: 880px) {
  .site-header { padding: 22px 24px; }
  .nav-toggle-btn { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: #fff; padding: 22px 24px 28px;
    box-shadow: 0 12px 24px rgba(58,42,32,0.12);
    z-index: 2;
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
}

/* Hero */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 40px 40px 90px;
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
  position: relative;
}
.hero-shape-1 {
  position: absolute; top: -40px; right: 60px; width: 90px; height: 90px;
  border-radius: 50%; background: var(--blue); opacity: .5;
  animation: float1 6s ease-in-out infinite; z-index: 0;
}
.hero-shape-2 {
  position: absolute; bottom: 10px; right: 280px; width: 50px; height: 50px;
  border-radius: 14px; background: var(--green); opacity: .6;
  animation: float2 5s ease-in-out infinite; z-index: 0;
}
.hero-text { flex: 1; min-width: 320px; position: relative; z-index: 1; }
.hero-text h1 {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 52px; line-height: 1.1;
  color: var(--ink); margin: 0 0 18px;
}
.hero-text p { font-size: 19px; line-height: 1.6; color: var(--body-text); max-width: 460px; margin: 0 0 28px; }
.btn-dark-pill {
  text-decoration: none; background: var(--ink); color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; display: inline-block;
}
#hero-photo-wrap { flex: 1; min-width: 320px; position: relative; z-index: 1; }
.hero-photo {
  width: 100%; height: 340px; border-radius: 28px; box-shadow: 0 10px 0 #f5cf94;
  object-fit: cover; display: block;
}

/* About */
.about {
  max-width: 1200px; margin: 0 auto; padding: 20px 40px 80px;
  display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start;
}
.about-text { flex: 1.2; min-width: 300px; }
.about-text h2 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 30px; color: var(--ink); margin: 0 0 16px; }
.about-text p { font-size: 16px; line-height: 1.7; color: var(--body-text); margin: 0 0 14px; }
.about-subheading { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); margin: 26px 0 10px; }
.about-list { margin: 0 0 14px; padding-left: 20px; font-size: 16px; line-height: 1.7; color: var(--body-text); }
.about-list li { margin-bottom: 4px; }
.about-quote { font-size: 16px; line-height: 1.7; color: var(--body-text); font-style: italic; margin: 0 0 14px; }
.about-card {
  flex: 1; min-width: 280px; background: #fff; border-radius: 22px; padding: 24px 26px;
  box-shadow: 0 8px 0 rgba(58,42,32,0.06);
}
.about-card-title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.schedule-rows { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--body-text); }
.schedule-row { display: flex; justify-content: space-between; gap: 10px; }
.schedule-row strong { color: var(--ink); font-weight: 700; }
.divider { height: 1px; background: var(--divider); margin: 16px 0; }
.about-card-note { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* Section shared */
.section { max-width: 1200px; margin: 0 auto; padding: 10px 40px 90px; }
.section h2 {
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 34px; color: var(--ink);
  text-align: center; margin: 0 0 8px;
}
.section-sub { text-align: center; color: var(--body-text); font-size: 17px; margin: 0 0 44px; }

/* Kindergarten cards */
.kinder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.kinder-card {
  position: relative;
  background: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 8px 0 rgba(58,42,32,0.08);
  border: 3px solid transparent;
}
.kinder-card:hover { border-color: var(--hover-border, transparent); }
/* Invisible full-card link (opens the modal) sits underneath the visible
   content. The body ignores pointer events so clicks fall through to this
   link everywhere except the map iframe, which explicitly opts back in
   below so it stays independently interactive (drag/zoom). */
.kinder-card-open { position: absolute; inset: 0; z-index: 0; cursor: pointer; }
.kinder-card-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  pointer-events: none;
}
.kinder-photo, .kinder-map {
  width: 100%; border-radius: 18px; background-size: cover; background-position: center;
  background-color: #f3ece0; display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 13px; text-align: center; padding: 8px;
  border: 0;
}
.kinder-photo { height: 150px; }
.kinder-map { height: 90px; border-radius: 14px; position: relative; z-index: 1; pointer-events: auto; }
.kinder-name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); }
.kinder-address { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 4px; }
.chip { border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.chip-meta { display: flex; align-items: center; gap: 8px; }
.chip-tag { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.chip-date { font-size: 12px; color: var(--muted); }
.chip-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.kinder-link { text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 14px; }

/* Novosti */
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.news-row {
  background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: 0 6px 0 rgba(58,42,32,0.06);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.news-tag { border-radius: 10px; padding: 5px 10px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.news-title { flex: 1; min-width: 180px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.news-kname { font-size: 13px; font-weight: 700; }
.news-date { font-size: 12.5px; color: var(--muted); min-width: 56px; text-align: right; }

/* Upisi */
.upisi-card { background: #fff; border-radius: 26px; padding: 40px; text-align: center; box-shadow: 0 8px 0 rgba(58,42,32,0.06); }
.upisi-card h2 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 30px; color: var(--ink); margin: 0 0 10px; }
.upisi-card p { color: var(--body-text); font-size: 16px; max-width: 560px; margin: 0 auto 22px; }
.btn-red-pill {
  text-decoration: none; background: var(--red); color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; box-shadow: 0 4px 0 var(--red-shadow);
  display: inline-block; border: none; cursor: pointer;
}
.doc-links { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 28px auto 0; text-align: left; }
.doc-link {
  text-decoration: none; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 14px; padding: 12px 16px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}

/* Dokumenti */
.dokumenti-card { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 30px 34px; box-shadow: 0 8px 0 rgba(58,42,32,0.06); }
.dokumenti-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 28px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--body-text); }
.check-item .mark { color: var(--green); font-weight: 800; margin-top: 1px; }

/* Enroll CTA */
.enroll-section { background: var(--yellow); padding: 70px 40px; position: relative; overflow: hidden; }
.enroll-circle { position: absolute; left: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.enroll-inner { max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.enroll-inner h2 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 32px; color: var(--ink); margin: 0 0 12px; }
.enroll-inner p { font-size: 17px; color: #5a4a26; margin: 0 0 26px; }
.enroll-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-mail {
  text-decoration: none; background: var(--ink); color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px;
}
.btn-phone {
  text-decoration: none; background: #fff; color: var(--ink);
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px;
}

/* Kontakt */
.kontakt-intro { text-align: center; color: var(--body-text); font-size: 16px; margin: 0 0 36px; }
.kontakt-intro a { font-weight: 700; }
.kontakt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.contact-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 8px 0 rgba(58,42,32,0.06); }
.contact-label { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.contact-address { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.contact-rows { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--body-text); }
.contact-rows strong { color: var(--ink); font-weight: 700; }
.contact-hours { font-size: 13.5px; color: var(--muted); }
.contact-hours strong { color: var(--ink); font-weight: 700; }

/* Footer */
.site-footer { text-align: center; padding: 26px; color: var(--faint); font-size: 13px; }
.site-footer a { color: var(--faint); text-decoration: underline; }
.footer-credit { margin-top: 6px; font-size: 12px; }
.footer-illustration { display: block; width: 100%; max-width: 900px; margin: 0 auto; padding: 0 40px 30px; }

/* Modal — pure-CSS :target overlay. Hidden by default, shown when its
   #modal-{id} fragment is the current URL hash. */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(58,42,32,0.45);
  align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-overlay:target { display: flex; }
.modal-backdrop-close { position: absolute; inset: 0; z-index: 0; }
.modal-panel {
  position: relative; z-index: 1;
  background: #fff; border-radius: 26px; max-width: 480px; width: 100%;
  max-height: 80vh; overflow-y: auto; padding: 28px;
  animation: pop .18s ease-out;
}
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.modal-kname { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); }
.modal-address { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 4px; }
.modal-close { cursor: pointer; font-size: 22px; color: var(--muted); line-height: 1; padding: 4px; text-decoration: none; }
.modal-subtitle { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); margin: 20px 0 10px; }
.modal-list { display: flex; flex-direction: column; gap: 10px; }

/* Admin */
.admin-shell { min-height: 100vh; padding: 32px 24px 60px; }
.admin-inner { max-width: 880px; margin: 0 auto; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand-badge { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.admin-brand-name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); }
.admin-back { text-decoration: none; font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }
.admin-card { background: #fff; border-radius: 22px; padding: 26px 28px; box-shadow: 0 8px 0 rgba(58,42,32,0.06); margin-bottom: 28px; }
.admin-card-title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 16px; }
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.admin-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.admin-field { flex: 1; min-width: 200px; }
.admin-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.admin-field input, .admin-field select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #eee0cc; font-size: 14.5px; font-family: 'Nunito', sans-serif;
}
.admin-submit {
  background: var(--red); color: #fff; border: none; font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 14.5px; padding: 12px 24px; border-radius: 999px;
  cursor: pointer; box-shadow: 0 4px 0 var(--red-shadow);
}
.admin-submit:disabled { opacity: .5; cursor: not-allowed; }
.kinder-list-card { background: #fff; border-radius: 22px; padding: 22px 26px; box-shadow: 0 8px 0 rgba(58,42,32,0.06); margin-bottom: 18px; }
.kinder-list-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.kinder-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.kinder-list-name { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.announcement-rows { display: flex; flex-direction: column; gap: 8px; }
.announcement-row { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 10px 14px; flex-wrap: wrap; }
.announcement-row .pill-tag { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 11px; text-transform: uppercase; padding: 4px 9px; border-radius: 8px; }
.announcement-row .a-title { flex: 1; min-width: 160px; font-size: 14px; font-weight: 600; color: var(--ink); }
.announcement-row .a-date { font-size: 12.5px; color: var(--muted); }
.remove-btn {
  cursor: pointer; color: #c94a44; font-size: 13px; font-weight: 700; padding: 4px 8px;
  background: none; border: none; font-family: inherit;
}
.no-custom { font-size: 13.5px; color: var(--faint); }
.doc-slot-row {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); border-radius: 12px; padding: 12px 14px;
}
.doc-slot-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.error-banner {
  background: #FFE7E5; color: #c94a44; border-radius: 12px; padding: 12px 16px;
  font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: #fff; border-radius: 22px; padding: 32px; box-shadow: 0 8px 0 rgba(58,42,32,0.06); width: 100%; max-width: 360px; }
.login-card h1 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); margin: 0 0 20px; text-align: center; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.login-field input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #eee0cc; font-size: 14.5px; font-family: 'Nunito', sans-serif;
}
.login-submit {
  width: 100%; background: var(--red); color: #fff; border: none; font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 15px; padding: 12px 24px; border-radius: 999px;
  cursor: pointer; box-shadow: 0 4px 0 var(--red-shadow); margin-top: 6px;
}
