/* ==========================================================================
   mg-auth.css  -  Küstenlinie  -  Login / Registrierung / Profil
   Einbindung NACH new.css und locals.css:
   <link rel="stylesheet" href="/css/mg-auth.css?v=1">
   Body-Klassen: "mga mga-auth" (login, register) bzw. "mga mga-profile" (profile)
   ========================================================================== */
body.mga{
  --accent:#851B2F;--accent-d:#6B1425;--gold:#BE9440;--gold-l:#D9BE82;
  --cream:#F6EFE3;--cream-s:#FBF8F1;--sand:#E8DCC0;--rule:#E8DCC0;
  --ink:#2A2024;--ink-mid:#5C4D53;--ink-muted:#8C7E83;--price:#2D5A3D;
  --paper-warm:#F6EFE3;
  font-family:'Poppins',system-ui,-apple-system,sans-serif;
  background:var(--cream-s);overflow-x:hidden;
}

/* ---------- HERO (Login / Registrierung) ---------- */
body.mga .mga-hero,body.mga .local-hero.mga-phero{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,#FBF8F1,#F6EFE3)!important;
  background-image:linear-gradient(180deg,#FBF8F1,#F6EFE3)!important;
  color:var(--ink);
}
body.mga .mga-sky{position:relative;padding:46px 0 84px}
body.mga .mga-wrap{max-width:1100px;margin:0 auto;padding:0 20px;position:relative;z-index:2}
body.mga .mga-kicker{display:inline-flex;align-items:center;gap:10px;font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
body.mga .mga-kicker::before{content:"";width:34px;height:2px;background:var(--gold)}
body.mga .mga-title{margin:12px 0 10px;font-size:clamp(2rem,4.6vw,3.1rem);font-weight:700;line-height:1.1;letter-spacing:-.02em;color:var(--accent);text-transform:none}
body.mga .mga-sub{margin:0;max-width:520px;font-size:1rem;line-height:1.6;color:var(--ink-mid)}
body.mga .mga-sun{position:absolute;z-index:1;width:190px;height:190px;border-radius:50%;background:var(--gold);right:max(40px,calc(50% - 470px));top:34px;display:grid;place-items:center;
  box-shadow:0 0 0 14px rgba(190,148,64,.20),0 0 0 34px rgba(190,148,64,.10)}
body.mga .mga-sun span{width:88px;height:88px;border-radius:50%;background:var(--cream-s);color:var(--accent-d);display:grid;place-items:center;box-shadow:0 12px 26px rgba(107,20,37,.28)}
body.mga .mga-sun svg{width:42px;height:42px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Meer mit Wellen ---------- */
body.mga .mga-sea{position:relative;height:64px;background:var(--accent)}
body.mga .mga-sea::before,body.mga .mga-sea::after{content:"";position:absolute;left:0;right:0;height:28px;background-repeat:repeat-x;background-size:120px 28px}
body.mga .mga-sea::before{top:-37px;opacity:.6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28'%3E%3Cpath d='M0 14 Q30 2 60 14 T120 14 V28 H0Z' fill='%23BE9440'/%3E%3C/svg%3E")}
body.mga .mga-sea::after{top:-27px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28'%3E%3Cpath d='M0 14 Q30 0 60 14 T120 14 V28 H0Z' fill='%23851B2F'/%3E%3Cpath d='M0 14 Q30 0 60 14 T120 14' fill='none' stroke='%23D9BE82' stroke-width='1.6'/%3E%3C/svg%3E")}
@media (prefers-reduced-motion:no-preference){
  body.mga .mga-sea::before{animation:mgaw 26s linear infinite reverse}
  body.mga .mga-sea::after{animation:mgaw 16s linear infinite}
  body.mga .mga-sun{animation:mgaf 7s ease-in-out infinite}
  @keyframes mgaw{to{background-position-x:120px}}
  @keyframes mgaf{50%{transform:translateY(-9px)}}
}

/* ---------- Auth-Karte ---------- */
body.mga-auth main.local-content{position:relative;z-index:3;padding-top:0!important;margin-top:0!important;padding-bottom:30px}
body.mga-auth .local-dashboard-box{
  margin:-46px auto 44px!important;background:#fff;border:1px solid var(--sand)!important;border-radius:14px!important;
  padding:28px 28px 24px!important;box-shadow:0 18px 40px rgba(107,20,37,.12)!important;position:relative}
body.mga-auth .mga-box-h{display:none!important}
body.mga .local-form-field{margin-bottom:16px}
body.mga .local-form-label{display:block;margin-bottom:6px;font-size:.78rem;font-weight:600;letter-spacing:.02em;color:var(--ink-mid)}
body.mga .local-form-input,body.mga .local-form-textarea,body.mga .local-form-select{
  width:100%;box-sizing:border-box;font-family:inherit;font-size:.95rem;color:var(--ink);background:#fff;
  border:1.5px solid var(--sand);border-radius:10px;padding:12px 14px;transition:border-color .2s,box-shadow .2s}
body.mga .local-form-input:focus,body.mga .local-form-textarea:focus,body.mga .local-form-select:focus{
  outline:none;border-color:var(--gold);box-shadow:0 0 0 4px rgba(190,148,64,.18)}
body.mga .btn-prim,body.mga-auth form button[type=submit]{
  font-family:inherit;border-radius:999px!important;font-weight:600;letter-spacing:.01em;
  background:var(--accent);color:#fff;border:1.5px solid var(--accent)!important;padding:12px 24px;cursor:pointer;
  transition:transform .2s,box-shadow .2s,background .2s}
body.mga .btn-prim:hover,body.mga-auth form button[type=submit]:hover{background:var(--accent-d)!important;transform:translateY(-2px);box-shadow:0 10px 22px rgba(133,27,47,.25)}
body.mga .btn-sec{font-family:inherit;border-radius:999px!important;font-weight:600;color:var(--accent)!important;background:transparent!important;border:1.5px solid var(--accent)!important;padding:10px 20px;transition:.2s}
body.mga .btn-sec:hover{background:#fff!important;box-shadow:0 8px 18px rgba(133,27,47,.14)}
body.mga-auth .local-dashboard-box a{transition:color .2s}
body.mga-auth .local-dashboard-box a:hover{color:var(--gold)!important}
body.mga .mga-err,body.mga .auth-error{border:1px solid var(--accent)!important;border-left:4px solid var(--accent)!important;background:#FBF1F2;color:var(--accent-d)!important;border-radius:10px!important}
body.mga .cf-turnstile{display:flex;justify-content:center}

/* Registrierung: Tabs Turist / Local / Owner als Pillen */
body.mga .mga-tabs{gap:8px!important;border-bottom:0!important;margin-bottom:24px!important;padding:4px;background:var(--cream);border-radius:999px;border:1px solid var(--sand)!important}
body.mga .mga-tabs>*{border-radius:999px!important;border:0!important;padding:9px 10px!important;font-size:.8rem!important;transition:.2s}
body.mga .mga-tabs>a:hover{background:#fff!important;color:var(--accent)!important}
body.mga .mga-tabs>span{background:var(--accent)!important;color:#fff!important;box-shadow:0 6px 14px rgba(133,27,47,.22)}

/* ---------- PROFIL ---------- */
body.mga-profile .local-hero.mga-phero{padding:46px 0 84px!important;min-height:0!important;height:auto!important;border:0!important}
body.mga-profile .local-hero-overlay{display:none!important}
body.mga-profile .local-hero-inner{max-width:1100px;margin:0 auto!important;padding:0 20px!important;display:flex!important;align-items:center;gap:28px;position:relative;z-index:2;color:var(--ink)}
body.mga-profile .local-avatar,body.mga-profile .local-avatar-placeholder{
  width:124px!important;height:124px!important;flex:none;border-radius:50%!important;object-fit:cover;
  border:4px solid var(--gold)!important;box-shadow:0 0 0 8px rgba(190,148,64,.18),0 14px 28px rgba(107,20,37,.2)!important}
body.mga-profile .local-avatar-placeholder{display:grid!important;place-items:center;background:var(--accent)!important;color:var(--gold-l)!important;font-size:2.6rem;font-weight:700}
body.mga-profile .local-name{margin:0 0 4px!important;font-size:clamp(1.8rem,3.8vw,2.6rem)!important;font-weight:700!important;line-height:1.1;letter-spacing:-.02em;color:var(--accent)!important;text-shadow:none!important}
body.mga-profile .local-username{color:var(--gold)!important;font-weight:600;font-size:.95rem}
body.mga-profile .local-bio{color:var(--ink-mid)!important;max-width:560px;line-height:1.6;margin-top:8px}
body.mga-profile .local-meta-line{color:var(--ink-mid)!important;font-size:.84rem;margin-top:10px;line-height:1.7}
body.mga-profile .local-meta-line svg,body.mga-profile .local-meta-line .icon{display:inline-block;vertical-align:-3px;margin-right:4px;color:var(--gold)!important;stroke:currentColor}
body.mga-profile .local-badges-row{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
body.mga-profile .local-hero .btn{display:inline-flex;align-items:center;gap:8px}
body.mga-profile .local-hero .btn svg{width:16px;height:16px}

/* Statistik-Kacheln überlappen das Meer */
body.mga-profile .mga-sea + .local-content{margin-top:-34px!important;position:relative;z-index:3;padding-bottom:0}
body.mga-profile .local-stats-row{max-width:1100px;margin:20px auto 0!important;padding:0 20px!important;display:grid!important;grid-template-columns:repeat(4,1fr);gap:14px;position:relative;z-index:3}
body.mga-profile .mga-sea + .local-stats-row{margin-top:-52px!important}
body.mga-profile .local-stat-box{background:#fff!important;border:1px solid var(--sand)!important;border-radius:12px!important;padding:18px 12px!important;text-align:center;box-shadow:0 10px 24px rgba(107,20,37,.09);transition:transform .25s,border-color .25s,box-shadow .25s}
body.mga-profile .local-stat-box:hover{transform:translateY(-4px);border-color:var(--gold)!important;box-shadow:0 14px 30px rgba(133,27,47,.14)}
body.mga-profile .local-stat-box svg{width:22px;height:22px;color:var(--gold)!important;stroke:currentColor;margin:0 auto 6px;display:block}
body.mga-profile .local-stat-value{font-size:1.7rem!important;font-weight:700!important;color:var(--accent)!important;line-height:1.15}
body.mga-profile .local-stat-label{font-size:.76rem!important;color:var(--ink-muted)!important;font-weight:500;letter-spacing:.02em}

/* Tabs */
body.mga-profile .local-tabs{max-width:1100px;margin:26px auto 0!important;padding:4px 20px 16px!important;display:flex!important;gap:8px;overflow-x:auto;border:0!important;background:none!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body.mga-profile .local-tabs::-webkit-scrollbar{display:none}
body.mga-profile .local-tab-btn{flex:none;display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-size:.82rem;font-weight:600;color:var(--ink-mid)!important;background:#fff!important;border:1.5px solid var(--sand)!important;border-radius:999px!important;padding:9px 16px!important;cursor:pointer;white-space:nowrap;transition:.2s}
body.mga-profile .local-tab-btn svg{width:16px;height:16px;color:var(--gold);stroke:currentColor}
body.mga-profile .local-tab-btn:hover{border-color:var(--gold)!important;color:var(--accent)!important}
body.mga-profile .local-tab-btn.active{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;box-shadow:0 8px 18px rgba(133,27,47,.22)}
body.mga-profile .local-tab-btn.active svg{color:var(--gold-l)}

/* Inhalt */
body.mga-profile .local-content{max-width:1100px;margin-left:auto;margin-right:auto}
body.mga-profile .local-dashboard-box{background:#fff!important;border:1px solid var(--sand)!important;border-radius:12px!important;box-shadow:0 6px 18px rgba(107,20,37,.05);transition:border-color .25s,box-shadow .25s}
body.mga-profile .local-dashboard-box h3{color:var(--accent)!important;font-weight:700;display:flex;align-items:center;gap:8px}
body.mga-profile .local-dashboard-box h3 svg{color:var(--gold);width:18px;height:18px;stroke:currentColor}
body.mga-profile .local-section-title{color:var(--ink);font-weight:700}
body.mga-profile .local-section-title svg{color:var(--gold)}
body.mga-profile .local-quick-action{text-decoration:none!important;display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1.5px solid var(--sand)!important;border-radius:999px!important;background:#fff!important;color:var(--ink)!important;font-weight:600;transition:.2s}
body.mga-profile .local-quick-action:hover{border-color:var(--gold)!important;color:var(--accent)!important;transform:translateY(-2px);box-shadow:0 8px 18px rgba(133,27,47,.12)}
body.mga-profile .local-quick-action svg{color:var(--gold)}
body.mga-profile .local-list-card,body.mga-profile .local-fav-card,body.mga-profile .local-follow-card,body.mga-profile .local-contrib-item{
  background:#fff!important;border:1px solid var(--sand)!important;border-radius:12px!important;overflow:hidden;transition:transform .25s,border-color .25s,box-shadow .25s}
body.mga-profile .local-list-card:hover,body.mga-profile .local-fav-card:hover,body.mga-profile .local-follow-card:hover{transform:translateY(-4px);border-color:var(--gold)!important;box-shadow:0 14px 30px rgba(133,27,47,.10)}
body.mga-profile .local-empty{border:1.5px dashed var(--sand);border-radius:12px;background:#fff;color:var(--ink-muted)}
body.mga-profile .local-badge-item{border-radius:12px!important;border:1px solid var(--sand)!important;background:#fff!important}
body.mga-profile .local-category-checkbox{border-radius:999px!important}
body.mga-profile .local-form-actions{margin-top:18px}

/* ---------- Mobil ---------- */
@media (max-width:900px){
  body.mga .mga-sun{width:140px;height:140px;right:-22px;top:26px;box-shadow:0 0 0 10px rgba(190,148,64,.2),0 0 0 24px rgba(190,148,64,.1)}
  body.mga .mga-sun span{width:62px;height:62px}body.mga .mga-sun svg{width:30px;height:30px}
  body.mga-profile .local-stats-row{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  body.mga .mga-sky{padding:34px 0 76px}
  body.mga .mga-sun{display:none}
  body.mga .mga-sub{font-size:.92rem}
  body.mga-auth .local-dashboard-box{margin:-44px 14px 36px!important;padding:22px 18px 20px!important}
  body.mga-profile .local-hero.mga-phero{padding:32px 0 76px!important}
  body.mga-profile .local-hero-inner{flex-direction:column;align-items:flex-start;gap:16px}
  body.mga-profile .local-avatar,body.mga-profile .local-avatar-placeholder{width:96px!important;height:96px!important}
  body.mga-profile .local-stat-value{font-size:1.4rem!important}
  body.mga-profile .local-hero .btn{padding:9px 16px!important}
}
