/*
 Theme Name: Freiwillige Feuerwehr Ludwigsau Tann
 Theme URI: https://example.com/
 Author: ChatGPT
 Author URI: https://example.com/
 Description: Individuelles Theme für die Freiwillige Feuerwehr Ludwigsau Tann, vorbereitet für die Bearbeitung mit Elementor.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: ff-ludwigsau-tann
*/

/* === Basis-Styles === */

:root {
  --color-primary: #b30000;
  --color-primary-dark: #7d0000;
  --color-accent: #3c5059;
  --color-bg: #f5f7f8;
  --color-card: #ffffff;
  --color-border: #dde3e6;
  --color-text: #222222;
  --color-text-muted: #666666;
  --max-width: 1200px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.06);
  --transition-fast: 0.16s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header / Navigation === */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d9e0e4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: flex-end;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  gap: 1rem;
}

.header-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffe0e0, #ff0000 50%, #4a0000 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.brand-text h1 {
  font-size: 1.1rem;
  margin: 0;
}

.brand-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  background: #f0f4f6;
  border-color: #d0dde4;
  color: var(--color-text);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(179, 0, 0, 0.28);
  transition: background var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(125, 0, 0, 0.35);
}

.nav-toggle {
  display: none;
  cursor: pointer;
  border: 1px solid #d1dde4;
  background: #ffffff;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  align-items: center;
  gap: 0.35rem;
}

.nav-toggle span {
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .header-main {
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 0.4rem;
    border-top: 1px solid #e2eaee;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-cta {
    align-self: flex-end;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* === Standard-Container === */

.main-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

/* Elementor-Wrapper neutral lassen, damit Elementor volle Kontrolle hat */
.elementor-page .main-wrapper {
  max-width: none;
  padding: 0;
}

/* === Footer === */

.site-footer {
  background: #e7edf1;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
