/*
Theme Name: Anglerverein Spree-Neiße
Theme URI: https://av-spree-neisse-2020.de
Author: EDV Fachberatung Marcel Schomber
Description: Vereinsseite für den Anglerverein Spree-Neiße e.V. 2020 mit Startseite, Neuigkeiten, Terminen, Gewässern und frei pflegbaren Seitenabschnitten.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: av-spree-neisse
*/

  :root {
    --blau: #1f86e0;
    --blau-dunkel: #0b3d6b;
    --himmel: #e6f3f7;
    --pfirsich: #fde4d3;
    --orange: #f28a1e;
    --text: #1b2733;
    --weiss: #ffffff;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: var(--text); background: var(--weiss); line-height: 1.6; }
  a { color: var(--blau); }

  /* Kopf mit großem Wappen */
  .hero { background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.22) 55%, rgba(230,243,247,.52) 100%), url('assets/hintergrund.jpg') center 40% / cover no-repeat; text-align: center; padding: 28px 16px 56px; position: relative; }
  .nav { margin-top: 30px; }
  .nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
  .nav a { text-shadow: 0 1px 8px rgba(255,255,255,.9); text-decoration: none; color: var(--blau-dunkel); font-weight: 600; padding: 6px 4px; border-bottom: 2px solid transparent; }
  .nav a:hover { border-bottom-color: var(--orange); }
  .wappen { width: min(300px, 62vw); height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.28)); }
  .hero h1 { margin-top: 18px; text-shadow: 0 1px 12px rgba(255,255,255,.7); font-size: clamp(1.7rem, 4.6vw, 2.9rem); color: var(--blau-dunkel); letter-spacing: .5px; }
  .hero p.claim { text-shadow: 0 1px 10px rgba(255,255,255,.85); color: var(--blau-dunkel); font-size: 1.15rem; margin-top: 4px; }
  .hero .btns { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .btn { display: inline-block; text-decoration: none; padding: 12px 26px; border-radius: 999px; font-weight: 700; }
  .btn.primary { background: var(--orange); color: var(--weiss); }
  .btn.secondary { background: var(--weiss); color: var(--blau-dunkel); }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.2); }

  section { padding: 56px 16px; }
  .wrap { max-width: 1060px; margin: 0 auto; }
  h2 { font-size: 1.9rem; color: var(--blau-dunkel); margin-bottom: 8px; }
  h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); border-radius: 2px; margin-top: 8px; }
  .lead { margin: 14px 0 28px; max-width: 70ch; }
  .alt { background: var(--himmel); }
  .grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .card { background: var(--weiss); border-radius: 14px; padding: 22px; box-shadow: 0 4px 16px rgba(11,61,107,.12); border-top: 5px solid var(--blau); }
  .card h3 { color: var(--blau-dunkel); margin-bottom: 6px; }
  .card .meta { color: #5b6b7a; font-size: .9rem; margin-bottom: 8px; }

  /* Termine */
  .termin { display: flex; gap: 16px; align-items: center; background: var(--weiss); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(11,61,107,.1); }
  .datum { min-width: 64px; text-align: center; background: var(--blau); color: var(--weiss); border-radius: 10px; padding: 8px 6px; line-height: 1.15; }
  .datum b { display: block; font-size: 1.5rem; }
  .datum span { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }

  ul.liste { list-style: none; }
  ul.liste li { padding: 10px 0; border-bottom: 1px solid #dbe6ee; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .tag { background: var(--pfirsich); color: #8a4a0a; border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 600; }

  footer { background: var(--blau-dunkel); color: #cfe3f3; padding: 36px 16px; text-align: center; }
  footer a { color: #ffd2a6; }
  .hinweis { font-size: .85rem; opacity: .85; margin-top: 10px; }

  /* ---- Ergänzungen für WordPress ---- */
  .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--weiss); color: var(--blau-dunkel); padding: 10px 16px; border-radius: 8px; }
  a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
  img { max-width: 100%; height: auto; }

  /* Kompakter Kopf auf Unterseiten */
  .kopf { background: linear-gradient(180deg, var(--himmel), var(--pfirsich)); padding: 14px 16px; }
  .kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
  .kopf .marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blau-dunkel); font-weight: 700; font-size: 1.1rem; }
  .kopf .marke img { width: auto; height: 56px; }
  .kopf .nav { margin-top: 0; }
  .kopf .nav ul { justify-content: flex-end; }

  /* Überschriften auf Unterseiten */
  .seitentitel { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--blau-dunkel); margin-bottom: 14px; }
  .seitentitel::after { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); border-radius: 2px; margin-top: 8px; }
  .kartentitel { font-size: 1.17rem; color: var(--blau-dunkel); margin-bottom: 6px; }
  .kartentitel::after { display: none; }
  .card h3 a, .kartentitel a { color: inherit; text-decoration: none; }
  .card h3 a:hover, .kartentitel a:hover { text-decoration: underline; }
  .card .mehr { margin-top: 10px; font-weight: 600; }
  .kartenbild { border-radius: 10px; margin-bottom: 12px; width: 100%; height: auto; display: block; }
  .alle { margin-top: 24px; }
  .termin a { color: var(--blau-dunkel); }
  .zurueck { margin-top: 32px; font-weight: 600; }
  .titelbild { margin: 18px 0; }
  .titelbild img { border-radius: 12px; }
  .bearbeiten { margin-top: 18px; font-size: .9rem; }
  .hinweis-admin { background: var(--pfirsich); border-left: 5px solid var(--orange); padding: 14px 18px; border-radius: 8px; }

  /* Seiteninhalt aus dem Editor */
  .inhalt { max-width: 760px; }
  .inhalt-breit { max-width: none; }
  .inhalt > * + * { margin-top: 1em; }
  .inhalt h2, .inhalt h3, .inhalt h4 { color: var(--blau-dunkel); margin-top: 1.4em; }
  .inhalt h2::after { display: none; }
  .inhalt h2 { font-size: 1.5rem; }
  .inhalt h3 { font-size: 1.2rem; }
  .inhalt ul, .inhalt ol { padding-left: 1.4em; }
  .inhalt li + li { margin-top: .3em; }
  .inhalt img { border-radius: 10px; }
  .inhalt table { border-collapse: collapse; width: 100%; }
  .inhalt th, .inhalt td { border-bottom: 1px solid #dbe6ee; padding: 8px 10px; text-align: left; vertical-align: top; }
  .inhalt .wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 1.2em; }
  .inhalt .wp-block-column { flex: 1 1 230px; min-width: 0; background: var(--weiss); border-radius: 14px; padding: 22px; box-shadow: 0 4px 16px rgba(11,61,107,.12); border-top: 5px solid var(--blau); }
  .inhalt .wp-block-column > * + * { margin-top: .6em; }
  .inhalt .wp-block-column h3 { margin-top: 0; }
  .inhalt .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
  .inhalt .wp-block-button__link { display: inline-block; text-decoration: none; padding: 12px 26px; border-radius: 999px; font-weight: 700; background: var(--orange); color: var(--weiss); }
  .inhalt .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 10px 0; border-bottom: 1px solid #dbe6ee; margin-top: 0; }
  .inhalt .wp-block-file a:not(.wp-block-file__button) { font-weight: 600; }
  .inhalt .wp-block-file__button { background: var(--orange); color: var(--weiss); padding: 6px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; }
  .inhalt .wp-block-image figcaption { font-size: .9rem; color: #5b6b7a; margin-top: 6px; }
  .inhalt .alignleft { float: left; margin: 0 1.2em 1em 0; }
  .inhalt .alignright { float: right; margin: 0 0 1em 1.2em; }
  .inhalt .aligncenter { margin-left: auto; margin-right: auto; display: block; }
  .inhalt input[type="text"], .inhalt input[type="email"], .inhalt input[type="tel"], .inhalt textarea { width: 100%; max-width: 520px; padding: 10px 12px; border: 1px solid #b9cad8; border-radius: 8px; font: inherit; }
  .inhalt input[type="submit"] { background: var(--orange); color: var(--weiss); border: 0; padding: 12px 26px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
  .inhalt::after { content: ""; display: block; clear: both; }

  /* Seitenzahlen */
  .navigation.pagination { margin-top: 28px; }
  .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
  .navigation.pagination a, .navigation.pagination span { padding: 6px 14px; border-radius: 999px; background: var(--himmel); text-decoration: none; font-weight: 600; }
  .navigation.pagination .current { background: var(--blau); color: var(--weiss); }

  /* Fußzeile */
  .fussnav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 6px; }

  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
