/*
 * Plattformweite CleverWerk-Oberfläche.
 * Überträgt die Designsprache der Startseite auf alle Unterseiten.
 */

:root {
  --cw-content-max: 876px;
  --cw-font: Inter, 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --cw-radius-sm: 8px;
  --cw-radius-md: 10px;
  --cw-radius-lg: 12px;
  --cw-radius-xl: 14px;
}

.cw-app {
  background-color: #edf4e5;
  background-image: url('/img/cleverwerk-forest.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.cw-app::before,
.cw-app::after {
  display: none;
}

.site-header {
  position: relative;
  top: auto;
  margin: 0;
  padding: 20px 24px 0;
}

.site-header-inner {
  width: min(876px, 100%);
  min-height: 50px;
  box-sizing: border-box;
  padding: 7px 12px 7px 15px;
  gap: 12px;
  border: 1px solid rgba(46, 125, 50, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 22px rgba(34, 71, 30, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-brand {
  gap: 8px;
  color: #171917;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.site-brand-logo-slot {
  width: 22px;
  height: 22px;
}

.site-nav {
  gap: 11px;
}

.site-nav-link {
  padding: 9px 2px 7px;
  border-radius: 0;
  color: #242824;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: var(--cw-color-accent-dark);
  background: transparent;
}

.site-nav-link.is-active {
  background: transparent;
  border-bottom-width: 1.5px;
}

.site-search-toggle {
  width: 30px;
  height: 30px;
}

.site-search-toggle-icon {
  width: 16px;
  height: 16px;
}

.site-auth {
  gap: 8px;
}

.site-auth-login,
.site-auth-register {
  min-height: 34px;
  box-sizing: border-box;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
}

.site-auth-login {
  background: linear-gradient(180deg, #6cae48, #4e9534);
  box-shadow: 0 3px 9px rgba(59, 122, 40, 0.22);
}

.site-auth-register {
  color: #2b2d2b;
  border-color: #e2e5e0;
  background: #fff;
}

.site-content {
  width: min(876px, calc(100% - 32px));
  max-width: none;
  box-sizing: border-box;
  padding: 0;
}

.site-breadcrumbs {
  padding: 0.75rem 0 0.35rem;
}

.site-breadcrumbs-list {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(57, 82, 52, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 4px 14px rgba(48, 76, 42, 0.07);
  font-size: 0.82rem;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.page-section,
.tools-page {
  padding: 1.25rem 0 2rem;
}

.page-panel,
.tools-page[data-tool-page='1'],
.tools-page-header,
.tools-personal,
.tool-category,
.card {
  border: 1px solid rgba(57, 82, 52, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(48, 76, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-panel,
.tools-page[data-tool-page='1'],
.tools-page-header {
  padding: 2rem;
}

.tools-personal,
.tool-category {
  padding: 1.6rem;
}

h1,
.tools-page-header h1,
.tools-tool-header h1 {
  color: #191b19;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 750;
}

h2,
.cw-section-title,
.search-results-title {
  color: #202320;
}

p,
li,
.page-lead,
.tools-intro,
.tool-card-desc {
  font-size: 1rem;
  line-height: 1.65;
}

.page-lead,
.tools-intro {
  color: #596159;
}

.cw-section-title-secondary,
.tool-category-title,
.search-results-title {
  font-size: 1.35rem;
}

.tool-grid {
  gap: 1rem;
}

.tool-card,
.module-tile {
  border: 1px solid rgba(57, 82, 52, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 17px rgba(48, 76, 42, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tool-card {
  min-height: 15rem;
  padding: 1.4rem;
}

.tool-card-title {
  font-size: 1.1rem;
}

.tool-card-desc {
  font-size: 0.92rem;
}

.tool-category-badge-inner {
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
}

.btn-primary,
.btn-secondary,
.btn-outline,
.tool-open-btn,
.search-page-form button,
.tool-form-actions button,
.tool-form > button[type='submit'] {
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

button[type='submit'] {
  font-family: var(--cw-font);
  font-size: 1rem;
  font-weight: 650;
}

.tool-open-btn {
  min-height: 40px;
}

.site-auth .site-auth-login,
.site-auth .site-auth-register {
  width: auto;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1;
}

.site-search-field input,
.search-page-form input,
.tool-form textarea,
.tool-form select,
.tool-form input[type='number'],
.tool-form input[type='text'],
.tool-form input[type='date'],
.tool-form input[type='datetime-local'],
.tool-form input[type='email'],
.tool-form input[type='password'] {
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-color: rgba(46, 125, 50, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: #202320;
  font-family: var(--cw-font);
  font-size: 1rem;
}

.site-search-field input {
  min-height: 38px;
  padding: 0.55rem 0;
}

.tool-form textarea {
  min-height: 12rem;
}

.tool-form label,
.search-page-form label {
  margin-bottom: 0.6rem;
  color: #424942;
  font-size: 1rem;
}

.tool-result {
  max-width: 100%;
  padding: 1.5rem;
  border-color: rgba(46, 125, 50, 0.1);
  border-radius: 12px;
  background: rgba(247, 251, 244, 0.96);
}

.tool-result h2 {
  font-size: 1.3rem;
}

.tool-result,
.tool-result pre,
.tool-result-html,
.tool-stats li {
  font-size: 1rem;
}

.placeholder-badge,
.status-badge,
.module-badge {
  font-size: 0.82rem;
}

.cw-trust-bar {
  width: min(760px, calc(100% - 32px));
  margin: 1.25rem auto 0.75rem;
  padding: 0;
}

.cw-trust-bar-inner {
  min-height: 52px;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(57, 82, 52, 0.05);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(48, 76, 42, 0.07);
}

.cw-trust-item {
  font-size: 0.88rem;
}

.cw-trust-sep {
  width: 1px;
  height: 1.25rem;
  background: rgba(72, 92, 68, 0.12);
}

.site-footer {
  padding: 0 24px 18px;
}

.site-footer-inner {
  width: min(876px, calc(100% - 0px));
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(57, 82, 52, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(48, 76, 42, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.site-footer-title {
  font-size: 0.95rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.site-footer-links .site-nav-link {
  padding: 6px 2px;
  font-size: 12px;
}

.site-footer-col p,
.site-footer-status p,
.site-footer-legal p {
  margin: 0;
  font-size: 0.75rem;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 125, 50, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(46, 125, 50, 0.08);
  text-align: left;
  font-size: 0.95rem;
}

th {
  color: #2f4d2f;
  background: rgba(239, 246, 232, 0.8);
  font-weight: 650;
}

dialog {
  max-width: min(560px, calc(100% - 32px));
  padding: 1.75rem;
  border: 1px solid rgba(57, 82, 52, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 55px rgba(30, 60, 30, 0.2);
}

dialog::backdrop {
  background: rgba(22, 42, 20, 0.3);
  backdrop-filter: blur(4px);
}

@media (max-width: 767px) {
  .cw-app {
    background-image: url('/img/cleverwerk-forest-1280.jpg');
    background-position: center top;
    background-attachment: scroll;
  }

  .site-header {
    top: auto;
    margin: 0;
    padding: 10px 10px 0;
  }

  .site-header-inner {
    border-radius: 12px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav-link {
    padding: 7px 8px;
    font-size: 12px;
  }

  .page-panel,
  .tools-page[data-tool-page='1'],
  .tools-page-header {
    padding: 1.35rem;
  }

  .cw-trust-bar-inner {
    border-radius: 12px;
  }
}

@media (max-width: 440px) {
  .site-auth {
    display: none;
  }
}
