/* Prosodiya – schlichtes Layout. Farben aus dem Kugellicht-Logo. */
:root {
  --green: #8ce600;          /* Kugellicht-Grün (Deko) */
  --green-dark: #3d7a00;     /* Links, Buttons (gut lesbar auf Weiß) */
  --green-deep: #2b5700;
  --mint: #effaee;
  --mint-2: #e2f5df;
  --sky: #d8f8f9;
  --yellow: #f0ef5d;
  --ink: #161511;
  --muted: #5b5f55;
  --line: #dde6d6;
  --bg: #fbfdf8;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(30, 60, 0, .08);
  --wrap: 1140px;
  --content: 820px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-underline-offset: .15em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.6em 0 .5em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol, table, figure, blockquote { margin: 0 0 1.1em; }
hr { border: 0; border-top: 2px dashed var(--line); margin: 2.5em 0; }
blockquote { border-left: 4px solid var(--green); padding: .5em 1.2em; background: var(--mint); border-radius: 0 12px 12px 0; }
table { border-collapse: collapse; width: 100%; }
td, th { border: 1px solid var(--line); padding: .5em .75em; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
th { background: var(--mint); }
figure { margin-left: 0; margin-right: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.content-wrap { padding-block: 32px 64px; }
.is-page .content-wrap, .is-post .content-wrap, .is-list .content-wrap, .is-404 .content-wrap { max-width: var(--content); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Kopfbereich */
.site-header { background: var(--white); border-bottom: 4px solid var(--green); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.45rem; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .82rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.main-nav a:hover { background: var(--mint); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--green); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .brand-text small { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: var(--white);
    border-radius: 999px; padding: 6px 14px; font: 600 1rem var(--font); cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 4px solid var(--green); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { border-radius: 12px; padding: 12px 14px; }
}

/* Inhalte */
.entry-header h1 { margin-top: .4em; }
.entry-meta { color: var(--muted); font-size: .92rem; margin: 0 0 .3em; }
.entry-meta a { color: var(--muted); }
.entry-image img { border-radius: var(--radius); width: 100%; max-height: 460px; object-fit: cover; }
.entry-content > :first-child { margin-top: 0; }
.entry-content img { border-radius: 10px; }
/* App-Store-Badges nie riesig darstellen */
.site-main .entry-content img[src*="google-play-badge"], .site-main .entry-content img[src*="appstore"], .site-main .entry-content img[src*="available_at_amazon"] { max-height: 60px; width: auto; border-radius: 0; }
.site-main { overflow-wrap: anywhere; }
.site-main figure, .site-main iframe, .site-main video { max-width: 100%; }
.post-card > * { min-width: 0; }
.lead { font-size: 1.2rem; color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.align-center { text-align: center; }
.align-center img, img.align-center { display: block; margin-inline: auto; }
.align-left { text-align: left; }
.align-right { text-align: right; }
@media (min-width: 700px) {
  img.align-left { float: left; margin: 0 1.2em 1em 0; max-width: 45%; }
  img.align-right { float: right; margin: 0 0 1em 1.2em; max-width: 45%; }
}
.entry-content::after { content: ""; display: table; clear: both; }

.row { display: flex; flex-wrap: wrap; gap: 24px 32px; margin: 0 0 1.5em; align-items: flex-start; }
.row .row { gap: 12px 16px; margin-bottom: .5em; }
.col { flex: 1 1 100%; min-width: 0; }
.col > :first-child { margin-top: 0; }
@media (min-width: 760px) {
  .col-25 { flex-basis: calc(25% - 32px); } .col-33 { flex-basis: calc(33.333% - 32px); }
  .col-50 { flex-basis: calc(50% - 32px); } .col-66 { flex-basis: calc(66.666% - 32px); }
  .col-75 { flex-basis: calc(75% - 32px); }
}
@media (max-width: 759px) {
  /* Logo- und Bildreihen bleiben auch auf dem Handy nebeneinander */
  .row .row > .col:has(> figure:only-child) { flex-basis: calc(33.333% - 12px); }
  .row .row > .col:has(> figure:only-child) img { max-height: 120px; width: auto; }
}
@media (min-width: 560px) and (max-width: 759px) {
  .col-25 { flex-basis: calc(50% - 16px); }
}

.feature { background: var(--mint); border-radius: var(--radius); padding: 18px 20px; height: 100%; }
.feature h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.feature h3::before { content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--green); margin-right: .45em; box-shadow: inset -2px -2px 0 rgba(0,0,0,.12); }
.feature p:last-child { margin-bottom: 0; }
.card { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); text-align: center; height: 100%; }
.card img { border-radius: 14px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.card h3 { margin: .7em 0 .3em; font-size: 1.1rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
ul.checklist { list-style: none; padding: 0; }
ul.checklist li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15em; height: 1.15em; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23161511' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}

.button, button.button {
  display: inline-block; background: var(--green); color: var(--ink); border: 0; border-radius: 999px;
  padding: .7em 1.5em; font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.button:hover { background: #7fd400; color: var(--ink); }

/* Startseite */
.is-front .content-wrap { padding-top: 0; }
.is-front .entry-content > .row:first-child {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  border-radius: 0 0 32px 32px; padding: 40px clamp(20px, 4vw, 48px); margin-bottom: 48px; align-items: center;
}
.is-front .entry-content > .row:first-child h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 0 0 .2em; }
.is-front .entry-content > .row:first-child h2 { font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0 0 1em; }
.is-front .entry-content > .row:first-child .row { gap: 12px; max-width: 420px; }
.is-front .entry-content > .row:first-child .row img { max-height: 64px; width: auto; border-radius: 0; }
.is-front .entry-content > h2.text-center { margin-top: 2em; }

/* Beitragslisten */
.post-list { display: grid; gap: 20px; margin-top: 8px; }
.post-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-card-image { display: block; background: var(--mint); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 150px; }
.post-card-placeholder { display: block; height: 100%; min-height: 150px; background: radial-gradient(circle at 50% 55%, var(--green) 0 22%, transparent 23%), var(--mint); }
.post-card-body { padding: 18px 20px 18px 0; }
.post-card h2 { font-size: 1.3rem; margin: 0 0 .4em; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--green-dark); text-decoration: underline; }
.post-card p { margin-bottom: .6em; }
.read-more { font-weight: 700; }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; gap: 0; }
  .post-card-image img, .post-card-placeholder { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card-body { padding: 16px 18px; }
}
.latest-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 1em 0 1.5em; }
.post-card-small { grid-template-columns: 1fr; gap: 0; }
.post-card-small .post-card-image img, .post-card-small .post-card-placeholder { aspect-ratio: 16 / 10; min-height: 0; }
.post-card-small .post-card-body { padding: 14px 16px 16px; }
.post-card-small h3 { font-size: 1.05rem; margin: 0; }
.pagination { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination a { min-width: 44px; text-align: center; padding: 8px 12px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; }
.pagination a[aria-current="page"] { background: var(--green); color: var(--ink); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; border-top: 2px dashed var(--line); padding-top: 24px; }
.post-nav a { text-decoration: none; font-weight: 600; }
.post-nav span { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.post-nav-newer { text-align: right; }

/* Kontakt */
.contact-box { background: var(--mint); border-radius: var(--radius); padding: clamp(18px, 4vw, 32px); }
.contact-form { display: grid; gap: 14px; margin-top: 1em; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: var(--white); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green-dark); outline: none; }
.form-hint { margin: 0; min-height: 1.2em; color: var(--green-deep); font-weight: 600; }
.contact-form .button { justify-self: start; }

/* Fußbereich */
.site-footer { background: var(--ink); color: #e9efe3; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; justify-content: space-between; padding-block: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { font-size: 1.2rem; color: var(--green); }
.site-footer a { color: #e9efe3; }
.site-footer a:hover { color: var(--green); }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }
.copyright { width: 100%; margin: 0; font-size: .85rem; color: #a9b3a0; }

/* ---------------------------------------------------------------- Handy */
@media (max-width: 759px) {
  .content-wrap { padding-block: 20px 48px; }
  h1 { font-size: 1.75rem; }
  .entry-header h1 { margin-top: .2em; }
  h2 { margin-top: 1.3em; }

  /* Mehrere Bilder in einer Spalte (Screenshots, Logos) als kompaktes Raster */
  .col:has(> figure + figure) { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
  .col:has(> figure + figure) > * { flex-basis: 100%; }
  .col:has(> figure + figure) > figure { flex: 0 1 calc(50% - 8px); margin: 0; text-align: center; }
  .col:has(> figure + figure) > figure img { max-height: 150px; width: auto; margin-inline: auto; }
  figure.align-left, figure.align-right { text-align: center; }
  figure.align-left img, figure.align-right img { margin-inline: auto; }
  .col > figure:only-child img, .col > figure img { max-height: 340px; width: auto; }

  /* Team-Karten: Foto links, Text rechts */
  .card { display: grid; grid-template-columns: 88px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; padding: 12px; }
  .card img { grid-row: span 2; width: 88px; border-radius: 12px; }
  .card h3 { margin: 0; align-self: end; }
  .card p { align-self: start; font-size: .9rem; }

  /* Lange zentrierte Texte sind auf dem Handy schwer lesbar */
  .entry-content p.text-center { text-align: left; }
  .entry-content h3.text-center { font-size: 1.1rem; text-align: left; }

  /* Startseite: Hero kompakter */
  .is-front .entry-content > .row:first-child { padding: 28px 20px 24px; margin-bottom: 32px; border-radius: 0 0 24px 24px; gap: 16px; }
  .is-front .entry-content > .row:first-child h2 { margin-bottom: .6em; }
  .is-front .entry-content > .row:first-child > .col > figure img { max-height: 260px; }

  /* Beitragsliste: Auszüge kürzen */
  .post-card-body > p:not(.entry-meta) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .post-card-image img { max-height: 200px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-newer { text-align: left; }

  .footer-inner { padding-block: 28px; }
}

@media print {
  .site-header, .site-footer, .post-nav, .contact-form { display: none; }
}
