.page-shell{width:min(1100px,calc(100% - 24px));margin:0 auto;padding:18px 0 48px}.subpage-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.subpage-back,.subpage-home{display:inline-flex;align-items:center;gap:.45rem;min-height:48px;padding:.7rem 1rem;border:1px solid rgba(83,255,178,.3);border-radius:14px;text-decoration:none;color:#dfffee;background:rgba(6,30,25,.8);font-weight:800}.subpage-hero{padding:24px;border:1px solid rgba(83,255,178,.26);border-radius:22px;background:linear-gradient(145deg,rgba(7,28,25,.96),rgba(4,15,16,.98));box-shadow:0 16px 50px rgba(0,0,0,.25);margin-bottom:16px}.subpage-hero h1{margin:.25rem 0 .55rem;font-size:clamp(1.8rem,4vw,3rem)}.subpage-hero p{max-width:780px}.subpage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.subcard{padding:20px;border:1px solid rgba(83,255,178,.2);border-radius:18px;background:rgba(7,24,22,.92)}.subcard h2,.subcard h3{margin-top:0}.stack{display:grid;gap:10px}.control-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.control-row>*{flex:1 1 180px}.sub-input,.sub-select{width:100%;min-height:52px;border:1px solid rgba(83,255,178,.28);border-radius:12px;background:#071a18;color:#ecfff8;padding:0 14px;font:inherit}.sub-btn{min-height:50px;border-radius:12px;border:1px solid rgba(83,255,178,.3);background:#0a251f;color:#eafff5;font:inherit;font-weight:800;padding:.65rem .9rem;cursor:pointer}.sub-btn.primary{background:#0e5b42;border-color:#48ffb0}.sub-btn.danger{border-color:rgba(255,95,95,.55);color:#ffd7d7}.place-grid,.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.place-card,.project-card{padding:16px;border:1px solid rgba(83,255,178,.18);border-radius:16px;background:rgba(3,20,17,.8)}.place-card strong,.project-card strong{display:block;font-size:1.05rem;margin-bottom:5px}.place-card small,.project-card small{color:#9dc9ba}.place-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.place-actions .sub-btn{min-height:44px;flex:1 1 110px}.cover-stage{overflow:hidden;border:1px solid rgba(83,255,178,.25);border-radius:22px;background:#020b0a}.cover-stage img{display:block;width:100%;height:auto}.project-card{text-decoration:none;color:inherit;transition:.18s transform,.18s border-color}.project-card:hover,.project-card:focus-visible{transform:translateY(-2px);border-color:#4effb0}.info-badge{display:inline-flex;padding:.35rem .65rem;border-radius:999px;background:rgba(78,255,176,.1);border:1px solid rgba(78,255,176,.25);color:#76ffc0;font-size:.78rem;font-weight:900;letter-spacing:.05em}.switch-line{display:flex;align-items:center;gap:10px}.switch-line input{width:22px;height:22px}.settings-note{font-size:.9rem;color:#acd2c5}.page-footer{margin-top:20px;color:#8eb2a7;font-size:.86rem;text-align:center}.toast-lite{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:50;padding:.75rem 1rem;border-radius:12px;background:#102f27;color:#fff;border:1px solid #45eaaa;box-shadow:0 10px 35px rgba(0,0,0,.4)}
@media(max-width:760px){.page-shell{width:min(100% - 16px,760px);padding-top:8px}.subpage-grid,.place-grid,.project-grid{grid-template-columns:1fr}.subpage-hero,.subcard{padding:16px}.subpage-top{position:sticky;top:0;z-index:20;padding:8px 0;background:rgba(2,12,11,.9);backdrop-filter:blur(12px)}.subpage-back,.subpage-home{min-height:52px;padding:.6rem .75rem}.control-row>*{flex-basis:100%}}

/* v4.2 Subpages: senioren-/kinderfreundliche Container und sichere Buttontexte */
.subpage-top, .subpage-grid, .subcard, .control-row, .place-grid, .project-grid, .place-actions { min-width: 0; }
.subpage-back, .subpage-home, .sub-btn, .project-card {
  min-width: 0;
  max-width: 100%;
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.25;
  text-align: center;
}
.subcard, .subpage-hero { overflow: visible; }
.subcard h2, .subcard h3, .subpage-hero h1, .subpage-hero p, .settings-note { overflow-wrap:anywhere; }
.control-row > * { min-width: 0; }
.sub-btn { display:inline-flex; align-items:center; justify-content:center; }
@media(max-width:760px){
  .page-shell{width:calc(100% - 16px);padding-bottom:36px}
  .subpage-top{gap:8px}
  .subpage-back,.subpage-home{flex:1 1 0;min-height:56px;padding:10px 8px;font-size:.9rem}
  .subpage-hero,.subcard{padding:18px;border-radius:20px}
  .subpage-hero h1{font-size:clamp(1.65rem,8vw,2.35rem);line-height:1.1}
  .sub-btn{width:100%;min-height:56px;padding:10px 12px}
  .control-row{display:grid;grid-template-columns:1fr;gap:9px}
  .control-row>*{width:100%;flex-basis:auto}
  .place-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .place-actions .sub-btn{min-height:52px}
}
@media(max-width:380px){
  .subpage-top{display:grid;grid-template-columns:1fr}
  .place-actions{grid-template-columns:1fr}
}


/* v4.2: robuste Projekt-/Mobilitaetskarten und lange Buttontexte */
.project-card, .place-card { min-width:0; overflow:hidden; }
.project-card strong, .project-card small, .place-card strong, .place-card small { overflow-wrap:anywhere; word-break:normal; }
.project-card { display:flex; flex-direction:column; justify-content:flex-start; min-height:118px; }
.simple-link-grid > a, .control-row > a.sub-btn { white-space:normal; overflow-wrap:anywhere; text-wrap:balance; }
@media(max-width:760px){
  .project-card{min-height:0;padding:18px;}
  .project-card strong{font-size:1.08rem;line-height:1.2;}
  .project-card small{font-size:.92rem;line-height:1.45;}
}


/* FINAL – Subpages: sichere Container und lange Texte */
.page-shell, .subpage-grid, .stack, .subcard, .cover-stage, .project-grid, .place-grid { min-width: 0; }
.subcard, .cover-stage { overflow: hidden; }
.sub-btn, .project-card, .place-actions > * {
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.3;
}
.cover-stage picture, .cover-stage img { display:block; width:100%; height:auto; max-width:100%; }
@media (max-width: 640px) {
  .subpage-hero, .subcard, .cover-stage { padding: 16px 13px; }
  .subpage-top { gap: 8px; flex-wrap: wrap; }
  .subpage-top a { min-height: 48px; display:flex; align-items:center; justify-content:center; }
  .control-row, .place-actions { grid-template-columns: 1fr !important; }
  .sub-btn { min-height: 52px; }
}


/* v4.8 Rechtseiten */
.legal-copy { display:grid; gap:14px; }
.legal-copy section { padding:20px; border:1px solid rgba(83,255,178,.18); border-radius:18px; background:rgba(7,24,22,.92); }
.legal-copy h2 { margin:0 0 9px; color:#ecfff8; font-size:1.25rem; }
.legal-copy h3 { margin:14px 0 7px; color:#dffff3; }
.legal-copy p, .legal-copy li { color:#b9d8cf; line-height:1.6; overflow-wrap:anywhere; }
.legal-copy ul { margin:.4rem 0 .2rem; padding-left:1.3rem; }
.legal-copy a { color:#59ffc0; overflow-wrap:anywhere; }
.legal-meta { color:#8eb2a7; font-size:.85rem; }
.legal-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 14px; margin-top:12px; }
.legal-nav a { color:#9fd8c8; text-underline-offset:3px; }
@media(max-width:760px){ .legal-copy section{padding:16px 14px;} .legal-copy h2{font-size:1.12rem;} }
