
/* Base: Desktop/PC als Standard */
body { margin: 0; font-family: system-ui, sans-serif; }
.phone-only { display: none; }
.app { display: block; }

/* Phone: bis 600px -> App ausblenden, Meldung zeigen */
@media (max-width: 600px) {
  .app { display: none; }
  .phone-only { 
    display: grid; 
    place-items: center; 
    min-height: 100vh; 
    padding: 24px;
    text-align: center;
  }
}

/* Wenn iPad */
@media (hover: none) and (pointer: coarse) {
  .mapplic-dir-item h4 {
        font-size: 10px;
        line-height: 1.2;
    }

}

    * {
      box-sizing: border-box;
      padding: 0;
    }

    body {
      font-family: Arial, sans-serif;
      background: #fff;
    }

    /* Burger Button */
    .burger {
      position: fixed;
      top: 12px;
      right: 20px;
      width: 36px;
      height: 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      z-index: 1100;
      margin-right: 30px;
    }

    .burger span {
      display: block;
      height: 3px;
      width: 100%;
      background: #fff;
      border-radius: 2px;
      transition: 0.3s;
    }

    /* Animation zum X */
    .burger.active span:nth-child(1) {
      transform: translateY(13px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
      opacity: 0;
    }

    .burger.active span:nth-child(3) {
      transform: translateY(-13px) rotate(-45deg);
    }

    /* Overlay */
    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      opacity: 0;
      visibility: hidden;
      transition: 0.3s;
      z-index: 900;
    }

    .overlay.show {
      opacity: 1;
      visibility: visible;
    }

    /* Menü */
    .side-menu {
      position: fixed;
      top: 88px;
      right: -320px;
      width: 260px;
      max-width: 85%;
      
      /* statt fixer Höhe */
      height: auto;
      min-height: 36vh;
      max-height: calc(100vh - 110px);

      background: #004c97;
      color: white;
      padding: 24px 32px;
      border-top-left-radius: 40px;
      border-bottom-left-radius: 40px;

      transition: right 0.35s ease;
      z-index: 1002;

      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 30px;

      text-align: left;
      overflow-y: auto;
      box-sizing: border-box;
    }

    .side-menu.open {
      right: 0;
    }
   .menu-section h2, .language h2 {
      font-size: 1.2rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin: 0px;
    }

    .menu-section ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .menu-section ul li:last-child {
      margin-bottom: 0;
    }

.menu-section ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 300;
  transition: opacity 0.2s ease;
}

.menu-section ul li a:hover {
  opacity: 0.8;
}

    .language {
      margin-top: 30px;
    }

    .language a {
      color: white;
      text-decoration: none;
      font-size: 1.3rem;
      margin-right: 10px;
    }

    .language span {
      font-size: 20px;
      margin-right: 10px;
    }

.headerRow{
	background-color: #004c92;
	color:	#fff;
	font-size: 14px;
	line-height: 50px;
	text-align: right;
}

.headerButton{
	margin-right: 30px;
}


/* Tablet: 601–1024px -> Tablet-Layout */
@media (min-width: 601px) and (max-width: 1024px) {
  .layout { 
    font-size: 0.8em;
    zoom: 0.7; /* funktioniert auf iOS Safari */
    .mapplic-dir-item h4{ font-size: 0.8em;}
    .mapplic-dir-item {
    padding: 8px 10px;
    }
    .mapplic-item-body h4 {
        font-size: 10px;
        line-height: 1.2;
    }

    .mapplic-thumbnail img {
        width: 40px;
        height: auto;
    }
    .mapplic-dir-item h4 {
		font-size: 0.8em;       /* ~70% relativ zur Root-Scale */
		line-height: 1.1;     /* dichter */
		margin-bottom: 0.3em; /* weniger Luft */
		letter-spacing: -0.01em;
	}
  }
}

/* Desktop: 1025–1919px -> Desktop-Layout */
@media (min-width: 1025px) and (max-width: 1919px) {
  .layout {
    font-size: 1.2em;
    .mapplic-dir-item h4 {
        font-size: 0.8em;
    }
  }
}

/* SmartTV / sehr große Screens: ab 1920px -> TV-Layout */
@media (min-width: 1920px) {
  body { font-size: 22px; }
  h4 { font-size: 1.2rem; }
  li { font-size: 0.9rem; }
  .layout {
    /* mehr Abstand, größere Schrift/Buttons, ggf. andere Spalten */
  }
}

.mapplic-item-body h4 {
    white-space: pre-line; /* Wandelt \n in echte Zeilenumbrüche um */
}

.mapplic-dir-item h4 {
    color: purple;
}

.mapplic-dir-item.active {
  background-color: blue;
  color: white;

}
.mapplic-dir{
	padding-top: 100px;
    background-repeat: no-repeat; 
    background-image: url(./assets/cascooLogo.png);
}

div > div.mapplic-sidebar{
	padding-top: 100px;
    background-repeat: no-repeat; 
    background-image: url(./assets/cascooLogo.png);
}

div > div.mapplic-sidebar > div.mapplic-dir{
	padding-top: 100px;
    background-repeat: no-repeat; 
    background-image: url(./assets/cascooLogo.png);
}

.custom-modal {
    border: none;
    border-radius: 8px;
    padding: 0;
    max-width: 1250px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.custom-modal::backdrop {
    background: rgba(0, 0, 0, 0.7); /* Etwas dunkler */
    cursor: pointer;
}

.modal-content {
	padding: 0px;
    position: relative;
    cursor: default; /* Verhindert, dass der "Pointer" innerhalb der Box erscheint */
}

.modal-close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: normal;
    font-family: Arial, sans-serif;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;              /* entfernt den blauen Rahmen */
    -webkit-tap-highlight-color: transparent; /* optional: entfernt Tap-Highlight */
}

.modal-close-btn:focus-visible{
  outline: none;
}

.modal-close-btn:hover {
    color: #000;
}

.mapplic-language-info{
	display:none;
}

.navRight{
  text-align: right;
  padding-right: 30px;
}

	/* Button */
  .button{
		display: inline-block;
		background-color: #0d4d8b;
		color: #ffffff;
		font-size: 1.1rem;
		font-weight: 600;
		padding: 14px 28px;
		border-radius: 8px;
		text-decoration: none;
		border: none;
		cursor: pointer;
		transition: all 0.3s ease;
	}

	/* Hover-Effekt */
	.button:hover {
		background-color: #0b3f73;
		transform: translateY(-2px);
		box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
	}

	/* Active (Klick) */
	.button:active {
		transform: translateY(0);
		box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
	}

	.button:focus {
		outline: 2px solid #ffffff;
		outline-offset: 2px;
	}