/*
Theme Name: Simple Blue Banner
Theme URI: https://example.com/
Author: You
Description: Simple theme: logo left, menu right, blue banner with custom text + image, footer menu + image.
Version: 1.4
Text Domain: simple-blue-banner
*/

:root{
  --container: 1140px;
  --blue: #6FA7D8;
  --blue-dark: #5a94c8;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

a{ color: inherit; }
img{ max-width:100%; height:auto; display:block; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header{
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.site-branding{
  display:flex;
  align-items:center;
  gap: 12px;
  min-height: 44px;
}

/* Logo width is controlled dynamically via inline CSS from PHP */
.custom-logo {
  height: auto;
  display: block;
}

.site-branding .site-title{
  margin:0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
}

.site-branding .site-description{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ── Navigation ─────────────────────────────────────────────── */
.main-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 6px;
  align-items:center;
}

.main-nav a{
  text-decoration:none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: background 0.22s ease, color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  display: inline-block;
}

/* Inactive item hover — subtle highlight, slight lift */
.main-nav li:not(.current-menu-item):not(.current_page_item) > a:hover {
  background: rgba(111, 167, 216, 0.15);
  color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(111,167,216,0.18);
}

/* Active item — filled blue pill */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(111,167,216,0.35);
}

/* Active item hover — gentle pulse / glow */
.main-nav .current-menu-item > a:hover,
.main-nav .current_page_item > a:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(90,148,200,0.45);
}

/* ── Banner / Hero ───────────────────────────────────────────── */
.hero{
  background: var(--blue);
  padding: 0;
  width: 100%;
}

.hero-row{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  min-height: 100px;
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-text{
  flex: 1 1 auto;
  text-align:center;
  color:#fff;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px 40px;
}

.hero-media{
  flex: 0 0 auto;
  background:#fff;
  border-radius: 0;
  padding: 10px 20px;
  width: 200px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-media img{
  max-height: 80px;
  width: auto;
  max-width: 100%;
}

/* ── Content ─────────────────────────────────────────────────── */
.site-content{
  padding: 28px 0 36px;
}

.entry-title{
  margin: 0 0 14px;
  font-size: 32px;
}

.entry-content{
  color:#111827;
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer{
  background: var(--blue);
  color:#fff;
  padding: 24px 0;
}

.footer-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
}

.footer-nav-title{
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 18px;
}

.footer-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.footer-nav a{
  color:#fff;
  text-decoration:none;
  opacity: .95;
}

.footer-banner{
  background:#fff;
  border-radius: 4px;
  padding: 10px;
  width: 280px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.footer-banner img{
  max-height: 110px;
  width:auto;
}

.site-footer-bottom{
  background:#fff;
  color:#374151;
  text-align:center;
  font-size: 13px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
}

/* ── Cookie / DSGVO Banner ───────────────────────────────────── */
.sbb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1f2937;
  color: #f9fafb;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  animation: sbbSlideUp 0.4s ease;
}

@keyframes sbbSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.sbb-cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sbb-cookie-text {
  flex: 1 1 300px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #d1d5db;
}

.sbb-cookie-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 3px;
}

.sbb-cookie-text a {
  color: var(--blue);
  text-decoration: underline;
}

.sbb-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.sbb-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.sbb-btn:hover {
  transform: translateY(-1px);
}

.sbb-btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.sbb-btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.sbb-btn-outline {
  background: transparent;
  color: #d1d5db;
  border-color: #4b5563;
}

.sbb-btn-outline:hover {
  border-color: #9ca3af;
  color: #fff;
}

/* ── Mobile menu button ──────────────────────────────────────── */
.menu-toggle{
  display:none;
  border: 1px solid var(--border);
  background:#fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor:pointer;
  line-height:1;
}

.menu-toggle:focus{
  outline: 2px solid rgba(111,167,216,.6);
  outline-offset: 2px;
}

.menu-toggle .bars{
  width: 18px;
  height: 12px;
  position: relative;
  display:block;
}

.menu-toggle .bars span{
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:#111827;
  border-radius:2px;
}

.menu-toggle .bars span:nth-child(1){ top:0; }
.menu-toggle .bars span:nth-child(2){ top:5px; }
.menu-toggle .bars span:nth-child(3){ top:10px; }

.main-nav{
  position: relative;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 820px){
  .header-row{ flex-wrap: wrap; }

  .menu-toggle{ display:block; }
  .main-nav{ width: 100%; }
  .main-nav ul{
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
    padding: 12px 0 6px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
  }
  .main-nav a{
    display:block;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .main-nav.is-open ul{ display:flex; }

  .hero-row{ flex-direction:column; }
  .hero-text{ font-size: 20px; padding: 16px 20px; }
  .hero-media{ width: 100%; max-height: 100px; }

  .footer-row{
    flex-direction:column;
    align-items:stretch;
  }
  .footer-banner{ width: 100%; }

.sbb-cookie-inner {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    flex-wrap: nowrap;
  }
  .sbb-cookie-text {
    font-size: 12px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .sbb-cookie-text strong {
    font-size: 12px;
  }
  .sbb-cookie-actions {
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: auto;
  }
  .sbb-btn {
    padding: 7px 14px;
    font-size: 12px;
  }


}

/* ── The Events Calendar — не обмежуємо ширину, нехай наслідує контейнер теми ── */
.tribe-events {
  box-sizing: border-box;
}

/* ── Accessibility ───────────────────────────────────────────── */
.screen-reader-text{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;}


/* ── Kursanmeldung Form ──────────────────────────────────────── */

.kf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.kf-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #4f8ef7;
  border-radius: 50%;
  animation: kfpulse 2s infinite;
}

@keyframes kfpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.kf-lead {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.kf-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 32px rgba(79,142,247,0.08),
    0 0 0 1px rgba(79,142,247,0.06);
}

.kf-section { margin-bottom: 28px; }

.kf-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kf-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.kf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.kf-full { margin-bottom: 14px; }

/* ── Поля з підписом зверху (column-reverse trick) ── */
.kf-field {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.kf-field > label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.kf-req { color: #ef4444; }

.kf-field .wpcf7-form-control-wrap { display: block; }

.kf-field .wpcf7-form-control-wrap input,
.kf-field .wpcf7-form-control-wrap textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #fafcff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.kf-field .wpcf7-form-control-wrap input:focus,
.kf-field .wpcf7-form-control-wrap textarea:focus {
  border-color: #4f8ef7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79,142,247,0.12);
}

/* ── Textarea окремо ── */
.kf-full .wpcf7-form-control-wrap textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  min-height: 120px;
  resize: vertical;
  box-sizing: border-box;
  background: #fafcff;
  outline: none;
  color: #0f172a;
}

.kf-full .wpcf7-form-control-wrap textarea:focus {
  border-color: #4f8ef7;
  box-shadow: 0 0 0 4px rgba(79,142,247,0.12);
}

/* ── Choice blocks (radio/checkbox як pills) ── */
.kf-choice-wrap {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fafcff;
}

.kf-choice-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f8ef7;
  margin-bottom: 10px;
  display: block;
}

.kf-choices { display: flex; flex-wrap: wrap; gap: 8px; }

.kf-choices .wpcf7-list-item { margin: 0; }

.kf-choices input[type="radio"],
.kf-choices input[type="checkbox"] { display: none; }

.kf-choices .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  background: #fff;
}

.kf-choices .wpcf7-list-item label:hover {
  border-color: #4f8ef7;
  color: #4f8ef7;
  background: #eff6ff;
}

.kf-choices .wpcf7-list-item input[type="radio"]:checked + span,
.kf-choices .wpcf7-list-item input[type="checkbox"]:checked + span {
  background: #4f8ef7;
  border-color: #4f8ef7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,142,247,0.3);
}

/* ── Acceptance ── */
.kf-accept {
  background: #eff6ff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1.5px solid rgba(79,142,247,0.15);
}

.kf-accept .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #0f172a;
  line-height: 1.55;
}

.kf-accept .wpcf7-list-item input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #4f8ef7;
  margin-top: 2px;
}

/* ── Submit ── */
.kf-submit-wrap {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

input[type="submit"].kf-submit-btn {
  background: linear-gradient(135deg, #4f8ef7 0%, #2563eb 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 36px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(79,142,247,0.35) !important;
  transition: all 0.2s ease !important;
}

input[type="submit"].kf-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(79,142,247,0.45) !important;
  background: linear-gradient(135deg, #5a97ff 0%, #1d55d4 100%) !important;
}

.kf-note {
  font-size: 12.5px;
  color: #64748b;
}

/* ── Errors ── */
.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* ── Mobile ── */
@media (max-width: 560px) {
  .kf-card { padding: 20px; }
  .kf-row { grid-template-columns: 1fr; }
  .kf-submit-wrap { flex-direction: column; align-items: flex-start; }
}
