/*
Theme Name: Alleato Arena
Theme URI: https://kaster-development.com/
Description: Ein maßgeschneidertes WordPress-Theme, optimiert für Elementor. Modern, klar, mit Fokus auf starke Typografie und flexible Headerbilder.
Author: Kaster Development (Steffen Kaster)
Author URI: mailto:info@kaster-development.development
Version: 1.0.0
License: All Rights Reserved
License URI: 
Copyright: Copyright (c) 2025 Kaster Development. All rights reserved. This theme may not be modified, redistributed, or used without explicit permission.
Text Domain: alleato-arena
Tags: custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, flexible-header, one-column, sticky-post, theme-options, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
*/

/* ==========================================================================
  INHALTSVERZEICHNIS / TABLE OF CONTENTS
  --------------------------------------------------------------------------
  1.  CSS Custom Properties (Design Variables)
  2.  Reset & Base Styles
  3.  Typography
  4.  Layout Components (Header, Navigation, etc.)
  5.  Dropdown Menu
  6.  Header Image & Hero Section
  7.  Subpage Header Styling
  8.  Page Header
  9.  Main Content
  10. Footer
  11. Utility Classes
  12. WordPress Required Classes
  13. Responsive Design
  14. Gutenberg / Block Styles
  15. Navigation Links
  16. Print Styles
  17. Elementor Buttons
  --------------------------------------------------------------------------
  Hinweis: Nichts gelöscht – nur strukturiert und kommentiert für bessere
  Wartbarkeit. Reihenfolge der Selektoren wurde NICHT verändert, um die
  CSS-Spezifität & Cascade nicht zu beeinträchtigen.
  ==========================================================================
*/

/* ==========================================================================
   CSS Custom Properties (Design Variables)
   ========================================================================== */

:root {
  /* -------------------------------------------------- */
  /* Farb-Variablen (Colors)                            */
  /* -------------------------------------------------- */
  --color-background: #ffffff; /* Grund-Hintergrund */
  --color-black: #000000;
  --color-element-bg: #f3d6df; /* Elemente / Flächen */
  --color-header: #4a0712;     /* Primär / Header */
  --color-text: #5a0411;       /* Standard Textfarbe */
  --color-white: #ffffff;

  /* -------------------------------------------------- */
  /* Typografie (Fonts)                                 */
  /* -------------------------------------------------- */
  --font-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-primary: 'Autor', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* -------------------------------------------------- */
  /* Font Sizes (Skalierung & semantische Größen)       */
  /* Hinweis: Reihenfolge logisch von Basis zu Heading  */
  /* -------------------------------------------------- */
  --font-size-base: 16px;      /* Body Basis */
  --font-size-small: 14px;
  --font-size-large: 18px;
  --font-size-subtitle: 20px;
  --font-size-heading: 32px;   /* Generische große Überschrift */
  /* -------------------------------------------------- */
  /* Semantische Headings (fluid via clamp)              */
  /* Skalierung orientiert sich an ca. 1280px Desktop    */
  /* und reduziert sanft Richtung Mobile.                */
  /* Anpassung leicht pflegbar nur über Variablen.       */
  /* -------------------------------------------------- */
  --font-size-h1: clamp(2.4rem, 4vw + 1rem, 3.6rem); /* ~38–57px */
  --font-size-h2: clamp(2rem, 3.2vw + 0.9rem, 2.9rem); /* ~32–46px */
  --font-size-h3: clamp(1.65rem, 2.4vw + 0.8rem, 2.35rem); /* ~26–38px */
  --font-size-h4: clamp(1.35rem, 1.8vw + 0.7rem, 1.9rem); /* ~22–30px */
  --font-size-h5: clamp(1.15rem, 1.2vw + 0.6rem, 1.45rem); /* ~18–23px */
  --font-size-h6: clamp(1rem, 0.8vw + 0.55rem, 1.1rem); /* ~16–17.5px */

  /* -------------------------------------------------- */
  /* Spacing Scale (Abstände) – von klein nach groß     */
  /* -------------------------------------------------- */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* -------------------------------------------------- */
  /* Layout / Struktur                                  */
  /* -------------------------------------------------- */
  --container-max-width: 1152px;
  --header-height: 80px;
  --border-radius: 4px;

  /* -------------------------------------------------- */
  /* Layering / Z-Index                                 */
  /* -------------------------------------------------- */
  --z-header: 1000;
  --z-overlay: 1100;
  --z-modal: 1200;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

/* Erzwinge Nutzung der Primärschrift auch falls PageBuilder (Elementor) eigene Global Fonts setzt */
body, button, input, select, textarea,
.elementor-widget, .elementor-widget *:not(i):not(svg):not(path),
.elementor-heading-title,
.elementor-button, .wp-block-button__link,
nav, .main-navigation a,
h1, h2, h3, h4, h5, h6,
.site-title, .site-description {
  font-family: var(--font-primary) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Verhindert dass Elementor Globale Typo (z.B. "Primary / Secondary Headline") Systemschrift überschreibt */
.elementor-kit *[class*="elementor-heading-title"],
.elementor-kit h1, .elementor-kit h2, .elementor-kit h3, .elementor-kit h4, .elementor-kit h5, .elementor-kit h6 {
  font-family: var(--font-primary) !important;
}

/* Optional: Formularelemente konsistent */
input, textarea, select { font-family: var(--font-primary) !important; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 100;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

p, ul, ol {
  margin: 0 0 var(--spacing-md) 0;
  font-weight: 100;
}

a {
  color: var(--color-header);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--color-text);
  text-decoration: underline;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background-color: transparent;
  height: var(--header-height);
  transition: all 0.3s ease;
}

/* Adjust header position when WordPress admin bar is present */
.admin-bar .site-header {
  top: 32px;
}

/* Mobile admin bar adjustment */
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header.scrolled {
  background-color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--spacing-md);
}

.site-logo img {
  height: 70px;
  width: auto;
  min-width: 150px;
  transition: filter 0.3s ease;
  /* Make SVG logo white on transparent header */
  filter: invert(1);
}

/* Logo color when header is scrolled */
.site-header.scrolled .site-logo img {
  /* Make SVG logo dark when header has background */
  filter: invert(0.15) sepia(1) saturate(7) hue-rotate(330deg) brightness(0.8);
}

.site-title a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.site-header.scrolled .site-title a {
  color: var(--color-text);
}

.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-sm);
}

.main-navigation a {
  color: var(--color-white) !important;
  font-weight: 100;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Scrolled header navigation styling */
.site-header.scrolled .main-navigation a {
  color: var(--color-text) !important;
}

.site-header.scrolled .main-navigation a:hover,
.site-header.scrolled .main-navigation a:focus {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */

/* Position menu items relative for dropdown positioning */
.main-navigation li {
  position: relative;
}

/* Hide dropdown menus by default */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: var(--color-header);
  min-width: 220px;
  max-width: 300px;
  width: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: var(--z-overlay);
  border-radius: var(--border-radius);
  padding: var(--spacing-xs) 0;
  margin: 0;
  flex-direction: column;
}

.main-navigation ul ul li {
  width: 100%;
  position: relative;
}

/* Submenu links styling */
.main-navigation ul ul a {
  padding: 6px var(--spacing-md);
  color: var(--color-white) !important;
  font-weight: 100;
  text-transform: none;
  letter-spacing: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: auto;
  display: block;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white) !important;
}

/* Remove border from last item */
.main-navigation ul ul li:last-child a {
  border-bottom: none;
}

/* Show dropdown on hover/focus */
.main-navigation li:hover > ul,
.main-navigation li.focus > ul {
  display: flex;
}

/* Dropdown indicator arrow */
.main-navigation .menu-item-has-children > a::after {
  content: '▼';
  font-size: 10px;
  margin-left: var(--spacing-xs);
  transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a::after,
.main-navigation .menu-item-has-children.focus > a::after {
  transform: rotate(180deg);
}

/* Multi-level dropdown positioning */
.main-navigation ul ul ul {
  top: 0;
  left: 100%;
}

/* Scrolled header dropdown styling */
.site-header.scrolled .main-navigation ul ul {
  background-color: var(--color-white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.site-header.scrolled .main-navigation ul ul a {
  color: var(--color-text) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .main-navigation ul ul a:hover,
.site-header.scrolled .main-navigation ul ul a:focus {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-text) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--color-white);
  cursor: pointer;
  padding: var(--spacing-xs);
  margin-left: auto;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.menu-toggle:focus,
.menu-toggle:hover,
.menu-toggle:active {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid var(--color-white) !important;
  outline: none !important;
  box-shadow: none !important;
}

.site-header.scrolled .menu-toggle:focus,
.site-header.scrolled .menu-toggle:hover,
.site-header.scrolled .menu-toggle:active {
  background-color: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid var(--color-header) !important;
  outline: none !important;
  box-shadow: none !important;
}

.site-header.scrolled .menu-toggle {
  color: var(--color-text);
}

.menu-toggle-icon {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  justify-content: space-between;
}

.menu-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.site-header.scrolled .menu-toggle-icon span {
  background-color: var(--color-text);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Header Image & Hero Section
   ========================================================================== */

.header-image-container {
  position: relative;
  height: 87.5vh;
  min-height: 500px;
  max-height: 900px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Adjust header image when admin bar is present */
.admin-bar .header-image-container {
  height: calc(87.5vh - 32px);
  max-height: calc(900px - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .header-image-container {
    height: calc(87.5vh - 46px);
    max-height: calc(900px - 46px);
  }
}

.header-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* No overlay for front page */
.header-image-container.no-overlay .header-image-overlay {
  display: none;
}

/* Front page header image bottom alignment */
.header-image-container.no-overlay {
  background-position: center bottom;
}

/* Enhanced text shadow for front page without overlay */
.header-image-container.no-overlay .header-title {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
  font-weight: 300; /* Thin weight for base text */
}

.header-image-container.no-overlay .header-title strong,
.header-image-container.no-overlay .header-title b {
  font-weight: 800; /* Extra bold for strong elements */
}

.header-image-container.no-overlay .header-subtitle {
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
  font-weight: 300; /* Thin weight for subtitle */
}

.header-image-container.no-overlay .header-subtitle strong,
.header-image-container.no-overlay .header-subtitle b {
  font-weight: 700; /* Bold for strong elements in subtitle */
}

/* ==========================================================================
   Subpage Header Styling (Pages, Posts, Archives)
   ========================================================================== */

/* Subpage header styling - larger size, no overlay, bottom aligned */
.header-image-container:not(.no-overlay) {
  height: 60vh; /* Larger than half */
  min-height: 350px;
  max-height: 600px;
  background-position: center bottom;
}

/* Adjust subpage header when admin bar is present */
.admin-bar .header-image-container:not(.no-overlay) {
  height: calc(60vh - 16px);
  max-height: calc(600px - 16px);
}

@media screen and (max-width: 782px) {
  .admin-bar .header-image-container:not(.no-overlay) {
    height: calc(60vh - 23px);
    max-height: calc(600px - 23px);
  }
}

/* Remove overlay from subpages */
.header-image-container:not(.no-overlay) .header-image-overlay {
  display: none;
}

/* Subpage header title styling - single line with auto font size */
.header-image-container:not(.no-overlay) .header-title {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
  font-weight: 300;
  font-size: clamp(1.5rem, 6vw, 4rem);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.header-content {
  position: relative;
  text-align: center;
  color: var(--color-white);
  z-index: 10;
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 var(--spacing-md);
}

.header-title {
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  line-height: 0.9;
  width: 100%;
  max-width: none;
}

.header-title.uppercase {
  text-transform: uppercase;
}

.header-title strong,
.header-title b {
  font-weight: 800;
  color: var(--color-white);
}

.header-subtitle {
  font-size: var(--font-size-subtitle);
  font-weight: 100;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  color: var(--color-white);
}

.header-subtitle strong,
.header-subtitle b {
  font-weight: 700;
  color: var(--color-white);
}

/* ==========================================================================
   Page Header (for regular pages)
   ========================================================================== */

.page-header {
  background-color: var(--color-element-bg);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.page-header.has-background-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--color-white);
}

.page-header.has-background-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.page-header.has-background-image .container {
  position: relative;
  z-index: 10;
}

.page-title {
  font-size: var(--font-size-heading);
  margin: 0;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
  padding: var(--spacing-xxl) 0;
}

.content-area {
  margin-bottom: var(--spacing-xxl);
}

.entry-content {
  line-height: 1.7;
}

.entry-content > * {
  margin-bottom: var(--spacing-md);
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: local;
  transform: scaleY(-1);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  /* Zusätzlicher Abstand nach oben, damit der Footer-Hintergrund nicht direkt am Inhalt klebt */
  margin-top: var(--spacing-xl);
  text-align: center;
  position: relative;
  min-height: 200px;
  /* Ensure footer stretches if needed */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flip content back to normal */
.site-footer .container {
  transform: scaleY(-1);
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0; /* entfernt Innenabstand */
}

.site-footer a {
  color: var(--color-white);
}

.site-footer a:hover {
  color: var(--color-element-bg);
}

/* Footer widgets grid */
.footer-widgets {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  margin-top: 75px;
  width: 100%;
}

/* Footer Menü & Social Links ohne Punkte */
.site-footer .footer-widgets ul.menu,
.site-footer .footer-widgets ul.menu li,
.site-footer .footer-widgets .wp-block-social-links,
.site-footer .footer-widgets .wp-block-social-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-widgets ul.menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.site-footer .footer-widgets .wp-block-social-links {
  display: flex;
  gap: 0.6rem;
}

.site-footer .footer-widgets .wp-block-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  color: var(--color-header);
  border: 1px solid var(--color-white);
  border-radius: 50%;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}

.site-footer .footer-widgets .wp-block-social-links a svg path { fill: currentColor; }

.site-footer .footer-widgets .wp-block-social-links a:hover {
  background: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.footer-widgets.columns-1 { grid-template-columns: 1fr; }
.footer-widgets.columns-2 { grid-template-columns: repeat(2, 1fr); }
.footer-widgets.columns-3 { grid-template-columns: repeat(3, 1fr); }
.footer-widgets.columns-4 { grid-template-columns: repeat(4, 1fr); }
.footer-widgets.columns-5 { grid-template-columns: repeat(5, 1fr); }

/* Break erst bei Tablet */
@media (max-width: 900px) {
  .footer-widgets.columns-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-widgets.columns-4 { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: alles einspaltig (oder 2 wenn vorher 5) */
@media (max-width: 600px) {
  .footer-widgets.columns-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets.columns-4,
  .footer-widgets.columns-3,
  .footer-widgets.columns-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-widgets.columns-5 { grid-template-columns: 1fr; }
}

.footer-widget-col .widget-title {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  font-weight: 600;
}

.site-footer .footer-widget p,
.site-footer .footer-widget li { font-size: 0.95rem; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.sr-only,
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Gutenberg Text Alignment Helpers */
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Ensure nested elements inherit inside blocks */
.has-text-align-left > * { text-align: left; }
.has-text-align-center > * { text-align: center; }
.has-text-align-right > * { text-align: right; }

/* ==========================================================================
   WordPress Required CSS Classes
   ========================================================================== */

/* Alignment classes */
.alignleft {
  float: left;
  margin: 0 var(--spacing-md) var(--spacing-md) 0;
}

.alignright {
  float: right;
  margin: 0 0 var(--spacing-md) var(--spacing-md);
}

.aligncenter {
  display: block;
  margin: 0 auto var(--spacing-md);
  text-align: center;
}

/* Caption classes */
.wp-caption {
  max-width: 100%;
  margin-bottom: var(--spacing-md);
}

.wp-caption img {
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  font-size: var(--font-size-small);
  color: var(--color-text);
  text-align: center;
  padding: var(--spacing-xs) 0;
  margin: 0;
}

/* Gallery caption */
.gallery-caption {
  font-size: var(--font-size-small);
  color: var(--color-text);
  text-align: center;
  margin-top: var(--spacing-xs);
}

/* Sticky post styling */
.sticky {
  border-left: 4px solid var(--color-header);
  padding-left: var(--spacing-md);
  background-color: rgba(243, 214, 223, 0.3);
}

/* Post author styling */
.bypostauthor {
  background-color: rgba(243, 214, 223, 0.5);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --font-size-heading: 28px;
    --font-size-subtitle: 18px;
  }
  
  .header-inner {
    padding: 0 var(--spacing-sm);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-navigation ul {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-header);
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: var(--z-header);
    transition: background-color 0.3s ease;
  }
  
  /* Mobile menu when header is scrolled */
  .site-header.scrolled .main-navigation ul {
    background-color: var(--color-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Adjust mobile menu position for admin bar */
  .admin-bar .main-navigation ul {
    top: calc(var(--header-height) + 32px);
  }
  
  @media screen and (max-width: 782px) {
    .admin-bar .main-navigation ul {
      top: calc(var(--header-height) + 46px);
    }
  }
  
  .main-navigation.toggled ul {
    display: flex;
  }
  
  .main-navigation li {
    width: 100%;
  }
  
  .main-navigation a {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    width: 100%;
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-navigation a:hover,
  .main-navigation a:focus {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Mobile menu links when header is scrolled */
  .site-header.scrolled .main-navigation a {
    color: var(--color-text) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .site-header.scrolled .main-navigation a:hover,
  .site-header.scrolled .main-navigation a:focus {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Mobile dropdown styles */
  .main-navigation ul ul {
    position: static;
    display: none !important;
    background-color: var(--color-header);
    box-shadow: none;
    padding: 0;
    margin-left: var(--spacing-md);
    border-radius: 0;
    flex-direction: column;
  }
  
  .main-navigation ul ul a {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--font-size-small);
  }
  
  /* Mobile dropdown when header is scrolled */
  .site-header.scrolled .main-navigation ul ul a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .main-navigation .menu-item-has-children.focus ul {
    display: block !important;
  }
  
  /* Mobile dropdown arrow */
  .main-navigation .menu-item-has-children > a::after {
    float: right;
    font-size: 12px;
  }
  
  .header-image-container {
    height: 80vh;
    min-height: 400px;
  }
  
  /* Mobile subpage header adjustment */
  .header-image-container:not(.no-overlay) {
    height: 50vh; /* Larger mobile header */
    min-height: 250px;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .site-main {
    padding: var(--spacing-lg) 0;
  }
  
  .page-header {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
    --font-size-heading: 24px;
    --font-size-subtitle: 16px;
    --spacing-sm: 0.75rem;
  /* Leichte Reduktion Headings für engste Breite */
  --font-size-h1: clamp(2.1rem, 8vw + 0.2rem, 3.1rem);
  --font-size-h2: clamp(1.85rem, 6.5vw + 0.25rem, 2.55rem);
  --font-size-h3: clamp(1.5rem, 5.2vw + 0.3rem, 2.05rem);
  --font-size-h4: clamp(1.3rem, 4.2vw + 0.35rem, 1.7rem);
  --font-size-h5: clamp(1.1rem, 3.2vw + 0.4rem, 1.35rem);
  --font-size-h6: clamp(.95rem, 2.2vw + 0.45rem, 1.05rem);
  }
  
  .header-content {
    padding: 0 var(--spacing-sm);
  }
  
  .header-title {
    font-size: clamp(1.8rem, 10vw, 4rem);
    line-height: 0.85;
  }
  
  .header-subtitle {
    font-size: var(--font-size-base);
  }
  
  .header-image-container {
    height: 75vh;
    min-height: 350px;
  }
  
  /* Small mobile subpage header adjustment */
  .header-image-container:not(.no-overlay) {
    height: 45vh; /* Larger small mobile header */
    min-height: 200px;
  }
  
  .site-footer {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .main-navigation a,
  .menu-toggle,
  button,
  input[type="submit"],
  input[type="button"],
  .wp-block-button__link {
    min-height: 44px;
    min-width: 44px;
  }
  
  .main-navigation a {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* Touch device specific styles */
.touch-device .main-navigation a:hover {
  background-color: transparent;
}

.touch-device .main-navigation a:active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hide focus outlines only for mouse/touch interaction, but preserve for keyboard users */
.user-is-touching *:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure keyboard focus is always visible */
*:focus-visible {
  outline: 2px solid var(--color-header);
  outline-offset: 2px;
}

/* Mobile menu body scroll lock */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .header-image-container {
    height: 85vh;
    min-height: 300px;
  }
  
  /* Landscape subpage header adjustment */
  .header-image-container:not(.no-overlay) {
    height: 55vh; /* Larger landscape header */
    min-height: 200px;
  }
  
  .header-content {
    padding: var(--spacing-sm);
  }
}

/* ==========================================================================
   Form Styling (Mobile-Optimized)
   ========================================================================== */

.search-form {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.search-field {
  flex: 1;
  padding: var(--spacing-sm);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  min-height: 44px;
}

.search-submit {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-header);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: var(--font-size-base);
  min-height: 44px;
  min-width: 44px;
  transition: background-color 0.3s ease;
}

.search-submit:hover,
.search-submit:focus {
  background-color: var(--color-text);
}

/* Comments */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  min-height: 44px;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  background-color: var(--color-header);
  color: var(--color-white);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: var(--font-size-base);
  min-height: 44px;
  transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover,
.comment-form input[type="submit"]:focus {
  background-color: var(--color-text);
}

/* ==========================================================================
   WPForms Styling (Theme Integration)
   ========================================================================== */

/* Design Tokens nutzen Root-Variablen (Customizer). Optional lokale Overrides möglich. */
.wpforms-form { --wpforms-field-radius: var(--border-radius); --wpforms-transition: .25s ease; }

/* Grundlayout */
.wpforms-container .wpforms-form, /* Fallback alte Containerstruktur */
.wpforms-form {
  font-family: var(--font-primary) !important;
  color: var(--color-text);
  line-height: 1.4;
}

/* Label Styling */
.wpforms-form .wpforms-field-label,
.wpforms-form .wpforms-field-sublabel {
  font-weight: 600;
  letter-spacing: .25px;
  color: var(--color-text);
}
.wpforms-form .wpforms-field-sublabel {
  font-weight: 400;
  font-size: .8rem;
  opacity: .85;
  margin-top: .15rem;
}

/* Pflichtstern in CI-Farbe */
.wpforms-form .wpforms-required-label { color: var(--color-header); }

/* Textfelder, Selects, Textareas */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="url"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="number"],
.wpforms-form input[type="password"],
.wpforms-form input[type="search"],
.wpforms-form textarea,
.wpforms-form select {
  width: 100%;
  background: var(--wpforms-field-bg);
  border: 1px solid var(--wpforms-field-border);
  border-radius: var(--wpforms-field-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  font-family: var(--font-primary) !important;
  font-weight: 300;
  color: var(--color-text);
  min-height: 48px;
  box-shadow: none !important;
  outline: none;
  transition: border-color var(--wpforms-transition), background-color var(--wpforms-transition), color var(--wpforms-transition);
}

/* Placeholder etwas dezenter */
.wpforms-form ::placeholder { color: rgba(0,0,0,.45); opacity: 1; }

/* Hover & Focus States */
.wpforms-form input[type="text"]:hover,
.wpforms-form input[type="email"]:hover,
.wpforms-form input[type="url"]:hover,
.wpforms-form input[type="tel"]:hover,
.wpforms-form input[type="number"]:hover,
.wpforms-form input[type="password"]:hover,
.wpforms-form input[type="search"]:hover,
.wpforms-form textarea:hover,
.wpforms-form select:hover {
  border-color: var(--wpforms-field-border-hover);
}

.wpforms-form input[type="text"]:focus,
.wpforms-form input[type="email"]:focus,
.wpforms-form input[type="url"]:focus,
.wpforms-form input[type="tel"]:focus,
.wpforms-form input[type="number"]:focus,
.wpforms-form input[type="password"]:focus,
.wpforms-form input[type="search"]:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus {
  border-color: var(--wpforms-field-border-focus);
  box-shadow: 0 0 0 2px rgba(74,7,18,.15);
}

/* Radios & Checkboxes (nutzt moderne accent-color, fallback optional) */
.wpforms-form input[type="radio"],
.wpforms-form input[type="checkbox"] {
  accent-color: var(--color-header);
  width: 18px;
  height: 18px;
  margin-right: .4rem;
  cursor: pointer;
  box-shadow: none !important;
}

.wpforms-form ul li { list-style: none; margin: 0 0 .5rem 0; }
.wpforms-form .wpforms-field-radio li,
.wpforms-form .wpforms-field-checkbox li { display: flex; align-items: center; }

/* Fehlermeldungen */
.wpforms-form .wpforms-error input,
.wpforms-form .wpforms-error textarea,
.wpforms-form .wpforms-error select,
.wpforms-form input.wpforms-error,
.wpforms-form textarea.wpforms-error,
.wpforms-form select.wpforms-error {
  border-color: var(--wpforms-error) !important;
  background: var(--wpforms-error-bg);
  box-shadow: none !important;
}
.wpforms-form label.wpforms-error { color: var(--wpforms-error); font-size: .8rem; font-weight: 500; margin-top: .25rem; }

/* Erfolgsbestätigung */
.wpforms-confirmation-container-full {
  border: 1px solid var(--wpforms-success);
  background: var(--wpforms-success-bg);
  color: var(--wpforms-success);
  border-radius: var(--border-radius);
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 500;
  box-shadow: none;
}

/* Submit Button an CI angelehnt (ähnlich Elementor) */
.wpforms-form button.wpforms-submit,
.wpforms-form .wpforms-submit {
  /* Forciertes Überschreiben von WPForms / Elementor / Browser Defaults */
  background: var(--color-header) !important;
  color: var(--color-white) !important;
  border: 2px solid var(--color-header) !important;
  font-family: var(--font-primary) !important;
  font-weight: 300 !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
  padding: var(--spacing-sm) var(--spacing-lg) !important; /* Angleichen an Elementor / Block Button */
  min-height: 48px !important; /* Einheitliche Höhe */
  border-radius: var(--border-radius) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .55rem !important;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease !important;
  box-shadow: none !important;
}

.wpforms-form button.wpforms-submit:hover,
.wpforms-form button.wpforms-submit:focus,
.wpforms-form .wpforms-submit:hover,
.wpforms-form .wpforms-submit:focus {
  background: var(--color-white) !important;
  color: var(--color-text) !important;
  border-color: var(--color-text) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
}

.wpforms-form button.wpforms-submit:active,
.wpforms-form .wpforms-submit:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,.2); }

.wpforms-form button.wpforms-submit:disabled,
.wpforms-form .wpforms-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner neben Submit Button korrekt einreihen */
.wpforms-submit-container { display: flex; align-items: center; gap: var(--spacing-sm); }
.wpforms-submit-spinner { filter: hue-rotate(10deg) saturate(120%); }

/* Abstand & Rhythmus */
.wpforms-form .wpforms-field { margin-bottom: var(--spacing-lg); }
.wpforms-form .wpforms-field:last-child { margin-bottom: var(--spacing-md); }

/* Radio/Checkbox Gruppe Titel enger an Optionen */
.wpforms-form .wpforms-field-radio .wpforms-field-label,
.wpforms-form .wpforms-field-checkbox .wpforms-field-label { margin-bottom: .5rem; }

/* Fehlende Schatten überall global entfernen */
.wpforms-form * { box-shadow: none !important; }

/* Responsiv kleinere Abstände auf sehr schmalen Geräten */
@media (max-width:480px) {
  .wpforms-form .wpforms-field { margin-bottom: var(--spacing-md); }
  .wpforms-form button.wpforms-submit { padding: var(--spacing-xs) var(--spacing-lg); min-height: 48px; }
}

/* WordPress Blocks Mobile Optimization */
.wp-block-image {
  margin-bottom: var(--spacing-md);
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

.wp-block-button__link {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--color-header);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 100;
  text-align: center;
  min-height: 44px;
  line-height: 1.4;
  transition: background-color 0.3s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background-color: var(--color-text);
  color: var(--color-white);
  text-decoration: none;
}

/* ==========================================================================
   Custom Block Styles
   ========================================================================== */

/* Outlined button style */
.wp-block-button.is-style-alleato-outlined .wp-block-button__link {
  background-color: transparent;
  color: var(--color-header);
  border: 2px solid var(--color-header);
}

.wp-block-button.is-style-alleato-outlined .wp-block-button__link:hover,
.wp-block-button.is-style-alleato-outlined .wp-block-button__link:focus {
  background-color: var(--color-header);
  color: var(--color-white);
}

/* Large button style */
.wp-block-button.is-style-alleato-large .wp-block-button__link {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-large);
  min-height: 56px;
}

/* Accent quote style */
.wp-block-quote.is-style-alleato-accent {
  border-left: 6px solid var(--color-element-bg);
  background-color: rgba(243, 214, 223, 0.1);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
}

.wp-block-quote.is-style-alleato-accent cite {
  color: var(--color-header);
  font-weight: 700;
}

/* Underlined heading style */
.wp-block-heading.is-style-alleato-underlined {
  border-bottom: 3px solid var(--color-header);
  padding-bottom: var(--spacing-xs);
  display: inline-block;
}

/* Card group style */
.wp-block-group.is-style-alleato-card {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.wp-block-group.is-style-alleato-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Navigation Links */
.post-navigation,
.posts-navigation {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid #eee;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: var(--spacing-sm);
  background-color: var(--color-element-bg);
  border-radius: var(--border-radius);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover,
.nav-previous a:focus,
.nav-next a:focus {
  background-color: var(--color-header);
  color: var(--color-white);
}

.nav-next {
  text-align: right;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .header-image-container,
  .menu-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}

/* ========================================================================== */
/* Elementor Buttons (angepasst an Theme-Farben & Variablen)                  */
/* ========================================================================== */

/* Grundstil für alle Elementor Buttons */
.elementor .elementor-button,
.elementor-button {
  background-color: var(--color-header);
  color: var(--color-white);
  border: 2px solid var(--color-header);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 300;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.3;
  padding: var(--spacing-sm) var(--spacing-lg);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.elementor .elementor-button:hover,
.elementor .elementor-button:focus,
.elementor-button:hover,
.elementor-button:focus {
  background-color: var(--color-white);
  border-color: var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Erzwinge Textfarbe auch für inneren Span, falls Elementor diese überschreibt */
.elementor .elementor-button:hover .elementor-button-text,
.elementor .elementor-button:focus .elementor-button-text,
.elementor-button:hover .elementor-button-text,
.elementor-button:focus .elementor-button-text {
  color: var(--color-text) !important;
}

/* Aktiver / gedrückter Zustand etwas zurücknehmen */
.elementor .elementor-button:active,
.elementor-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* Tastaturfokus deutlich sichtbar */
.elementor .elementor-button:focus-visible,
.elementor-button:focus-visible {
  outline: 2px solid var(--color-element-bg);
  outline-offset: 2px;
}

/* Sekundäre Variante (z.B. eigene CSS Klasse "alleato-secondary" im Elementor Widget hinzufügen) */
.elementor .elementor-button.alleato-secondary,
.elementor-button.alleato-secondary {
  background-color: var(--color-element-bg);
  color: var(--color-header);
  border-color: var(--color-element-bg);
}

.elementor .elementor-button.alleato-secondary:hover,
.elementor .elementor-button.alleato-secondary:focus,
.elementor-button.alleato-secondary:hover,
.elementor-button.alleato-secondary:focus {
  background-color: var(--color-header);
  color: var(--color-white);
  border-color: var(--color-header);
}

/* Outline Variante (eigene CSS Klasse "alleato-outlined" im Elementor Widget) */
.elementor .elementor-button.alleato-outlined,
.elementor-button.alleato-outlined {
  background: transparent;
  color: var(--color-header);
  border-color: var(--color-header);
}

.elementor .elementor-button.alleato-outlined:hover,
.elementor .elementor-button.alleato-outlined:focus,
.elementor-button.alleato-outlined:hover,
.elementor-button.alleato-outlined:focus {
  background: var(--color-header);
  color: var(--color-white);
}

/* Ghost / Link Variante (eigene Klasse "alleato-link") */
.elementor .elementor-button.alleato-link,
.elementor-button.alleato-link {
  background: transparent;
  border: none;
  color: var(--color-header);
  padding: 0;
  min-height: unset;
  box-shadow: none;
}

.elementor .elementor-button.alleato-link:hover,
.elementor .elementor-button.alleato-link:focus,
.elementor-button.alleato-link:hover,
.elementor-button.alleato-link:focus {
  color: var(--color-text);
  background: transparent;
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

/* Größen-Anpassungen halten vorhandene Elementor-Klassen intakt, aber Feinschliff */
.elementor .elementor-button.elementor-size-sm { padding: var(--spacing-xs) var(--spacing-md); font-size: .85rem; }
.elementor .elementor-button.elementor-size-md { padding: var(--spacing-sm) var(--spacing-lg); font-size: 1rem; }
.elementor .elementor-button.elementor-size-lg { padding: var(--spacing-md) var(--spacing-xl); font-size: 1.05rem; }
.elementor .elementor-button.elementor-size-xl { padding: var(--spacing-md) calc(var(--spacing-xl) + .5rem); font-size: 1.15rem; }

/* Icon Abstand konsistent */
.elementor .elementor-button .elementor-button-icon { display: inline-flex; align-items: center; }
.elementor .elementor-button .elementor-button-icon + .elementor-button-text { margin-left: .4rem; }

/* Dark Background Variationen – Button invertieren, wenn parent dunkel ist (heuristisch) */
.has-header-background-color .elementor-button.alleato-outlined,
.has-header-background-color .wp-block-button.is-style-alleato-outlined .wp-block-button__link {
  color: var(--color-white);
  border-color: var(--color-white);
}
.has-header-background-color .elementor-button.alleato-outlined:hover,
.has-header-background-color .elementor-button.alleato-outlined:focus {
  background: var(--color-white);
  color: var(--color-header);
}

/* Responsiv kleinere Buttons auf sehr kleinen Screens leicht anpassen */
@media (max-width:480px) {
  .elementor .elementor-button,
  .elementor-button { padding: var(--spacing-xs) var(--spacing-lg); font-size: .95rem; }
  .elementor .elementor-button.elementor-size-lg { padding: var(--spacing-sm) var(--spacing-xl); }
}
