@import url("p6l-settings.css");

:root{
  --bg:#eef2f7;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#dfe3ea;
  --blue:#2583e5;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  padding:30px;
  background:var(--bg);
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  overflow-x:hidden;
}

.app{
  width:100%;
  max-width:none;
  margin:24px auto;
}

/* =========================================================
   Hochformat-Hinweis Smartphone
   ========================================================= */

.orientation-overlay{
  display:none;
}

.orientation-box{
  max-width:360px;
  margin:0 auto;
  padding:28px 22px;
  background:#ffffff;
  border:3px solid #0b1b45;
  border-radius:18px;
  text-align:center;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.orientation-icon{
  font-size:58px;
  line-height:1;
  margin-bottom:14px;
  color:#0b1b45;
}

.orientation-title{
  font-size:24px;
  font-weight:800;
  margin-bottom:10px;
  color:#0f172a;
}

.orientation-text{
  font-size:17px;
  line-height:1.4;
  color:#334155;
}

/* =========================================================
   Gemeinsame Panel-Optik
   ========================================================= */

.panel{
  background:#ffffff;
  border:4px solid #000;
  border-radius:18px;
  margin-bottom:16px;
  padding:18px;
  overflow:hidden;
}

/* =========================================================
   Menübereich
   ========================================================= */

.main-menu{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.top-menu{
  width:100%;
}

.sub-menu-area{
  width:100%;
  min-height:56px;
  margin-bottom:16px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 26px;
  font-size:18px;
  font-weight:bold;
  line-height:1.2;
  white-space:nowrap;
  border:3px solid #2f80ed;
  border-radius:999px;
  background:#ffffff;
  color:#1f2937;
  cursor:pointer;
  transition:all .2s ease;
}

.menu-btn.active{
  background:#0b1b45;
  color:#ffffff;
  box-shadow:0 4px 12px rgba(11,27,69,.25);
}

/* Vollbild-Button */
.fullscreen-btn{
  background:#111827;
  color:#ffffff;
  border-color:#111827;
}

.fullscreen-btn:hover{
  background:#020617;
  color:#ffffff;
}

/* =========================================================
   Taxameterbereich
   ========================================================= */

.taxameter-wrap{
  width:100%;
  margin:16px 0 0 0;
  overflow:hidden;
  display:block;
}

.taxameter-frame{
  width:100%;
  min-height:120px;
  border:0;
  background:transparent;
  display:block;
  transform-origin:top left;
}

/* =========================================================
   Kommentarbereich
   ========================================================= */

.instruction-text{
  font-size:32px;
  font-weight:500;
  color:#111;
  line-height:1.35;
}

.instruction-text div{
  margin-bottom:4px;
}

.instruction-text div:last-child{
  margin-bottom:0;
}

.taxameter-wrap{
  width:100%;
  margin:16px 0 0 0;
  overflow:hidden;
  display:block;
}

/* =========================================================
   Kommentar-Tastensymbol im echten Taxameter-Tastenstil
   Wird in p6l-texts.js mit <span class="p6l-text-key">1</span> benutzt
   ========================================================= */

.p6l-text-key{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:75px;
  height:35px;
  min-width:75px;
  padding:0;
  margin:0 10px;

  border-radius:28px;
  border:2px solid rgba(0,217,255,.75);

  background:linear-gradient(
    to bottom,
    #4a4a4a 0%,
    #1f1f1f 45%,
    #0a0a0a 100%
  );

  color:#ffffff;
  font-family:Arial, sans-serif;
  font-size:28px;
  font-weight:bold;
  line-height:1;

  box-shadow:
    inset 0 4px 8px rgba(255,255,255,0.25),
    inset 0 -8px 12px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,217,255,.25),
    0 5px 10px rgba(0,0,0,0.35);

  text-shadow:
    0 2px 2px rgba(0,0,0,0.8),
    0 0 2px rgba(255,255,255,0.2);

  vertical-align:middle;
}

/* =========================================================
   Smartphone Hochformat sperren
   ========================================================= */
/* =========================================================
   Smartphone Hochformat:
   Nur Dreh-Hinweis anzeigen
   ========================================================= */

@media (max-width:1200px) and (orientation:portrait) and (pointer:coarse){
  body{
    padding:18px;
    min-height:100vh;
    min-height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
  }

  .app{
    display:none !important;
  }

  .orientation-overlay{
    display:block !important;
    width:100%;
  }
}

/* =========================================================
   Smartphone Querformat:
   Bedienungsanleitung anzeigen, inklusive Vollbild-Button
   ========================================================= */

@media (max-width:1200px) and (orientation:landscape) and (pointer:coarse){
  .orientation-overlay{
    display:none !important;
  }

  .app{
    display:block !important;
  }

  .fullscreen-btn{
    display:inline-flex !important;
  }
}
/* =========================================================
   Smartphone Querformat
   ========================================================= */

@media (max-width:1200px) and (orientation:landscape) and (pointer:coarse){
  body{
    padding:8px;
    overflow-x:hidden;
  }

  .app{
    width:100%;
    max-width:none;
    margin:0 auto;
  }

  .main-menu{
    gap:8px;
    margin-bottom:8px;
  }

  .menu-btn{
    padding:7px 13px;
    font-size:14px;
    border-width:2px;
  }

  .fullscreen-btn{
    padding:7px 13px;
    font-size:14px;
  }

  .taxameter-wrap{
    margin:8px 0;
  }

  .instruction-text{
    font-size:20px;
    line-height:1.25;
  }

  .p6l-text-key{
    width:48px;
    height:26px;
    min-width:48px;
    font-size:20px;
    margin:0 5px;
  }

  .bottom-text{
    margin-top:8px;
  }
}

/* =========================================================
   Tablet / kleiner Desktop
   ========================================================= */

@media (max-width:768px){
  .panel{
    padding:14px;
    border-radius:14px;
  }
}