/*
Theme Name: Find Das Richtige
Theme URI: https://find-das-richtige.de
Author: Find Das Richtige
Description: Modernes, responsives und Elementor-kompatibles Portal-Theme für Find das Richtige.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: find-das-richtige
License: GPL-2.0-or-later
*/

:root {
  --fdr-red: #be1622;
  --fdr-red-dark: #8f1018;
  --fdr-ink: #111827;
  --fdr-slate: #475569;
  --fdr-muted: #64748b;
  --fdr-line: #e2e8f0;
  --fdr-soft: #f6f7f9;
  --fdr-white: #ffffff;
  --fdr-success: #137a4d;
  --fdr-warning: #a15c00;
  --fdr-danger: #b42318;
  --fdr-radius-sm: 10px;
  --fdr-radius: 16px;
  --fdr-radius-lg: 24px;
  --fdr-shadow: 0 18px 48px rgba(15, 23, 42, .09);
  --fdr-content: 1180px;
  --fdr-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fdr-white);
  color: var(--fdr-ink);
  font-family: var(--fdr-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .fdr-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--fdr-red-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--fdr-red); }
button, input, select, textarea { font: inherit; }
button, [type="button"], [type="submit"], .button { min-height: 44px; }
:focus-visible { outline: 3px solid rgba(190, 22, 34, .35); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; z-index: 100000; top: 12px; left: 12px;
  width: auto; height: auto; padding: 12px 16px; margin: 0;
  clip: auto; background: var(--fdr-white); color: var(--fdr-ink); border-radius: 8px;
  box-shadow: var(--fdr-shadow);
}

.fdr-container { width: min(100% - 40px, var(--fdr-content)); margin-inline: auto; }
.fdr-site-header {
  position: sticky; z-index: 900; top: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.fdr-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.fdr-brand { display: inline-flex; align-items: center; min-width: 0; color: var(--fdr-ink); text-decoration: none; }
.fdr-brand .custom-logo { display: block; width: auto; max-width: min(410px, 52vw); max-height: 76px; object-fit: contain; }
.fdr-brand-fallback { display: grid; line-height: 1; }
.fdr-brand-fallback strong { font-size: clamp(1.35rem, 3vw, 2.1rem); letter-spacing: -.04em; }
.fdr-brand-fallback span { margin-top: .42rem; color: var(--fdr-slate); font-size: .78rem; letter-spacing: .04em; }
.fdr-header-actions { display: flex; align-items: center; gap: 12px; }
.fdr-header-link { color: var(--fdr-ink); font-weight: 700; text-decoration: none; }
.fdr-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .7rem 1.05rem; border: 1px solid var(--fdr-red);
  border-radius: 999px; background: var(--fdr-red); color: var(--fdr-white);
  font-weight: 800; text-decoration: none; box-shadow: 0 9px 24px rgba(190, 22, 34, .18);
}
.fdr-button:hover { background: var(--fdr-red-dark); border-color: var(--fdr-red-dark); color: var(--fdr-white); }
.fdr-fallback-nav { border-top: 1px solid var(--fdr-line); }
.fdr-fallback-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: .55rem 0; list-style: none; }
.fdr-fallback-nav a { display: block; padding: .65rem .8rem; border-radius: 9px; color: var(--fdr-ink); font-weight: 700; text-decoration: none; }
.fdr-fallback-nav a:hover, .fdr-fallback-nav .current-menu-item > a { background: var(--fdr-soft); color: var(--fdr-red-dark); }

.fdr-main { min-height: 60vh; }
.fdr-page-shell { padding-block: clamp(42px, 7vw, 88px); }
.fdr-content { width: min(100%, 840px); }
.fdr-content--wide { width: 100%; }
.fdr-entry-header { margin-bottom: clamp(28px, 5vw, 50px); }
.fdr-kicker { margin: 0 0 .6rem; color: var(--fdr-red-dark); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.fdr-entry-title { margin: 0; color: var(--fdr-ink); font-size: clamp(2rem, 6vw, 4rem); line-height: 1.06; letter-spacing: -.045em; }
.fdr-entry-summary { max-width: 720px; margin: 1rem 0 0; color: var(--fdr-slate); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.fdr-entry-content > *:first-child { margin-top: 0; }
.fdr-entry-content > *:last-child { margin-bottom: 0; }
.fdr-entry-content h2, .fdr-entry-content h3 { color: var(--fdr-ink); line-height: 1.2; letter-spacing: -.025em; }
.fdr-entry-content h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.fdr-entry-content h3 { margin-top: 1.8em; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.fdr-entry-content p, .fdr-entry-content ul, .fdr-entry-content ol { margin-block: 1.15em; }
.fdr-entry-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 5px solid var(--fdr-red); border-radius: 0 var(--fdr-radius) var(--fdr-radius) 0; background: var(--fdr-soft); }
.fdr-entry-content table { width: 100%; border-collapse: collapse; }
.fdr-entry-content th, .fdr-entry-content td { padding: .8rem; border: 1px solid var(--fdr-line); text-align: left; }

.fdr-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fdr-card { overflow: hidden; border: 1px solid var(--fdr-line); border-radius: var(--fdr-radius); background: var(--fdr-white); box-shadow: 0 8px 30px rgba(15, 23, 42, .06); }
.fdr-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fdr-soft); }
.fdr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.fdr-card:hover .fdr-card__media img { transform: scale(1.025); }
.fdr-card__body { padding: 1.2rem; }
.fdr-card__title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.fdr-card__title a { color: var(--fdr-ink); text-decoration: none; }
.fdr-card__title a:hover { color: var(--fdr-red-dark); }
.fdr-card__excerpt { margin: .65rem 0 0; color: var(--fdr-slate); }

.fdr-search-form { display: flex; gap: 10px; max-width: 680px; }
.fdr-search-form label { flex: 1; }
.fdr-search-form input { width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1px solid #cbd5e1; border-radius: 12px; }
.fdr-empty-state { padding: clamp(30px, 7vw, 70px); border: 1px solid var(--fdr-line); border-radius: var(--fdr-radius-lg); background: var(--fdr-soft); text-align: center; }
.fdr-pagination { margin-top: 36px; }
.fdr-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fdr-pagination a, .fdr-pagination span { display: inline-grid; min-width: 44px; min-height: 44px; place-items: center; padding: .45rem; border: 1px solid var(--fdr-line); border-radius: 9px; text-decoration: none; }
.fdr-pagination .current { border-color: var(--fdr-red); background: var(--fdr-red); color: var(--fdr-white); }

.fdr-site-footer { margin-top: clamp(50px, 9vw, 110px); background: #101218; color: #e5e7eb; }
.fdr-footer-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 50px; padding-block: 56px; }
.fdr-footer-brand { margin: 0; color: var(--fdr-white); font-size: 1.35rem; font-weight: 850; }
.fdr-footer-copy { max-width: 520px; color: #aeb7c5; }
.fdr-footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; }
.fdr-footer-menu a { color: #e5e7eb; text-decoration: none; }
.fdr-footer-menu a:hover { color: var(--fdr-white); text-decoration: underline; }
.fdr-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid #2a2f39; color: #9ca3af; font-size: .9rem; }

.elementor-page .fdr-page-shell { padding-block: 0; }
.elementor-page .fdr-content { width: 100%; max-width: none; }
.fdr-elementor-full-width .fdr-container { width: 100%; max-width: none; }

@media (max-width: 900px) {
  .fdr-brand-row { min-height: 78px; }
  .fdr-header-link { display: none; }
  .fdr-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fdr-footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.admin-bar .fdr-site-header { top: 46px; }
  .fdr-container { width: min(100% - 28px, var(--fdr-content)); }
  .fdr-brand-row { gap: 12px; }
  .fdr-brand .custom-logo { max-width: 58vw; max-height: 60px; }
  .fdr-brand-fallback span { display: none; }
  .fdr-button { min-height: 42px; padding: .58rem .8rem; font-size: .86rem; }
  .fdr-card-grid { grid-template-columns: 1fr; }
  .fdr-search-form { flex-direction: column; }
  .fdr-footer-menu { grid-template-columns: 1fr; }
  .fdr-footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
