/*
 * Rechtsinfo.at — Theme Styles
 * 1:1-Umsetzung des Figma-Designs (Tailwind-Grautöne)
 */

:root {
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--gray-200); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-900);
  background: linear-gradient(to bottom right, var(--gray-100), var(--gray-200), var(--gray-300));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

.ri-serif { font-family: var(--font-serif); }

.ri-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .ri-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .ri-container { padding-left: 2rem; padding-right: 2rem; } }

.ri-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.ri-icon svg { width: 100%; height: 100%; display: block; }

/* ============ Header ============ */
.ri-header {
  background: linear-gradient(to right, var(--gray-800), var(--gray-700));
  color: #fff;
  box-shadow: var(--shadow-xl);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ri-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.ri-brand { display: flex; align-items: center; gap: 0.75rem; }
.ri-brand-kicker { font-size: 0.875rem; color: var(--gray-400); letter-spacing: 0.025em; }
.ri-brand-name { font-size: 1.5rem; font-family: var(--font-serif); letter-spacing: -0.025em; line-height: 1.33; }

.ri-nav { display: none; gap: 0.25rem; }
@media (min-width: 768px) { .ri-nav { display: flex; } }

.ri-nav-link {
  position: relative;
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  color: var(--gray-300);
  transition: color 0.2s;
}
.ri-nav-link:hover { color: #fff; }
.ri-nav-link.is-active {
  color: #fff;
  background: rgb(17 24 39 / 0.5);
}

.ri-burger {
  display: inline-flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}
.ri-burger:hover { background: var(--gray-700); }
@media (min-width: 768px) { .ri-burger { display: none; } }
.ri-burger .ri-icon-close { display: none; }
.ri-header.menu-open .ri-burger .ri-icon-close { display: block; }
.ri-header.menu-open .ri-burger .ri-icon-menu { display: none; }

.ri-mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-600);
  padding: 1rem;
}
.ri-header.menu-open .ri-mobile-nav { display: block; animation: ri-slide-down 0.3s ease-in-out; }
@media (min-width: 768px) { .ri-header.menu-open .ri-mobile-nav { display: none; } }
@keyframes ri-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ri-mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--gray-300);
  transition: background-color 0.2s, color 0.2s;
  margin-bottom: 0.25rem;
}
.ri-mobile-nav a:hover { background: var(--gray-700); color: #fff; }
.ri-mobile-nav a.is-active { background: rgb(17 24 39 / 0.5); color: #fff; }

/* ============ Buttons ============ */
.ri-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  cursor: pointer;
}
.ri-btn .ri-icon { width: 1.25rem; height: 1.25rem; }
.ri-btn .ri-arrow { transition: transform 0.2s; }
.ri-btn:hover .ri-arrow { transform: translateX(0.25rem); }

.ri-btn-light { background: #fff; color: var(--gray-900); box-shadow: var(--shadow-lg); }
.ri-btn-light:hover { background: var(--gray-100); box-shadow: var(--shadow-xl); }

.ri-btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.ri-btn-outline:hover { background: #fff; color: var(--gray-900); }

.ri-btn-dark {
  background: linear-gradient(to right, var(--gray-800), var(--gray-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.ri-btn-dark:hover {
  background: linear-gradient(to right, var(--gray-700), var(--gray-600));
  box-shadow: var(--shadow-xl);
  transform: translateY(-0.25rem);
}

.ri-btn-xl { padding: 1.25rem 2.5rem; font-size: 1.125rem; box-shadow: var(--shadow-xl); }
.ri-btn-xl:hover { box-shadow: var(--shadow-2xl); transform: translateY(-0.25rem); }

/* ============ Hero ============ */
.ri-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--gray-800), var(--gray-700), var(--gray-600));
  color: #fff;
}
.ri-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.2);
}
.ri-hero-inner { position: relative; z-index: 10; padding-top: 6rem; padding-bottom: 6rem; }
.ri-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .ri-hero-grid { grid-template-columns: 1fr 1fr; } }

.ri-hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.ri-hero-title {
  font-size: 3rem;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .ri-hero-title { font-size: 3.75rem; } }
.ri-hero-title .ri-hero-sub { color: var(--gray-300); }

.ri-hero-quote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--gray-400);
  margin-bottom: 2rem;
}
.ri-hero-quote blockquote {
  margin: 0;
  font-size: 1.25rem;
  color: var(--gray-200);
  font-style: italic;
  line-height: 1.625;
}
@media (min-width: 768px) { .ri-hero-quote blockquote { font-size: 1.5rem; } }
.ri-hero-quote cite { display: block; font-style: normal; font-size: 0.875rem; color: var(--gray-400); margin-top: 0.75rem; }

.ri-hero-text { font-size: 1.125rem; color: var(--gray-300); margin-bottom: 2rem; line-height: 1.625; }

.ri-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.ri-hero-media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}
.ri-hero-media img {
  width: 100%;
  border-radius: 1rem;
  transition: transform 0.7s ease-out;
}
.ri-hero-media:hover img { transform: scale(1.05); }
.ri-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(17 24 39 / 0.3), transparent);
  border-radius: 1rem;
  pointer-events: none;
}

/* ============ Sections ============ */
.ri-section { padding-top: 5rem; padding-bottom: 5rem; }

.ri-section-head { text-align: center; margin-bottom: 4rem; }
.ri-section-head h2 {
  font-size: 2.25rem;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.ri-section-head p {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Page header (Schwerpunkte / Kontakt / Datenschutz) */
.ri-page-head {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.ri-page-head h1 {
  font-size: 3rem;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}
.ri-page-head p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}
.ri-page-head .ri-page-head-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(to bottom right, var(--gray-700), var(--gray-600));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ri-page-head .ri-page-head-icon .ri-icon { width: 2rem; height: 2rem; }

/* ============ Cards ============ */
.ri-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .ri-card-grid { grid-template-columns: repeat(3, 1fr); } }

.ri-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.ri-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-0.5rem); }
.ri-card h3 { font-size: 1.25rem; font-weight: 500; color: var(--gray-900); margin-bottom: 0.75rem; }
.ri-card p { color: var(--gray-600); line-height: 1.625; }

.ri-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(to bottom right, var(--gray-700), var(--gray-600));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.5rem;
}
.ri-card-icon .ri-icon { width: 1.75rem; height: 1.75rem; }

/* ============ CTA band (dark) ============ */
.ri-cta {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: linear-gradient(to right, var(--gray-800), var(--gray-700));
  color: #fff;
}
.ri-cta-inner { max-width: 56rem; margin: 0 auto; text-align: center; padding-left: 1rem; padding-right: 1rem; }
.ri-cta h2 { font-size: 2.25rem; font-family: var(--font-serif); font-weight: 400; margin-bottom: 1.5rem; }
.ri-cta p { font-size: 1.25rem; color: var(--gray-300); margin-bottom: 2rem; }

/* ============ Schwerpunkte / Timeline ============ */
.ri-timeline-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.ri-timeline-badge {
  background: linear-gradient(to right, var(--gray-800), var(--gray-700));
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  font-size: 1.5rem;
  font-family: var(--font-serif);
  white-space: nowrap;
}
.ri-timeline-line {
  flex: 1;
  height: 0.25rem;
  background: linear-gradient(to right, var(--gray-700), transparent);
  border-radius: 0.25rem;
}

.ri-founding-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s;
}
.ri-founding-card:hover { box-shadow: var(--shadow-xl); }
.ri-founding-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ri-founding-card h3 .ri-icon { width: 1.75rem; height: 1.75rem; color: var(--gray-700); }
.ri-founding-card p { color: var(--gray-600); }

.ri-sp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .ri-sp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ri-sp-grid { grid-template-columns: repeat(3, 1fr); } }

.ri-sp-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  height: 100%;
  transition: all 0.3s;
}
.ri-sp-card:hover { box-shadow: var(--shadow-2xl); transform: translateY(-0.5rem); }
.ri-sp-card .ri-card-icon { border-radius: 0.75rem; margin-bottom: 1rem; transition: transform 0.2s; }
.ri-sp-card:hover .ri-card-icon { transform: scale(1.1); }
.ri-sp-card h3 { font-size: 1.25rem; font-weight: 500; color: var(--gray-900); margin-bottom: 1rem; }

.ri-sp-details { display: flex; flex-direction: column; gap: 0.5rem; }
.ri-sp-detail { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-600); }
.ri-sp-detail::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gray-400);
  border-radius: 9999px;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

/* Versicherungsrecht highlight panel */
.ri-highlight {
  background: linear-gradient(to bottom right, var(--gray-800), var(--gray-700));
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
}
@media (min-width: 768px) { .ri-highlight { padding: 3rem; } }

.ri-highlight-head { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.ri-highlight-icon {
  width: 4rem;
  height: 4rem;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ri-highlight-icon .ri-icon { width: 2.25rem; height: 2.25rem; }
.ri-highlight-head h3 { font-size: 1.875rem; font-family: var(--font-serif); font-weight: 400; margin-bottom: 0.75rem; }
.ri-highlight-head p { font-size: 1.25rem; color: var(--gray-200); }

.ri-highlight-box {
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.ri-highlight-box h4 { font-size: 1.125rem; font-weight: 500; color: var(--gray-200); margin-bottom: 0.75rem; }
.ri-highlight-box p { color: var(--gray-300); line-height: 1.625; }

.ri-highlight-head a,
.ri-highlight-box a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(255 255 255 / 0.5);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.ri-highlight-head a:hover,
.ri-highlight-box a:hover {
  color: var(--gray-200);
  text-decoration-color: #fff;
}

.ri-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .ri-stats { grid-template-columns: repeat(4, 1fr); } }
.ri-stat { text-align: center; }
.ri-stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.ri-stat-icon .ri-icon { width: 1.75rem; height: 1.75rem; }
.ri-stat-number { font-size: 1.875rem; font-family: var(--font-serif); margin-bottom: 0.5rem; }
.ri-stat-label { font-size: 0.875rem; color: var(--gray-300); }

.ri-highlight-foot { border-top: 1px solid rgb(255 255 255 / 0.2); padding-top: 1.5rem; }
.ri-press-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; transition: color 0.2s; }
.ri-press-link:hover { color: var(--gray-200); }
.ri-press-link .ri-icon { width: 1rem; height: 1rem; transition: transform 0.2s; }
.ri-press-link:hover .ri-icon { transform: translate(0.25rem, -0.25rem); }

/* Schwerpunkt CTA card */
.ri-panel-cta {
  background: #fff;
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}
.ri-panel-cta h2 { font-size: 1.875rem; font-family: var(--font-serif); font-weight: 400; color: var(--gray-900); margin-bottom: 1rem; }
.ri-panel-cta p { font-size: 1.125rem; color: var(--gray-600); margin-bottom: 2rem; max-width: 42rem; margin-left: auto; margin-right: auto; }

/* ============ Kontakt ============ */
.ri-kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}
@media (min-width: 1024px) { .ri-kontakt-grid { grid-template-columns: 1fr 1fr; } }

.ri-form-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ri-form-card h2 { font-size: 1.875rem; font-family: var(--font-serif); font-weight: 400; color: var(--gray-900); margin-bottom: 1.5rem; }

.ri-form { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.ri-form-field label { display: block; color: var(--gray-700); margin-bottom: 0.5rem; font-weight: 500; }
.ri-form-field input,
.ri-form-field select,
.ri-form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-300);
  background: var(--gray-50);
  outline: none;
  transition: all 0.2s;
}
.ri-form-field input:focus,
.ri-form-field select:focus,
.ri-form-field textarea:focus {
  border-color: var(--gray-700);
  box-shadow: 0 0 0 2px var(--gray-200);
}
.ri-form-field--grow { flex: 1; display: flex; flex-direction: column; }
.ri-form-field--grow textarea { flex: 1; min-height: 80px; resize: none; }

.ri-form .ri-btn { width: 100%; }
.ri-form-note { font-size: 0.875rem; color: var(--gray-500); text-align: center; }

.ri-form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.ri-form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.ri-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============ Contact Form 7 (im Kanzlei-Design) ============ */
.ri-cf7 { display: flex; flex-direction: column; flex: 1; }
.ri-cf7 form.wpcf7-form { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.ri-cf7 form.wpcf7-form > p { margin: 0; }
.ri-cf7 label { display: block; color: var(--gray-700); margin-bottom: 0.5rem; font-weight: 500; }
.ri-cf7 .wpcf7-form-control-wrap { display: block; }
.ri-cf7 input[type="text"],
.ri-cf7 input[type="email"],
.ri-cf7 input[type="tel"],
.ri-cf7 input[type="url"],
.ri-cf7 input[type="number"],
.ri-cf7 input[type="date"],
.ri-cf7 select,
.ri-cf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-300);
  background: var(--gray-50);
  outline: none;
  transition: all 0.2s;
}
.ri-cf7 input:focus,
.ri-cf7 select:focus,
.ri-cf7 textarea:focus {
  border-color: var(--gray-700);
  box-shadow: 0 0 0 2px var(--gray-200);
}
.ri-cf7 textarea { min-height: 120px; resize: vertical; }
.ri-cf7 input[type="submit"],
.ri-cf7 button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(to right, var(--gray-800), var(--gray-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.3s;
  border: 0;
}
.ri-cf7 input[type="submit"]:hover,
.ri-cf7 button[type="submit"]:hover {
  background: linear-gradient(to right, var(--gray-700), var(--gray-600));
  box-shadow: var(--shadow-xl);
}
.ri-cf7 .wpcf7-spinner { margin: 0 auto; }
.ri-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #991b1b;
}
.ri-cf7 .wpcf7-response-output {
  margin: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  background: var(--gray-50);
  color: var(--gray-700);
}
.ri-cf7 form.sent .wpcf7-response-output {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.ri-cf7 form.invalid .wpcf7-response-output,
.ri-cf7 form.failed .wpcf7-response-output,
.ri-cf7 form.aborted .wpcf7-response-output {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.ri-info-stack { display: flex; flex-direction: column; gap: 1.5rem; height: 100%; }

.ri-info-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.ri-info-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-0.25rem); }

.ri-info-row { display: flex; align-items: flex-start; gap: 1rem; }
.ri-info-row + .ri-info-row { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.ri-info-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, var(--gray-700), var(--gray-600));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.ri-info-icon--alt { background: linear-gradient(to bottom right, var(--gray-600), var(--gray-500)); }
.ri-info-row h3 { font-size: 1.25rem; font-weight: 500; color: var(--gray-900); margin-bottom: 0.5rem; }
.ri-info-row p { color: var(--gray-600); }
.ri-info-row .ri-note { font-size: 0.875rem; color: var(--gray-500); font-style: italic; margin-top: 0.25rem; }

/* Bankverbindung */
.ri-banking { margin-top: 3rem; }
.ri-banking-card {
  background: linear-gradient(to bottom right, var(--gray-800), var(--gray-700));
  color: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.ri-banking-head { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.ri-banking-head .ri-info-icon { background: rgb(255 255 255 / 0.1); backdrop-filter: blur(4px); }
.ri-banking-head h3 { font-size: 1.5rem; font-family: var(--font-serif); font-weight: 400; }
.ri-banking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .ri-banking-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ri-banking-grid { grid-template-columns: repeat(4, 1fr); } }
.ri-banking-item {
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 1rem;
}
.ri-banking-item .ri-banking-label { display: block; font-size: 0.875rem; color: var(--gray-300); margin-bottom: 0.25rem; }
.ri-banking-item .ri-banking-value { font-size: 1.125rem; }
.ri-banking-item .ri-mono { font-family: var(--font-mono); }
.ri-banking-item .ri-mono-sm { font-family: var(--font-mono); font-size: 0.875rem; }

/* ============ Datenschutz ============ */
.ri-prose-wrap { max-width: 56rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .ri-prose-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }

.ri-prose-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}
@media (min-width: 768px) { .ri-prose-card { padding: 3rem; } }

.ri-prose-intro { color: var(--gray-600); line-height: 1.625; margin-bottom: 2.5rem; }
.ri-prose-intro p { margin-bottom: 1rem; }
.ri-prose-intro p:last-child { margin-bottom: 0; }
.ri-prose-intro a { color: var(--gray-800); text-decoration: underline; transition: color 0.2s; }
.ri-prose-intro a:hover { color: var(--gray-600); }

.ri-ds-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--gray-200); }
.ri-ds-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.ri-ds-section > h2 {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.ri-ds-section > h2 .ri-ds-num { color: var(--gray-400); margin-right: 0.5rem; }
.ri-ds-section p { color: var(--gray-600); line-height: 1.625; margin-bottom: 1rem; }
.ri-ds-section p:last-child { margin-bottom: 0; }
.ri-ds-section a { color: var(--gray-800); text-decoration: underline; transition: color 0.2s; }
.ri-ds-section a:hover { color: var(--gray-600); }

.ri-ds-sub { margin-top: 1.5rem; margin-left: 1rem; padding-left: 1rem; border-left: 2px solid var(--gray-200); }
.ri-ds-sub > h3 { font-size: 1.125rem; font-weight: 500; color: var(--gray-800); margin-bottom: 0.75rem; }
.ri-ds-sub > h3 .ri-ds-num { color: var(--gray-400); margin-right: 0.5rem; }

.ri-ds-box {
  background: var(--gray-50);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
}
.ri-ds-box p { font-size: 0.875rem; margin-bottom: 0.5rem; }
.ri-ds-box p:last-child { margin-bottom: 0; }
.ri-ds-box .ri-ds-key { color: var(--gray-800); }

.ri-ds-contactbox {
  background: var(--gray-50);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}
.ri-ds-contactbox p { margin-bottom: 0.75rem; }
.ri-ds-contactbox p:last-of-type { margin-bottom: 0; }
.ri-ds-contactbox .ri-ds-name { color: var(--gray-800); }
.ri-ds-contact-row { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 0.5rem; }
.ri-ds-contact-row span { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gray-600); }
.ri-ds-contact-row .ri-icon { width: 1rem; height: 1rem; color: var(--gray-400); }

/* ============ Footer ============ */
.ri-footer {
  background: linear-gradient(to right, var(--gray-900), var(--gray-800));
  color: var(--gray-300);
  margin-top: auto;
}
.ri-footer-inner { padding-top: 3rem; padding-bottom: 3rem; }
.ri-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .ri-footer-grid { grid-template-columns: repeat(3, 1fr); } }
.ri-footer h3 { color: #fff; font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }
.ri-footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.ri-footer-contact-row { display: flex; align-items: center; gap: 0.75rem; }
.ri-footer-contact-row .ri-icon { width: 1.25rem; height: 1.25rem; color: var(--gray-400); }
.ri-footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.ri-footer-links a { transition: color 0.2s; }
.ri-footer-links a:hover { color: #fff; }
.ri-footer-about { font-size: 0.875rem; line-height: 1.625; }

.ri-footer-bottom {
  border-top: 1px solid var(--gray-700);
  margin-top: 2rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) { .ri-footer-bottom { flex-direction: row; } }
.ri-footer-bottom p { font-size: 0.875rem; }
.ri-footer-legal { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.ri-footer-legal a { transition: color 0.2s; }
.ri-footer-legal a:hover { color: #fff; }

/* ============ Scroll to top ============ */
.ri-scrolltop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, var(--gray-800), var(--gray-700));
  color: #fff;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
}
.ri-scrolltop.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.ri-scrolltop:hover {
  box-shadow: var(--shadow-xl);
  background: linear-gradient(to bottom right, var(--gray-700), var(--gray-600));
}

/* ============ Reveal animations ============ */
@media (prefers-reduced-motion: no-preference) {
  .ri-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .ri-reveal.is-visible { opacity: 1; transform: translateY(0); }
  .ri-reveal-left { transform: translateX(-30px); }
  .ri-reveal-left.is-visible { transform: translateX(0); }
  .ri-reveal-right { transform: translateX(20px); }
  .ri-reveal-right.is-visible { transform: translateX(0); }
  .ri-reveal-scale { transform: scale(0.95); }
  .ri-reveal-scale.is-visible { transform: scale(1); }
}

/* WP admin bar offset for sticky header */
body.admin-bar .ri-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ri-header { top: 46px; } }

/* Screen reader text (WP a11y) */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
