/* Nürnberg.App · Sandstein-/Burgpalette, abgestimmt auf TechDoc Burgdesign */
:root{
  --ink:#3a2c1e;
  --muted:#66553e;
  --paper:#efe3cb;
  --card:#f8f0de;
  --line:rgba(110,80,40,.38);
  --blue:#9c2b25;
  --red:#7a1f1a;
  --gold:#b8862b;
  --green:#687e59;
}
body{
  color:#2d2418;
  background-color:#efe3cb;
  background-image:repeating-linear-gradient(117deg,rgba(92,65,34,.025) 0,rgba(92,65,34,.025) 1px,transparent 1px,transparent 5px);
}
a{color:#9c2b25}
h1,h2,h3,.brand{font-family:"Cormorant Garamond","Palatino Linotype",Georgia,"Times New Roman",serif}
header{
  background:linear-gradient(180deg,#46361f,#2a1f15);
  border-bottom:3px solid #b8862b;
  box-shadow:0 6px 20px rgba(40,25,10,.24);
  padding:8px clamp(18px,4vw,62px);
}
.brand{color:#fff7e3;letter-spacing:.04em;font-size:1.08rem}
.brand i{color:#d9b86a}
nav a{color:#f3e3bd}
nav a:hover{color:#fff;background:rgba(184,134,43,.2)}
.join,.primary{
  color:#fff7e3;
  background:linear-gradient(180deg,#9c2b25,#7a1f1a);
  border:2px solid #7a1f1a;
  border-radius:6px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
}
.join:hover,.primary:hover{filter:brightness(1.08);box-shadow:0 8px 20px rgba(122,31,26,.2)}
.join{padding:7px 12px}
.hero{
  color:#2a1f15;
  background-color:#d9bf91;
  background-image:radial-gradient(ellipse 68% 130% at 82% 30%,rgba(255,248,225,.42),transparent 74%),linear-gradient(180deg,rgba(255,250,235,.18),rgba(95,61,30,.08)),url("sandstone-wall.svg");
  background-repeat:no-repeat,no-repeat,repeat;
  background-size:auto,auto,480px 156px;
  border-top:1px solid #f7e6c0;
  border-bottom:3px solid #a98550;
  box-shadow:inset 0 9px 16px rgba(79,49,23,.12),inset 0 -4px 8px rgba(79,49,23,.12);
  padding:14px clamp(18px,8vw,120px);
}
.hero-copy{
  display:flow-root;
  max-width:940px;
  padding:12px 18px 14px;
  background:rgba(248,237,213,.91);
  border:1px solid rgba(111,79,43,.28);
  box-shadow:0 2px 12px rgba(75,47,22,.12);
}
.hero h1{color:#2a1f15;font-size:clamp(2.1rem,3.4vw,3rem);line-height:1.02;max-width:1100px;margin:6px 0}
.hero p{color:#4a3a25;font-size:1rem;max-width:850px;margin:0}
.hero-actions{margin-top:18px}
.hero-actions .primary,.hero-actions .secondary{padding:7px 13px}
.hero .eyebrow,.eyebrow{color:#7a1f1a}
.stats{color:#66553e}
.stats b{color:#2a1f15}
.hero .secondary{
  color:#7a1f1a;
  border-color:#9c2b25;
  border-radius:6px;
  background:rgba(248,240,222,.48);
}
.hero .secondary:hover{background:rgba(156,43,37,.08)}
.tabs{border-color:rgba(110,80,40,.3)}
.shell{padding-top:20px}
#karte .section-head{margin:8px 0 12px}
#karte .map-search{margin-bottom:10px}
#heute{margin-top:36px}
.tab{background:#f8f0de;border-color:rgba(110,80,40,.38);color:#3a2c1e}
.tab:hover{border-color:#9c2b25}
.tab.active{background:linear-gradient(180deg,#46361f,#2a1f15);border-color:#b8862b;color:#fff7e3}
.card{background:#f8f0de;border-color:rgba(110,80,40,.3);box-shadow:0 5px 16px rgba(58,44,30,.08)}
.feature{background:linear-gradient(135deg,#fffaf0,#e9d9b5)}
.tag{color:#7a1f1a}
.date{background:#efe0bd;color:#7a1f1a}
.map-overview>.map{grid-column:span 9}
.map-overview>.map-note{grid-column:span 3;align-self:start;padding:15px}
.map-overview>.map-note h3{font-size:1.35rem;line-height:1.1;margin:8px 0}
.map-overview>.map-note p{font-size:.86rem;line-height:1.4;margin:8px 0 12px}
.map-overview>.map-note .primary{font-size:.82rem;padding:6px 10px}
.map-overview.map-results-open>.map-note{display:none}
@media(min-width:761px){.map-layout,.city-map{height:430px;min-height:430px}}
@media(max-width:1000px){.map-overview>.map,.map-overview>.map-note{grid-column:1/-1}}
.boundary-key{display:flex;align-items:center;gap:7px;margin-bottom:12px;font-size:.78rem;color:#f3e3bd}
.boundary-key::before{content:"";width:18px;height:13px;background:#fff5d7;border:2px solid #d7a65d;border-radius:3px}
.map-sidebar{
  align-self:start;
  height:430px;
  min-height:0;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#a98550 #eadbbd;
  background:#f8f0de;
  border-color:rgba(110,80,40,.3);
  border-bottom:1px solid rgba(110,80,40,.3);
  border-bottom-right-radius:10px;
}
.map-sidebar::-webkit-scrollbar{width:7px}
.map-sidebar::-webkit-scrollbar-track{background:#eadbbd}
.map-sidebar::-webkit-scrollbar-thumb{background:#a98550;border-radius:8px}
.map-results{background:rgba(248,240,222,.96);border-color:rgba(110,80,40,.3);box-shadow:0 10px 32px rgba(58,44,30,.18)}
.map-results input,.field input,.field select,.field textarea{border-color:#cdbb94;background:#fffaf0;color:#2d2418}
.map-note{background:linear-gradient(155deg,#46361f,#2a1f15);color:#fff7e3}
.map-note p{color:#e3d1ae}
.newpost{background:#f1e3c4}
.notice{border-left-color:#b8862b;background:#f2e6c8;color:#4a3a25}
footer{background:linear-gradient(180deg,#3a2c1e,#2a1f15);border-top:3px solid #b8862b;color:#f3e3bd}
.crumb,.muted,.hint{color:#66553e}
.number{background:#e9d9b5;color:#7a1f1a}
.later{background:#f1e6c8}
.help-link{display:inline-block;text-decoration:none}
.help-link:hover{border-color:#9c2b25;background:#efe0bd}
.check input{accent-color:#9c2b25}
.steps li{border-color:rgba(110,80,40,.25)}
.community-auth>.community-card{grid-column:span 6}
.community-card h3,.community-compose h3,.community-posts-head h3{margin:7px 0 10px;font-size:1.35rem}
.community-card fieldset{border:0;padding:0;margin:16px 0 0;display:grid;gap:8px}
.community-card fieldset:disabled{opacity:.55}
.community-card fieldset:disabled input,.community-card fieldset:disabled button{cursor:not-allowed}
.community-card label,.community-compose label,.community-comment-form label{font-size:.9rem;font-weight:700;color:#3a2c1e}
.community-card input,.community-compose textarea,.community-comment-form textarea{
  width:100%;border:1px solid #cdbb94;border-radius:8px;padding:10px 12px;background:#fffaf0;color:#2d2418;font:inherit;
}
.community-card fieldset small,.community-form-foot small{color:#66553e;font-size:.82rem}
.community-card .primary{justify-self:start;margin-top:8px}
.community-status.is-setup{background:#f2e6c8;color:#4a3a25}
.community-status.is-error{border-left-color:#9c2b25;background:#f4dfd5;color:#651d19}
.community-status.is-success{border-left-color:#687e59;background:#e8eddc;color:#364b30}
.community-setup{margin:18px 0;background:#f2e6c8}
.community-setup p{margin-bottom:0;color:#4a3a25}
.community-member{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0}
.community-member p{margin:4px 0 0}
.community-quiet{border:1px solid #9c2b25;border-radius:6px;padding:9px 14px;background:transparent;color:#7a1f1a;font-weight:750}
.community-quiet:hover{background:rgba(156,43,37,.08)}
.community-compose{margin:18px 0}
.community-compose form{display:grid;gap:8px}
.community-compose textarea,.community-comment-form textarea{resize:vertical;min-height:110px}
.community-form-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.community-posts-head{margin-top:32px}
.community-posts{display:grid;gap:14px}
.community-post{padding:20px}
.community-post-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:#3a2c1e}
.community-post-meta time{font-size:.8rem;color:#66553e}
.community-post-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:15px 0 18px}
.community-comments{border-top:1px solid rgba(110,80,40,.25);padding-top:7px}
.community-comment{padding:10px 12px;margin-top:8px;background:#f2e6c8;border-radius:8px}
.community-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}
.community-no-comments,.community-empty{color:#66553e}
.community-comment-form{display:grid;gap:8px;padding-top:14px}
.community-comment-form textarea{min-height:70px}
@media(max-width:760px){.community-auth>.community-card{grid-column:span 12}.community-member,.community-form-foot{align-items:stretch;flex-direction:column}.community-member .community-quiet,.community-form-foot .primary{align-self:flex-start}}
.community-chat{margin-top:18px;padding:0;overflow:hidden}
.community-chat-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}
.community-chat-head h3{margin:4px 0 0;font-size:1.35rem}
.community-chat-list{height:380px;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px;display:flex;flex-direction:column;gap:9px;background:#f8f0de}
.community-chat-message{max-width:85%;align-self:flex-start;background:#f2e6c8;border:1px solid #ddc9a0;border-radius:12px;padding:9px 12px}
.community-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0}
.community-chat-message .community-post-meta{gap:18px;font-size:.9rem}
.community-message-form{border-top:1px solid var(--line);padding:14px 18px;display:grid;gap:7px}
.community-message-form label{font-weight:700;font-size:.9rem}
.community-message-controls{display:flex;align-items:end;gap:10px}
.community-message-controls textarea{flex:1;min-width:0;resize:vertical;min-height:68px;border:1px solid #cdbb94;border-radius:8px;padding:10px 12px;background:#fffaf0;color:#2d2418;font:inherit}
.community-message-form small{color:#66553e}
#community-signin-hint{margin:0;padding:14px 18px;border-top:1px solid var(--line)}
@media(max-width:760px){.community-chat-list{height:340px}.community-chat-message{max-width:96%}.community-message-controls{align-items:stretch;flex-direction:column}.community-message-controls .primary{align-self:flex-end}}
.event-category-filters{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 20px}
.event-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.event-controls label{font-weight:800}
.event-controls input{border:1px solid #b69d6d;border-radius:6px;padding:8px 10px;background:#fffaf0;color:#2d2418;font:inherit}
.event-controls small{flex-basis:100%;color:#66553e}
.event-more{display:block;margin:20px auto 0}
.event-more[hidden]{display:none}
.event-category-filters[hidden]{display:none}
.event-filter{border:1px solid #cdbb94;border-radius:6px;background:#f8f0de;color:#3a2c1e;padding:8px 12px;font-weight:700;font-size:.88rem}
.event-filter:hover,.event-filter:focus-visible{border-color:#9c2b25;outline-color:#9c2b25}
.event-filter[aria-pressed="true"]{background:#46361f;border-color:#b8862b;color:#fff7e3}
.event-group{grid-column:1/-1;min-width:0}
.event-group h3{margin:5px 0 13px;padding-bottom:7px;border-bottom:1px solid #cdbb94;font-size:1.25rem;color:#3a2c1e}
.event-group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.event-card{min-width:0;padding:15px}
.event-card h4{font-size:1.03rem;line-height:1.25;margin:8px 0}
.event-card p{margin:0 0 8px;color:#66553e;font-size:.88rem}
.event-card a{color:#7a1f1a;font-weight:700}
@media(max-width:1100px){.event-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.event-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.event-group-grid{grid-template-columns:1fr}}
@media(max-width:760px){.hero{padding:12px 14px}.hero-copy{padding:10px 12px 12px}.hero h1{font-size:clamp(2rem,7vw,2.5rem)}}
.map-search{margin:0 0 16px;display:grid;gap:5px;max-width:560px}
.map-search label{font-weight:800;color:#3a2c1e}
.map-search input{width:100%;border:1px solid #b69d6d;border-radius:8px;padding:11px 13px;background:#fffaf0;color:#2d2418;font:inherit}
.map-search input:focus-visible{outline:3px solid #b8862b;outline-offset:2px}
.map-search small{color:#66553e;font-size:.86rem}
.map-results-global>#map-results-search{display:none}
.map-filter-group,.map-sources{border-top:1px solid rgba(110,80,40,.3);margin-top:10px}
.map-filter-group summary,.map-sources summary{cursor:pointer;padding:12px 3px;font-weight:800;color:#3a2c1e;list-style:none}
.map-filter-group summary::-webkit-details-marker,.map-sources summary::-webkit-details-marker{display:none}
.map-filter-group summary::after,.map-sources summary::after{content:'⌄';float:right;font-size:1.2rem;line-height:1}
.map-filter-group[open] summary::after,.map-sources[open] summary::after{transform:rotate(180deg)}
.map-filter-group summary:focus-visible,.map-sources summary:focus-visible{outline:3px solid #b8862b;outline-offset:2px}
.map-filter-group .map-filter{padding:8px 3px}
.map-sources .map-sidebar-note{margin:0 0 12px}
@media(max-width:760px){
  .map-layout{grid-template-columns:minmax(0,1fr);height:auto;min-height:0}
  .map-sidebar{height:220px;max-height:none;padding:12px 16px;overflow-y:auto;border-right:0;border-bottom:1px solid var(--line);border-bottom-right-radius:0}
  .map-sidebar h3{margin:0 0 5px}
  .map-filter-group,.map-sources{margin-top:0}
  .map-filter-group summary,.map-sources summary{min-height:44px}
  .city-map{height:400px;min-height:400px}
}
.legal-page{margin:0;font:16px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.legal-page *{box-sizing:border-box}
.legal-page .brand{display:inline-block;text-decoration:none}
.legal-page .brand i{font-style:normal}
.legal-shell{max-width:860px;margin:0 auto;padding:32px 20px 70px}
.legal-card{margin-top:20px;padding:clamp(22px,4vw,42px);background:#f8f0de;border:1px solid rgba(110,80,40,.3);border-radius:18px;box-shadow:0 5px 16px rgba(58,44,30,.08)}
.legal-card h1{font-size:clamp(2.3rem,5vw,3.6rem);line-height:1;margin:0 0 26px}
.legal-card h2{font-size:1.55rem;margin:28px 0 8px}
.legal-card p{max-width:70ch;overflow-wrap:anywhere}
footer a{color:inherit}
.legal-page footer{padding:28px clamp(20px,8vw,120px)}

/* --- Header/Hero: Kaiserburg-Silhouette + Pixel-Himmel (wie TechDoc) --- */
.hero{position:relative;overflow:hidden;padding-bottom:clamp(170px,23vw,330px);max-width:1460px;margin:18px auto 0;border-radius:18px}
/* Header schlanker + auf gleiche Breite/Linie wie Banner + Inhalt */
header{padding-top:9px!important;padding-bottom:9px!important;max-width:1460px;margin:18px auto 0!important;border-radius:14px}
.shell{max-width:1460px}
#himmel{position:absolute;inset:0;width:100%;height:100%;z-index:0;display:block}
.hero-copy{position:relative;z-index:2}
.panorama{position:absolute;left:0;right:0;bottom:0;z-index:1;pointer-events:none;line-height:0;text-align:center}
.panorama img{display:inline-block;width:clamp(380px,54vw,780px);height:auto;max-width:98%;object-fit:contain;object-position:bottom;transform:scaleX(1.5);transform-origin:center bottom}
@media(max-width:760px){.hero{padding-bottom:clamp(130px,38vw,300px)}.panorama img{width:clamp(240px,66vw,520px);height:auto;transform:scaleX(1.3);transform-origin:center bottom}}

/* Sprunglink für Tastatur/Screenreader */
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:#2a1f15;color:#fff7e3;padding:10px 16px;border:2px solid #b8862b;border-radius:0 0 6px 0;text-decoration:none}
.skip-link:focus{left:0}

/* Karte volle Breite, nachdem die "Nürnberg erkunden"-Box entfernt wurde */
.map-overview>.map{grid-column:1/-1}

/* Aktive-Filter-Chips unter der Karte */
.active-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 2px 0}
.active-filters-label{font-weight:700;color:var(--ink,#3a2c1e);font-size:.9rem;margin-right:2px}
.filter-chip{display:inline-flex;align-items:center;gap:7px;background:#2a1f15;color:#fff7e3;border:1px solid #b8862b;border-radius:999px;padding:5px 12px;font-size:.85rem;cursor:pointer;font-family:inherit;line-height:1.1}
.filter-chip:hover{background:#3a2c1e}
.filter-chip .chip-x{font-size:.78rem;opacity:.85}

/* Navigations-Reiter ans Ende verschoben */
.tabs-bottom{margin-top:30px;padding-top:20px;border-top:1px solid rgba(110,80,40,.28);justify-content:center;flex-wrap:wrap}
