/* FDDB Redesign — Design Tokens & Base
 * Geteilte Stylesheet-Basis für das Redesign.
 * Eingebunden in: template/fddbmobi/mobile_default.t
 * Quelle der Tokens: docs/redesign/tokens.css
 */

:root {
  /* Brand */
  --fddb-blue: #006495;
  --fddb-blue-dark: #004f76;
  --fddb-blue-hover: #00527a;
  --fddb-blue-50: #eef5fa;
  --fddb-blue-100: #e4eef5;
  --fddb-blue-200: #bbdcf6;
  --fddb-blue-600: #006495;

  /* Neutrals */
  --ink-900: #1a1c1e;
  --ink-700: #4d5e6f;
  --ink-500: #6b7a8a;
  --line-200: #e4eef5;
  --line-300: #dde4eb;
  --bg: #ffffff;
  --bg-soft: #fcfdfe;
  --bg-muted: #f3f6f9;

  /* Accent */
  --accent-orange: #f59e0b;
  --accent-success: #2fa866;

  /* Typography */
  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii & Shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

.fddb {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.fddb * { box-sizing: border-box; }
.fddb a { color: var(--fddb-blue); text-decoration: none; }
.fddb a:hover { text-decoration: underline; }
.fddb button { font: inherit; cursor: pointer; }

.fddb .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: 14px;
  line-height: 1; transition: background .15s, border-color .15s;
}
.fddb .btn-primary { background: var(--fddb-blue); color: #fff; }
.fddb .btn-primary:hover { background: var(--fddb-blue-hover); }
.fddb .btn-outline { background: #fff; color: var(--fddb-blue); border-color: var(--fddb-blue); }
.fddb .btn-outline:hover { background: var(--fddb-blue-50); }
.fddb .btn-ghost { background: transparent; color: var(--ink-900); }

.fddb .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--fddb-blue-50); color: var(--fddb-blue);
  font-size: 12px; font-weight: 600;
}

/* ---- Mobile Header ---- */
.fddb-mobile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-200);
}
.fddb-mobile-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.fddb-mobile-header__brand:hover { text-decoration: none; }
.fddb-mobile-header__logo { height: 36px; width: auto; display: block; }

/* ---- Mobile Tabs ---- */
.fddb-mobile-tabs {
  display: flex;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-200);
  overflow-x: auto;
}
.fddb-mobile-tabs a,
nav.fddb-mobile-tabs :where(a, [role=link]) {
  display: inline-block;
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  background: transparent;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  text-decoration: none;
}
.fddb-mobile-tabs a:hover,
.fddb-mobile-tabs a:focus,
.fddb-mobile-tabs a:active {
  color: var(--fddb-blue);
  background: transparent;
  text-decoration: none;
  box-shadow: none;
}
.fddb-mobile-tabs a.is-active {
  color: var(--fddb-blue);
  border-bottom-color: var(--fddb-blue);
}

/* ---- Mobile Userbar (logged-in footer row) ---- */
.fddb-mobile-userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line-200);
  border-bottom: 1px solid var(--line-200);
  font-size: 13px;
  color: var(--ink-500);
}
.fddb-mobile-userbar a { color: var(--ink-500); }

/* ---- Hero ---- */
.fddb-hero { margin-bottom: 20px; }
.fddb-hero h1 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink-900);
}
.fddb-hero h1 .accent { color: var(--fddb-blue); }
.fddb-hero p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
}

/* ---- Alerts ---- */
.fddb-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-200);
  background: var(--bg-soft);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.fddb-alert::before {
  content: "";
  width: 4px; align-self: stretch; border-radius: 2px;
  background: var(--fddb-blue);
  flex-shrink: 0;
}
.fddb-alert--info::before    { background: var(--fddb-blue); }
.fddb-alert--success::before { background: var(--accent-success); }
.fddb-alert--warning::before { background: var(--accent-orange); }
.fddb-alert--error::before   { background: #c0392b; }
.fddb-alert--info    { background: var(--fddb-blue-50); }
.fddb-alert--success { background: #eaf6ef; }
.fddb-alert--warning { background: #fdf6e3; }
.fddb-alert--error   { background: #fbecea; }

/* ---- Tile Grid ---- */
.fddb-tile-section {
  margin-bottom: 20px;
}
.fddb-tile-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.fddb-tile-section__head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.fddb-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fddb-tile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-200);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.fddb-tile:hover { text-decoration: none; border-color: var(--fddb-blue-200); }
.fddb-tile__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--fddb-blue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.fddb-tile__icon img { width: 24px; height: 24px; }
.fddb-tile__label {
  font-size: 15px; font-weight: 700; color: var(--ink-900);
}

/* ---- Mobile Wrapper ---- */
.fddb-mobile {
  margin: 0;
  padding: 0;
  background: var(--bg);
}
.fddb-mobile-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.fddb-mobile-content {
  flex: 1;
  padding: 16px;
}
@media (min-width: 768px) {
  .fddb-mobile-content { padding: 20px 24px; }
  body.fddb-mobile .fddb-mobile-content { padding: 20px 24px 96px; }
}
@media (min-width: 1024px) {
  .fddb-mobile-content { padding: 24px 32px; }
  body.fddb-mobile .fddb-mobile-content { padding: 24px 32px 96px; }
}
.fddb-mobile-disclaimer {
  margin: 24px 16px 8px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.5;
}
.fddb-mobile-meta {
  margin: 8px 16px;
  color: var(--ink-500);
  font-size: 12px;
}
.fddb-mobile-meta a { color: var(--ink-500); }
.fddb-mobile-meta .sep { color: var(--line-300); margin: 0 6px; }
.fddb-mobile-meta .strong { color: var(--ink-700); font-weight: 600; }
.fddb-mobile-appbadges {
  display: flex; justify-content: center; gap: 12px;
  margin: 16px 0 24px;
}
.fddb-mobile-appbadges img { width: 150px; height: auto; }

/* ---- Shared Footer (übernommen aus de_index.t) ---- */
#footer { width: 100%; margin-top: 64px; }
#footer > .container { padding: 32px 16px; box-sizing: border-box; max-width: 1200px; margin: 0 auto; }
.footer-columns { display: flex; gap: 2rem; padding: 1.5rem 0; }
.footer-col { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin: 0 0 0.3rem 0; color: var(--ink-900); }
.footer-col a { font-size: 0.8rem; color: var(--ink-700); text-decoration: none; }
.footer-col a:hover { color: var(--fddb-blue); }
.footer-apps {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.25rem 0; margin-bottom: 0.5rem;
  background: var(--fddb-blue-100);
  border-radius: 0.75rem;
}
.footer-apps-label { font-size: 0.9rem; font-weight: 600; color: var(--ink-900); }
.footer-apps a { transition: transform 0.2s; display: inline-block; }
.footer-apps a:hover { transform: scale(1.05); }
.footer-apps img { height: 44px; width: auto; border-radius: 6px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0;
}
.footer-bottom .footer-social { padding: 0; margin: 0; list-style: none; display: flex; gap: 0.75rem; }
.footer-bottom .footer-social li { padding: 0; margin: 0; list-style: none; }
.footer-bottom .footer-disclaimer { text-align: right; flex: 1; margin-left: 2rem; color: var(--ink-500); }

@media (max-width: 640px) {
  #footer .container { padding: 0 0.75rem; }
  .footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0; }
  .footer-col h4 { font-size: 0.8rem; }
  .footer-col a { font-size: 0.75rem; }
  .footer-apps { flex-direction: column; gap: 0.5rem; padding: 1rem 0.75rem; text-align: center; }
  .footer-apps-label { font-size: 0.85rem; }
  .footer-apps img { height: 40px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 0.75rem; }
  .footer-bottom .footer-disclaimer { text-align: left; margin-left: 0; }
  .footer-bottom .footer-social { display: flex; gap: 0.75rem; }
}
