/*
Theme Name: Custom Template
Author: Toni Ritter
Author URI: https://www.toni-ritter.de
Description: Ein leichtes, aufgeräumtes WordPress-Theme mit Fokus auf Lesbarkeit und klare Typografie. Ideal für Coaching-, Therapie- und Business-Websites.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: custom-template
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@charset "UTF-8";

/* ===== CSS-Variablen (vereinfacht und konsistent) ===== */
:root {
  /* Brand Colors */
  --brand-primary: var(--color-blue-800);
  --brand-secondary: var(--color-blue-500);
  --brand-accent: var(--color-green-500);
  
  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Greens */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-600: #16a34a;
  --green-800: #166534;
  
  /* Semantic Colors */
  --text-primary: var(--gray-800);
  --text-muted: var(--gray-600);
  --border-light: var(--gray-100);
  --bg-primary: #ffffff;
  --bg-muted: rgba(255,255,255,0.95);
  
  /* Spacing */
  --container-max: 1400px;
  --container-padding: 1.25rem;
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
}

@keyframes bounce {

  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }

  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

/* ===== Reset und Basis ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.sugar {
	font-family: 'More Sugar', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.w-16 {width:4rem;}
.h-8 {height:2rem;}
.py-8 {padding-top: 2rem; padding-bottom: 2rem;}
.gap-4 {gap: 1rem;}
.flex-col {flex-direction: column;}
.flex { display: flex;}

@media (min-width: 768px) {.md\:flex-row {flex-direction: row;}}
.justify-between {justify-content: space-between;}
.items-center {align-items: center;}

/* ===== Layout Container ===== */
.container {
  max-width: var(--container-max);
  padding: 0 var(--container-padding);
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--bg-muted);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.header-info-flex {
	display:flex;
	flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}
	

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-info {
	background-color: var(--color-blue-50);
	padding: 0.5rem 0;
}

.header-main {
	padding: 1rem 0;
}

.header-info svg {
	width:14px;
}

.header-info svg .icon {
	fill: var(--color-blue-500);
}

.header-info span {
	display: inline-flex;
	gap: 10px;
	font-size: 0.875rem;
	color:var(--brand-primary);
}

/* ===== Branding ===== */
.branding {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.branding .title {
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 1.4rem;
  margin: 0;
}

.branding img {
  max-width: 96px;
  border-radius: 50%;
}

.branding .tagline {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  font-family: 'More Sugar', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

.header-inner a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ===== Navigation ===== */
.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav .menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav li {
  list-style-type: none;
  position: relative;
}

.nav li a {
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav li a:hover,
.nav .current_page_item > a {
  color: var(--brand-secondary);
  background: var(--green-50);
}

/* ===== Dropdown Menü ===== */
.nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.75rem;
  z-index: 1000;
  border: 1px solid var(--border-light);
}

.nav li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

.nav .sub-menu a {
  display: block;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  border-radius: calc(var(--border-radius) - 2px);
}

.nav li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 0.85em;
  margin-left: 0.4em;
  transition: transform 0.2s ease;
}

.nav li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ===== Mobile Navigation ===== */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 60;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== Call-to-Action Buttons ===== */
.right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.right .phone a {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.right a.button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.right a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===== Content Styling ===== */
.hero {
  padding: 2rem 0 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.25rem 0 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero h1 span.text-gradient {
	display: block;
    background-image: linear-gradient(to right, #22c55e, #3b82f6);
    color: transparent;
    background-clip: text;
}

.hero p {
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* ===== Grid System ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Cards ===== */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  background: var(--bg-primary);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
  color: var(--brand-primary);
}

/* ===== Utility Classes ===== */
.info-bubble {
  background-color: var(--green-50);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--green-100);
  padding: 1.5rem;
}

.danger-box {
  border-left: 4px solid var(--green-600);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  background: var(--green-50);
}

.backdrop-blur {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  background-color: rgba(255,255,255,0.1);
  color: white;
  text-align: center;
}

.backdrop-blur .title {
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
  min-height: 60px;
}

.group {display:flex; align-items:center;gap:15px;}

.group .age {
    border-radius: 999px;
    color: #fff;
    width: 3rem;
    height: 3rem;
    justify-content: center;
    display: flex;
    align-items: center;
}

.group .title {
	font-size:1.4rem;
}

.bg-blue-500 {background-color: var(--color-blue-500);}
.bg-green-500 {background-color: var(--color-green-500);}
.bg-yellow-500 {background-color: var(--color-yellow-500);}
.bg-purple-500 {background-color: var(--color-purple-500);}
.bg-amber-500 {background-color: var(--color-amber-500);}
.bg-violet-500 {background-color: var(--color-violet-500);}
.bg-teal-500 {background-color: var(--color-teal-500);}
.text-xs {font-size:0.85rem;}
.space-y-4 {gap:1rem;}
.flex-column {flex-direction:column;}
.mt-4 {margin-top:1rem;}

/* ===== Footer ===== */
footer.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  color: rgba(255,255,255,0.8);
  background-color: var(--gray-900);
  font-size: 0.925rem;
}

footer .headline {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

ul.footer-nav {
  padding: 0;
  list-style: none;
}

ul.footer-nav li {
  margin: 0.5rem 0;
}

ul.footer-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

ul.footer-nav a:hover {
  color: var(--brand-primary);
}

footer .impress {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

footer .footer-title {
	font-size: 1.8rem;
    line-height: 2rem;
}

footer .footer-slogan {
	font-size: 0.9rem;
    font-weight: 300;
}

footer .footer-text {
	margin: 0.5rem 0;
    font-size: 0.9rem;
}

footer a, footer a:active {
	color: rgba(255,255,255,0.8);
	text-decoration: none;
}

footer a:hover {
	color: rgba(255,255,255,0.6);
	text-decoration: underline;
}

.flex {
	display: flex;
}

.justify-between {
	justify-content: space-between;
}

footer svg {color: var(--color-gray-300);height:1rem;width:1rem;}

/* ===== Forms ===== */
.wpforms-submit.send-button,
.search-form input[type="submit"] {
  background: var(--brand-primary) !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wpforms-submit.send-button:hover,
.search-form input[type="submit"]:hover {
  background: var(--brand-secondary) !important;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

/* ===== Selection Styling ===== */
::selection {
  background-color: var(--color-blue-100);
  color: var(--gray-900);
}

::-moz-selection {
  background-color: var(--color-blue-100);
  color: var(--gray-900);
}

/* ===== Responsive Design ===== */
@media (min-width: 901px) {
  .nav {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  /* Mobile Header Anpassungen */
  .header-inner {
    align-items: flex-start;
    gap: 0;
  }
  
  .branding .tagline {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Mobile Overlay */
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 45;
  }
  
  #nav-toggle:checked ~ .scrim {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Mobile Navigation */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 350px);
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-light);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 55;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  }
  
  .nav .menu {
    flex-direction: column;
    gap: 0;
  }
  
  .nav .menu li {
    margin: 0.75rem 0;
    width: 100%;
  }
  
  .nav .menu a {
    display: block;
    padding: 1rem;
    width: 100%;
    border-radius: var(--border-radius);
  }
  
  .nav .sub-menu {
    display: block;
    position: static;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-left: 1rem;
    border: none;
  }
  
  .nav .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Mobile Navigation Toggle */
  #nav-toggle:checked ~ .nav {
    transform: translateX(0);
  }
  
  #nav-toggle:checked + .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  #nav-toggle:checked + .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  #nav-toggle:checked + .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* Mobile CTA */
  .right {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .right a.button {
    padding: 1rem 2rem;
    font-size: 1rem;
    text-align: center;
  }
  
  .right .phone a {
    font-size: 0.9rem;
    text-align: center;
  }
  
  /* Prevent scrolling when menu is open */
  html:has(#nav-toggle:checked) {
    overflow: hidden;
  }
}

/* ===== Weitere spezifische Komponenten ===== */
.divider {
  background-image: url('https://huster.toni-ritter.de/wp-content/uploads/2025/08/saegenflo-trenner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 25vh;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.top-criteria {
  text-align: center;
}

.top-criteria .small {
  font-size: 0.875rem;
  display: block;
  color: var(--text-muted);
  font-weight: 400;
}

ul.services {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

ul.services li {
  margin: 0.5rem 0;
  color: var(--text-muted);
}

.iconbox-alt {
  background-color: var(--green-50);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--green-100);
}

.inner-iconbox {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-box .elementor-icon-box-title {
  margin: 0;
  color: var(--brand-primary);
}

.contact-box .elementor-icon-box-icon {
  margin-top: 4px;
}

.contact-box .data {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== WordPress Alignment Classes ===== */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-caption {
  max-width: 100%;
}

/* ===== Performance Optimierungen ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.py-20 {
	padding-top:5rem;
	padding-bottom:5rem;
}

.from-blue-50 {--tw-gradient-from: #eff6ff;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);}
.from-green-50 {--tw-gradient-from: #f0fdf4;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);}
.to-teal-50 {--tw-gradient-to: #f0fdfa;}
.via-violet-50 {--tw-gradient-via: #f5f3ff;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to);}
.bg-gradient-to-br {background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));}
.shadow-2xl {-webkit-box-shadow: 0px 25px 50px -12px rgb(0 0 0 / 0.25);box-shadow: 0px 25px 50px -12px rgb(0 0 0 / 0.25);}

.from-blue-500 {--tw-gradient-from: #2b7fff;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);}
.to-teal-500 {--tw-gradient-to: #00bba7;}
.via-violet-500 {--tw-gradient-via: #8e51ff;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to);}
.bg-gradient-to-r {background-image: linear-gradient(to right, var(--tw-gradient-stops));}

.text-blue-800 {color: var(--color-blue-800);}
.text-green-800 {color: var(--color-green-800);}
.text-teal-700 {color: var(--color-teal-700);}
.border-teal-500 {border-color: var(--color-teal-500);}
.border-2 {border-width: 2px;}

.font-medium {font-weight: 500;}
.py-2 {padding-top: 0.5rem; padding-bottom: 0.5rem;}
.px-4 {padding-left: 1rem; padding-right: 1rem;}
.text-center {text-align:center;}
.p-12 {padding:3rem;}
.p-6 {padding:1.5rem;}
.bg-white {background-color: rgb(255 255 255 / 1)}
.rounded-3xl {border-radius:1.5rem;}
.rounded-2xl {border-radius: 1rem;}
.rounded-md {border-radius: 0.5rem;}
.no-decoration {text-decoration: none;}
.inline-flex {display: inline-flex;}
.max-w-2xl {max-width:42rem;}
.mx-auto {margin-left: auto; margin-right: auto;}
.text-9xl {font-size:8rem;line-height:1;}
.text-transparent {color: transparent;}
.bg-clip-text {-webkit-background-clip: text; background-clip: text;}
.h-3 {height:0.75rem;}
.w-3 {width:0.75rem;}
.animate-bounce {animation: bounce 1s infinite;}
.rounded-full {border-radius:9999px;}
.bg-amber-400 {background-color:#ffb900;}
.bg-violet-400 {background-color:#a684ff;}
.bg-teal-400 {background-color:#00d5be;}
.gap-2 {gap:0.5rem;}
.justify-center {justify-content:center;}
.items-center {align-items:center;}
.mt-4 {margin-top:1rem;}
.m-y-0 {margin-top:0;margin-bottom:0;}
.text-sm {font-size: .875rem;line-height: 1.25rem;}
.wpforms-field-label {font-size: 0.9rem!important;font-weight: 600!important;margin: 0!important;}