/* ============================================
   TinyFergieCMS - Frontend Styles
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4a6fa5;
  --primary-dark: #3a5a8a;
  --accent: #e07b39;
  --text: #333;
  --text-light: #666;
  --bg: #fafafa;
  --white: #fff;
  --white-rgb: 255, 255, 255;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 6px;
}

html {
  overflow-y: scroll;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.container:has(> .page-wide) {
  max-width: 1200px;
}

.container:has(> .page-full) {
  max-width: none;
}

.header-wide .container {
  max-width: 1200px;
}

.header-full .container {
  max-width: none;
}

/* Header */
/* Admin Bar */
.admin-bar {
  display: flex;
  align-items: center;
  background: #333842;
  padding: 7px 20px;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  overflow-x: auto;
  gap: 12px;
}

.admin-bar-logo {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.admin-bar-btn {
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}

.admin-bar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.admin-bar-btn.active {
  background: var(--primary);
  color: #fff;
}

.admin-bar-separator {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.admin-bar-btn-logout {
  color: rgba(255, 255, 255, 0.55);
}

.admin-bar-btn-logout:hover {
  background: rgba(220, 53, 69, 0.25);
  color: #ff6b7a;
}

.site-header {
  background: rgba(
    var(--white-rgb),
    calc(1 - var(--header-transparency, 0) / 100)
  );
  border-bottom: var(--header-border, 2px) solid var(--primary);
  padding: var(--header-padding, 20px) 0;
  box-shadow: var(--shadow);
}

.site-header.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* When overlay header is active, content starts at the very top (behind header) */
.site-header.header-overlay + .site-content {
  padding-top: 0;
}

/* Header Grid Layout */
.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

/* 2-column layouts: hide empty column, give auto to smaller side */
.header-grid.hcols-left-right {
  grid-template-columns: auto 1fr;
}
.header-grid.hcols-left-right .header-center {
  display: none;
}

.header-grid.hcols-left-center {
  grid-template-columns: auto 1fr;
}
.header-grid.hcols-left-center .header-right {
  display: none;
}

.header-grid.hcols-center-right {
  grid-template-columns: 1fr auto;
}
.header-grid.hcols-center-right .header-left {
  display: none;
}

/* 1-column layout: everything in one slot */
.header-grid.hcols-left,
.header-grid.hcols-center,
.header-grid.hcols-right {
  grid-template-columns: 1fr;
}

.header-grid.hcols-left .header-center,
.header-grid.hcols-left .header-right,
.header-grid.hcols-center .header-left,
.header-grid.hcols-center .header-right,
.header-grid.hcols-right .header-left,
.header-grid.hcols-right .header-center {
  display: none;
}

.header-el {
  display: flex;
  align-items: center;
}

.header-nav-wrap {
  position: relative;
}

.site-title {
  font-size: 1.6rem;
  margin: 0;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--primary);
}

.site-logo {
  max-height: var(--logo-height, 60px);
  width: auto;
  display: block;
}

/* Frontend Search */
.frontend-search {
  position: relative;
  display: flex;
  align-items: center;
}

/* Toggle button (magnifying glass icon) */
.search-toggle {
  border: none;
  background: transparent;
  padding: 6px 8px;
  cursor: pointer;
  font-size: var(--nav-font-size, 1rem);
  display: flex;
  align-items: center;
  line-height: 1;
  border-radius: var(--radius);
  transition: background 0.2s;
  color: var(--text);
}

.search-toggle:hover {
  background: var(--border);
}

/* Hide toggle when search is open */
.frontend-search.search-open .search-toggle {
  display: none;
}

/* Search form: hidden by default */
.search-form {
  display: none;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

/* Show the search form when open */
.frontend-search.search-open .search-form {
  display: flex;
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

.search-form input[type="text"] {
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  width: 180px;
  color: var(--text);
}

.search-form input[type="text"]::placeholder {
  color: var(--text-light);
}

.search-submit {
  border: none;
  background: transparent;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: background 0.2s;
  line-height: 1;
}

.search-submit:hover {
  background: var(--border);
}

/* Search Dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  z-index: 1000;
}

.search-dropdown-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: var(--bg);
  text-decoration: none;
}

.search-dropdown-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.search-dropdown-excerpt {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-dropdown-empty {
  padding: 14px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Search Results Page */
.search-results-page h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.search-count {
  color: var(--text-light);
  margin-bottom: 20px;
}

.search-results-page .page-card {
  border-left: 3px solid var(--primary);
}

.search-results-page .page-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.site-nav a {
  display: inline-block;
  padding: 5px 12px;
  font-size: var(--nav-font-size, 0.9rem);
  font-weight: var(--nav-font-weight, normal);
  transition: color 0.2s;
  color: var(--text);
}

.site-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Submenu / Dropdown */
.site-nav li.has-submenu {
  position: relative;
}

.site-nav li.has-submenu > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.submenu-arrow {
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.2s;
}

.site-nav li.has-submenu:hover .submenu-arrow,
.site-nav li.has-submenu:focus-within .submenu-arrow {
  transform: rotate(180deg);
}

.site-nav ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 200;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
  margin-top: 2px;
}

.site-nav li.has-submenu:hover > ul.submenu,
.site-nav li.has-submenu:focus-within > ul.submenu {
  display: flex;
}

.site-nav ul.submenu li {
  width: 100%;
}

.site-nav ul.submenu a {
  display: block;
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 0.88rem;
  white-space: nowrap;
  margin: 2px 4px;
}

.site-nav ul.submenu a:hover {
  color: var(--accent);
}

/* Page wrapper – contains header + content + footer, admin bar stays outside */
.page-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Content */
.site-content {
  padding: 40px 0;
  flex: 1;
}

.welcome h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

/* Page List (Homepage) */
.page-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

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

.page-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.page-card h3 a {
  color: var(--text);
}

.page-card h3 a:hover {
  color: var(--primary);
}

.page-card-date {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  white-space: nowrap;
}

.page-excerpt {
  color: var(--text-light);
  margin-bottom: 12px;
}

.read-more {
  font-weight: 600;
  color: var(--accent);
}

.read-more:hover {
  color: var(--primary);
}

/* Pagination (Homepage) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-btn,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}

.pagination-btn:hover,
.pagination-page:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-btn--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.pagination-page--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  cursor: default;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 36px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Single Page */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-header h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin: 0;
}

.page-single h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.page-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.8;
  font-size: 1.05rem;
  overflow: auto;
}

/* Page width variants */
.page-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-full {
  max-width: none;
}

/* No background variant */
.page-no-bg .page-content {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.page-meta {
  margin-top: 20px;
  color: var(--text-light);
}

/* Page Content Typography */
.page-content h2,
.page-content h3,
.page-content h4 {
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

.page-content p {
  margin-bottom: 0.8em;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5em;
  margin-bottom: 0.8em;
}

.page-content li {
  margin-bottom: 0.3em;
}

.page-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 1em 0;
  padding: 0.5em 1em;
  background: var(--white);
  color: var(--text-light);
}

.page-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1em;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1em;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.page-content img[style*="float: left"],
.page-content img[style*="float:left"] {
  display: inline;
  margin: 0 16px 12px 0;
}

.page-content img[style*="float: right"],
.page-content img[style*="float:right"] {
  display: inline;
  margin: 0 0 12px 16px;
}

.page-content::after {
  content: "";
  display: table;
  clear: both;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.page-content th,
.page-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.page-content th {
  background: var(--bg);
  font-weight: 600;
}

.page-content iframe {
  max-width: 100%;
  border: none;
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
}

.page-content a:hover {
  color: var(--primary-dark);
}

/* Cards / Kacheln */
.tfe-card {
  display: inline-block;
  vertical-align: top;
  width: 280px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 32px 24px;
  margin: 12px;
  text-align: center;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.tfe-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
  transform: translateY(-2px);
}

.tfe-card-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  line-height: 1.2;
}

.tfe-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--accent);
}

.tfe-card-text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 60px 0;
}

.error-page h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--white);
  border-top: var(--footer-border, 1px) solid var(--border);
  padding: var(--footer-padding, 20px) 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-light);
  font-size: var(--footer-font-size, 0.9rem);
  font-weight: var(--footer-font-weight, normal);
}

.site-footer p a {
  text-decoration: underline;
}

.footer-nav {
  margin-top: 8px;
}

.footer-nav a {
  color: var(--text-light);
  text-decoration: underline;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Social Links */
.social-links {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  vertical-align: middle;
}

.social-links a {
  color: var(--text-light);
  transition:
    color 0.2s,
    transform 0.2s;
  line-height: 0;
  display: inline-flex;
}

.social-links a:hover {
  color: var(--primary);
  transform: scale(1.15);
}

.social-links svg {
  width: 22px;
  height: 22px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.1s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: #ccc;
  color: var(--text);
}

.btn-danger {
  background: #d9534f;
  color: var(--white);
}

.btn-danger:hover {
  background: #c9302c;
  color: var(--white);
}

.btn-small {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert ul {
  margin: 0;
  padding-left: 20px;
}

.alert-error {
  background: #fdf2f2;
  border: 1px solid #e8a0a0;
  color: #8b2020;
}

.alert-success {
  background: #f0faf0;
  border: 1px solid #a0d8a0;
  color: #206820;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

/* Mobile nav toggle (hamburger) – hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

/* Animate to X when open */
.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open {
    position: fixed;
    top: calc(var(--admin-bar-height, 0px) + 16px);
    right: 16px;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--admin-bar-height, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9998;
    padding: 60px 20px 20px;
    overflow-y: auto;
  }

  .site-nav.nav-open {
    display: block;
  }

  .nav-toggle {
    z-index: 9999;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .site-nav a {
    padding: 12px 0;
    display: block;
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .site-nav ul.submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    padding: 0 0 0 8px;
    margin: 2px 0 2px 8px;
    display: flex;
  }

  /* Keep configured header layout on mobile – only allow wrapping within slots */
  .header-left,
  .header-center,
  .header-right {
    flex-wrap: wrap;
  }

  .search-form input[type="text"] {
    width: 140px;
  }

  .frontend-search.search-open .search-form {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .search-dropdown {
    width: 280px;
    right: 0;
  }

  .page-single h2 {
    font-size: 1.5rem;
  }

  .page-content {
    padding: 20px;
  }
}

/* Imprint Page */
.imprint-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--text);
}

.imprint-content h3:first-child {
  margin-top: 0;
}

.imprint-content h4 {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--text);
}

.imprint-content p {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* Privacy Policy (Datenschutzerklaerung) */
.privacy-policy-content h2 {
  margin-bottom: 4px;
}

.privacy-policy-content h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--text);
}

.privacy-policy-content h4 {
  margin-top: 18px;
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--text);
}

.privacy-policy-content p {
  margin-bottom: 8px;
  line-height: 1.8;
}

.privacy-policy-content ul {
  margin-bottom: 12px;
  padding-left: 24px;
}

.privacy-policy-content ul li {
  margin-bottom: 4px;
  line-height: 1.7;
}

.privacy-cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
}

.privacy-cookie-table th,
.privacy-cookie-table td {
  border: 1px solid var(--border, #ddd);
  padding: 8px 12px;
  text-align: left;
  font-size: 0.95rem;
}

.privacy-cookie-table th {
  background: var(--bg-light, #f7f7f7);
  font-weight: 600;
}

/* Contact Form */
.contact-form-wrapper {
  max-width: 600px;
  margin: 24px 0;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form .required {
  color: #d9534f;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-actions {
  margin-top: 8px;
}

/* Honeypot field – invisible to humans, traps bots */
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* Download Links */
.download-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.download-link:hover {
  background: var(--border);
  border-color: var(--primary);
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.tfcms-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  padding: 16px;
}

.tfcms-cc-banner {
  background: var(--white, #fff);
  color: var(--text, #333);
  border-radius: var(--radius, 6px);
  max-width: 480px;
  width: 100%;
  padding: 28px 32px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  border-top: 3px solid var(--primary, #4a6fa5);
}

.tfcms-cc-header h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--primary, #4a6fa5);
  font-weight: 600;
}

.tfcms-cc-body {
  margin-top: 8px;
}

.tfcms-cc-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light, #666);
}

.tfcms-cc-options {
  margin: 18px 0 20px;
}

.tfcms-cc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text, #333);
  cursor: default;
}

.tfcms-cc-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #4a6fa5);
  cursor: default;
}

.tfcms-cc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tfcms-cc-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius, 6px);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.2s,
    transform 0.1s;
}

.tfcms-cc-btn:hover {
  transform: translateY(-1px);
}

.tfcms-cc-btn-accept {
  background: var(--primary, #4a6fa5);
  color: var(--white, #fff);
}

.tfcms-cc-btn-accept:hover {
  background: var(--primary-dark, #3a5a8a);
}

.tfcms-cc-footer {
  margin-top: 16px;
  text-align: center;
}

.tfcms-cc-footer a {
  color: var(--text-light, #666);
  font-size: 0.85rem;
  text-decoration: none;
}

.tfcms-cc-footer a:hover {
  color: var(--primary, #4a6fa5);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .tfcms-cc-banner {
    padding: 20px 18px 18px;
  }

  .tfcms-cc-header h2 {
    font-size: 1.1rem;
  }
}

/* ============================================
   Hero Banner / Slideshow
   ============================================ */

.hero-banner {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  height: var(--hero-h, 60vh);
  width: 100%;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Hero link covers entire slide */
.hero-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Hero text overlay */
.hero-text {
  position: absolute;
  z-index: 2;
  padding: 24px 32px;
  max-width: 70%;
}

.hero-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.hero-subtitle {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

/* ── 9 text positions (v × h) ── */

/* Vertical: top */
.hero-text-top-left {
  top: 0;
  left: 0;
}
.hero-text-top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.hero-text-top-right {
  top: 0;
  right: 0;
  text-align: right;
}

/* Vertical: center */
.hero-text-center-left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.hero-text-center-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.hero-text-center-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  text-align: right;
}

/* Vertical: bottom */
.hero-text-bottom-left {
  bottom: 0;
  left: 0;
}
.hero-text-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.hero-text-bottom-right {
  bottom: 0;
  right: 0;
  text-align: right;
}

/* ── Navigation buttons ── */

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  padding: 12px 14px;
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  line-height: 1;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hero-prev {
  left: 12px;
}
.hero-next {
  right: 12px;
}

/* ── Dot indicators ── */

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot.active,
.hero-dot:hover {
  background: #fff;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero-banner {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    max-height: 75vw;
  }

  /* Float-Bilder neben Text: auf Mobilgeräten untereinander darstellen */
  .page-content img[style*="float: left"],
  .page-content img[style*="float:left"],
  .page-content img[style*="float: right"],
  .page-content img[style*="float:right"] {
    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto 16px auto !important;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-text {
    max-width: 85%;
    padding: 16px 20px;
  }

  .hero-nav {
    padding: 8px 10px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-text {
    max-width: 90%;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-text {
    max-width: 95%;
    padding: 10px 12px;
  }

  .hero-nav {
    padding: 6px 8px;
    font-size: 0.9rem;
  }

  .hero-dots {
    bottom: 8px;
    gap: 6px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }
}

/* ── Link-in-Bio (Frontend) ──────────────────────────── */
.linkinbio {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 0;
}

.linkinbio-profile {
  text-align: center;
  margin-bottom: 28px;
}

.linkinbio-avatar {
  display: inline-block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.linkinbio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linkinbio-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.linkinbio-bio {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.linkinbio-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.linkinbio-link {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
  box-shadow: var(--shadow);
  position: relative;
}

.linkinbio-link:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.linkinbio-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 14px;
}

.linkinbio-link-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linkinbio-link-title {
  flex: 1;
  text-align: center;
}

.linkinbio-link-icon + .linkinbio-link-title {
  text-align: center;
  padding-right: 50px;
}

.linkinbio-empty {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

@media (max-width: 520px) {
  .linkinbio {
    padding: 10px 0;
  }

  .linkinbio-link {
    padding: 12px 14px;
  }

  .linkinbio-avatar {
    width: 80px;
    height: 80px;
  }
}
