/*
Theme Name: Freifunk Meschede
Theme URI: https://www.freifunk-meschede.net/
Author: Freifunk Meschede
Description: Schlichter Informationsauftritt mit lokalem Kontakt und Blogbereich.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freifunk-meschede
*/

:root {
  --ffm-magenta: #c52268;
  --ffm-ink: #171717;
  --ffm-muted: #565656;
  --ffm-line: #d8d8d8;
  --ffm-paper: #ffffff;
  --ffm-soft: #f4f4f4;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--ffm-paper);
  color: var(--ffm-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

a {
  color: #a31953;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ffm-magenta);
}

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid var(--ffm-magenta);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  color: var(--ffm-ink);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  max-width: 70ch;
}

.ffm-header-shell {
  border-bottom: 1px solid var(--ffm-line);
  background: #fff;
}

.ffm-header {
  box-sizing: border-box;
  display: flex;
  width: min(100% - 2rem, 1120px);
  min-height: 4.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ffm-brand {
  display: block;
}

.ffm-site-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.ffm-site-title a {
  color: var(--ffm-ink);
  text-decoration: none;
}

.ffm-nav {
  font-size: 0.98rem;
}

.ffm-nav .wp-block-navigation__container {
  gap: 1.15rem;
}

.ffm-nav a {
  color: var(--ffm-ink);
  text-decoration: none;
}

.ffm-nav a:hover,
.ffm-nav .current-menu-item > a {
  color: var(--ffm-magenta);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.ffm-hero {
  box-sizing: border-box;
  padding: clamp(3rem, 7vw, 5.5rem) 1rem;
  background: var(--ffm-magenta);
  color: #fff;
}

.ffm-hero h1 {
  max-width: none;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.1rem, 6.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
}

.ffm-container {
  box-sizing: border-box;
  width: min(100% - 2rem, 920px);
  margin-right: auto;
  margin-left: auto;
}

/* Break the constrained post-content column for the historic full-width bands. */
.ffm-main > .wp-block-post-content {
  width: 100%;
  max-width: none;
}

.ffm-main .alignfull {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
}

.ffm-router {
  width: min(96vw, 600px);
  margin: 3.5rem auto 2rem;
}

.ffm-router img {
  display: block;
  width: 100%;
  height: auto;
}

.ffm-section {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
}

.ffm-intro h2,
.ffm-section h2 {
  margin-top: 0;
}

.ffm-intro p,
.ffm-section p {
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
}

.ffm-status {
  padding-top: 0;
}

.ffm-status h2 {
  margin-bottom: 0.6rem;
}

.ffm-blog-teaser {
  background: var(--ffm-soft);
}

.ffm-blog-teaser .wp-block-latest-posts {
  padding-left: 1.25rem;
}

.ffm-blog-teaser .wp-block-latest-posts li {
  margin-bottom: 1rem;
}

.ffm-contact {
  border-top: 1px solid var(--ffm-line);
}

.ffm-contact p {
  margin-top: 0.35rem;
}

.ffm-page-content,
.ffm-post {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.ffm-page-content .wp-block-post-title,
.ffm-post .wp-block-post-title {
  margin-bottom: 1.5rem;
}

.ffm-post-meta {
  color: var(--ffm-muted);
  font-size: 0.92rem;
}

.ffm-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ffm-line);
}

.ffm-comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ffm-line);
}

.ffm-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--ffm-line);
  background: var(--ffm-soft);
  font-size: 0.98rem;
}

.ffm-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.ffm-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 700px) {
  .ffm-header {
    padding: 0.75rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .ffm-nav .wp-block-navigation__container {
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
  }

  .ffm-hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .ffm-footer__inner {
    flex-direction: column;
  }
}
