/*
Theme Name: Friedland 3 App Theme
Theme URI: https://example.local/friedland3
Author: KGA Friedland 3
Description: Mobile-first WordPress-Theme fuer die Kleingartenkolonie Friedland 3 mit App-Startseite, Terminen, Meldungen und Schnellzugriffen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: friedland3
*/

:root {
  --f3-green-900: #073b1c;
  --f3-green-800: #0d4f27;
  --f3-green-700: #176834;
  --f3-green-600: #2b7a3d;
  --f3-lime: #a8c64a;
  --f3-blue: #3d9fe0;
  --f3-paper: #f7f8f1;
  --f3-card: #ffffff;
  --f3-line: #d9dfd2;
  --f3-text: #172117;
  --f3-muted: #657065;
  --f3-shadow: 0 12px 28px rgba(17, 32, 19, .18);
  --f3-radius: 8px;
  --f3-safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #e8ece3;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 30% -10%, rgba(168, 198, 74, .28), transparent 34rem),
    linear-gradient(180deg, #eef1e9 0%, #dce4d8 100%);
  color: var(--f3-text);
}

body.admin-bar .f3-shell {
  min-height: calc(100vh - 32px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.f3-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--f3-paper);
  box-shadow: var(--f3-shadow);
  position: relative;
  overflow-x: hidden;
}

.f3-topbar {
  min-height: 128px;
  padding: 24px 18px 20px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(7, 59, 28, .96), rgba(19, 96, 42, .93)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, .04) 18px 19px);
}

.f3-icon-bars,
.f3-icon-mail {
  display: inline-block;
  position: relative;
}

.f3-icon-bars,
.f3-icon-mail {
  width: 28px;
  height: 28px;
}

.f3-icon-bars::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 17px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.f3-icon-mail {
  border: 2px solid currentColor;
  border-radius: 2px;
}

.f3-icon-mail::before,
.f3-icon-mail::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 15px;
  height: 2px;
  background: currentColor;
}

.f3-icon-mail::before {
  left: 1px;
  transform: rotate(33deg);
}

.f3-icon-mail::after {
  right: 1px;
  transform: rotate(-33deg);
}

.f3-hero {
  display: grid;
  grid-template-columns: 28px 64px 1fr 32px;
  gap: 9px;
  align-items: center;
}

.f3-logo {
  width: 64px;
  height: 64px;
}

.f3-menu-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.f3-logo-link,
.f3-mail-link {
  display: grid;
  place-items: center;
}

.f3-brand-kicker {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.f3-brand-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 8vw, 34px);
  font-weight: 800;
  line-height: .95;
}

.f3-brand-subtitle {
  display: block;
  margin-top: 5px;
  color: #d6ef7a;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 16px;
}

.f3-main {
  padding: 13px 14px 92px;
}

.f3-section {
  margin-bottom: 17px;
}

.f3-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1px 7px;
}

.f3-section-title {
  margin: 0;
  color: var(--f3-green-800);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.f3-view-all {
  color: var(--f3-green-700);
  font-size: 11px;
  font-weight: 650;
}

.f3-card {
  background: var(--f3-card);
  border: 1px solid var(--f3-line);
  border-radius: var(--f3-radius);
  box-shadow: 0 3px 12px rgba(28, 43, 26, .12);
  overflow: hidden;
}

.f3-card.f3-quick-grid,
.f3-card.f3-more-grid {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.f3-empty {
  margin: 0;
  padding: 14px 12px;
  color: var(--f3-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.f3-empty-grid {
  grid-column: 1 / -1;
}

.f3-list-row {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  gap: 8px;
  align-items: center;
  min-height: 45px;
  padding: 8px 9px;
  border-bottom: 1px solid #e7ebe1;
}

.f3-list-row:last-child {
  border-bottom: 0;
}

.f3-row-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--f3-green-700);
}

.f3-row-title {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
}

.f3-row-meta {
  display: block;
  margin-top: 2px;
  color: var(--f3-muted);
  font-size: 11px;
  font-weight: 600;
}

.f3-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #7e897b;
  border-right: 2px solid #7e897b;
  transform: rotate(45deg);
}

.f3-event-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 7px 9px;
  border-bottom: 1px solid #e7ebe1;
}

.f3-event-row:last-child {
  border-bottom: 0;
}

.f3-date-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 42px;
  color: #fff;
  background: linear-gradient(180deg, #6e9c3a, #4f7a2c);
  border-radius: 5px;
  text-align: center;
  line-height: .92;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.f3-date-day {
  display: block;
  font-size: 17px;
  font-weight: 850;
}

.f3-date-month {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.f3-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.f3-quick-item {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 10px 5px 8px;
  background: #fff;
  border: 1px solid #e2e8dc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(21, 35, 20, .1);
  text-align: center;
}

.f3-quick-item.is-featured {
  border-color: #5fa33b;
  box-shadow: inset 0 0 0 1px #5fa33b, 0 4px 12px rgba(21, 35, 20, .12);
}

.f3-quick-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  color: var(--f3-green-700);
}

.f3-quick-title {
  min-height: 27px;
  display: grid;
  place-items: center;
  color: #1b251b;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.f3-quick-item[data-icon="water"] .f3-quick-icon,
.f3-row-icon[data-icon="water"] {
  color: var(--f3-blue);
}

.f3-quick-item[data-icon="energy"] .f3-quick-icon,
.f3-row-icon[data-icon="energy"] {
  color: #247a2c;
}

.f3-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 430px);
  padding: 7px 8px calc(7px + var(--f3-safe-bottom));
  background: linear-gradient(180deg, var(--f3-green-800), var(--f3-green-900));
  color: #fff;
  transform: translateX(-50%);
  box-shadow: 0 -8px 22px rgba(15, 42, 20, .22);
}

.f3-nav-item {
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.f3-nav-item svg {
  width: 22px;
  height: 22px;
}

.f3-nav-item.is-active {
  color: #cbe866;
}

.f3-more-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(4, 15, 7, .32);
  opacity: 0;
  transition: opacity .18s ease;
}

.f3-more-sheet {
  position: fixed;
  left: 50%;
  bottom: calc(58px + var(--f3-safe-bottom));
  z-index: 19;
  width: min(100%, 430px);
  max-height: min(68vh, 520px);
  padding: 9px 14px 14px;
  background: var(--f3-paper);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -16px 34px rgba(15, 42, 20, .24);
  transform: translate(-50%, calc(100% + 80px));
  transition: transform .22s ease;
  overflow-y: auto;
}

.f3-more-open .f3-more-backdrop {
  opacity: 1;
}

.f3-more-open .f3-more-sheet {
  transform: translate(-50%, 0);
}

.f3-more-open .f3-more-toggle {
  color: #cbe866;
}

.f3-more-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #c7d3bf;
}

.f3-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1px 8px;
}

.f3-more-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8e2d2;
  border-radius: 50%;
  background: #fff;
  color: var(--f3-green-800);
  cursor: pointer;
}

.f3-more-close span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
}

.f3-more-close span::before,
.f3-more-close span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
  background: currentColor;
  border-radius: 2px;
}

.f3-more-close span::before {
  transform: rotate(45deg);
}

.f3-more-close span::after {
  transform: rotate(-45deg);
}

.f3-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.f3-more-grid .f3-quick-item {
  min-height: 68px;
  padding: 8px 4px 7px;
}

.f3-more-grid .f3-quick-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 5px;
}

.f3-more-grid .f3-quick-title {
  min-height: 23px;
  font-size: 10px;
}

.f3-page-header {
  padding: 18px 14px 10px;
}

.f3-page-title {
  margin: 0 0 16px;
  color: var(--f3-green-900);
  font-size: 25px;
  line-height: 1.05;
}

.f3-content {
  padding: 20px 14px 94px;
}

.f3-content :where(p, ul, ol) {
  font-size: 15px;
  line-height: 1.55;
}

.f3-post {
  padding: 13px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 700px) {
  body {
    padding: 18px 0;
  }

  .f3-shell {
    min-height: calc(100vh - 36px);
    border-radius: 22px;
    overflow: hidden;
  }

  .f3-bottom-nav {
    border-radius: 0 0 22px 22px;
  }
}

@media (max-width: 360px) {
  .f3-hero {
    grid-template-columns: 26px 56px 1fr 28px;
    gap: 7px;
  }

  .f3-logo {
    width: 56px;
    height: 56px;
  }

  .f3-brand-kicker {
    font-size: 14px;
  }

  .f3-brand-title {
    font-size: 27px;
  }

  .f3-quick-title {
    font-size: 10px;
  }
}
