.site-footer{border-top:1px solid var(--line);background:#fff}.footer-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr 1.3fr;gap:30px;padding:34px 0;font-size:.84rem}.footer-logo{text-transform:uppercase;letter-spacing:.13em}.footer-logo strong{display:block;font-size:1.1rem;letter-spacing:.28em}.footer-links{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0}.link-button{border:0;background:none;padding:0;color:inherit;cursor:pointer}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr}.footer-links{justify-content:flex-start}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr}}

/* Nach-oben-Button: Größe, Abstand und Farben hier anpassen. */
.back-to-top {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--accent-dark);
  border-radius: 50%;
  background: var(--accent);
  color: #403a32;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.back-to-top[hidden] { display: none !important; }
.back-to-top svg { display: block; pointer-events: none; }
@media (hover: hover) {
  .back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }
}
.back-to-top:focus-visible { outline: 3px solid var(--text-dark); outline-offset: 4px; }
@media (max-width: 560px) {
  .back-to-top {
    right: max(15px, env(safe-area-inset-right, 0px));
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:2500;background:#3f3f3f;color:#f5f5f5;box-shadow:0 -10px 35px rgba(0,0,0,.15)}.cookie-inner{width:min(calc(100% - 32px),1600px);margin:auto;display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;padding:18px 0}.cookie-inner p{margin:.35rem 0 0;font-size:.82rem;color:#ddd}.cookie-inner a{text-decoration:underline}.cookie-actions{display:flex;gap:9px;flex-wrap:wrap}.cookie-actions button,.cookie-dialog-actions button{border:1px solid #aaa;background:transparent;color:inherit;padding:10px 14px;cursor:pointer}.cookie-actions .primary,.cookie-dialog-actions .primary{background:var(--accent);border-color:var(--accent);color:#4d463c}.cookie-modal{position:fixed;inset:0;z-index:2600;background:rgba(0,0,0,.45);display:grid;place-items:center;padding:20px}.cookie-dialog{width:min(92vw,620px);background:#fff;padding:34px;position:relative;box-shadow:var(--shadow)}.cookie-dialog h2{font-size:1.8rem}.cookie-close{position:absolute;right:15px;top:10px;border:0;background:none;font-size:1.8rem;cursor:pointer}.cookie-option{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:18px 0}.cookie-option span{display:flex;flex-direction:column}.cookie-option small{margin-top:4px}.cookie-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.cookie-dialog-actions button{color:#555}
@media(max-width:760px){.cookie-inner{grid-template-columns:1fr}.cookie-actions{justify-content:flex-start}.cookie-actions button{flex:1}.cookie-dialog-actions{flex-direction:column}.cookie-dialog-actions button{width:100%}}

/* Wichtig: Das HTML-Attribut hidden muss auch gegen unsere eigenen display-Regeln gewinnen. */
.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

/* Anpassung an die vorhandenen Blog-Grundregeln. */
.site-footer { padding: 0; color: #6e6e6e; text-align: left; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer strong { color: #4f4f4f; font-weight: 700; }
.site-footer p { margin: 0 0 1.2em; }
.site-footer button { font: inherit; }
.site-footer a:hover, .site-footer .link-button:hover { color: #94794f; }
.back-to-top { background: #d9c6a9; border-color: #b89d74; }
.back-to-top:focus-visible { outline-color: #4f4f4f; }
.cookie-banner strong { color: #f5f5f5; }
.cookie-banner a { color: #f5f5f5; }
.cookie-dialog { color: #6e6e6e; max-height: calc(100dvh - 40px); overflow-y: auto; }
.cookie-dialog strong { color: #4f4f4f; }
.cookie-dialog h2 { color: #4f4f4f; font-weight: 400; line-height: 1.12; margin: 0 0 22px; }
.cookie-close { color: #4f4f4f; }
.cookie-actions .primary, .cookie-dialog-actions .primary { background: #d9c6a9; border-color: #d9c6a9; }

/* Seitliche Abstände wie auf der Fototeam-Hauptseite.
   Explizite Breite verhindert, dass .footer-grid den Blog-Innenabstand aufhebt. */
.site-footer .footer-grid.wrap {
  width: min(calc(100% - 48px), 1600px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
@media (max-width: 900px) {
  .site-footer .footer-grid.wrap {
    width: min(calc(100% - 30px), 1600px);
  }
}
