.desktop,
.mobile {
  display: none;
}
footer {
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 901px) {
  .desktop {
    display: inline;
  }
}

@media (max-width: 900px) {
  .mobile {
    display: inline;
  }
}

.popup-info {
  position: relative;
  margin-left: 6px;
  cursor: help;
  font-size: 1.1rem;
}

.popup-info .popup-text {
  visibility: hidden;
  position: absolute;
  top: 120%;
  left: 0;
  background: #222;
  padding: 0.6rem;
  border-radius: 6px;
  color: #fff;
  width: 220px;
  font-size: 0.75rem;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 255, 0.3);
  z-index: 10;
}

.popup-info:hover .popup-text {
  visibility: visible;
}

  max-width: 600px;
  margin: 2rem auto;
  background: #000;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 255, 0.4);
  color: #fff;
}

.hidden {
  display: none !important;
}

#popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  perspective: 1000px;
}

#popup {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90vw;       
  max-width: 360px;    
  transform-origin: center center;
  transform-style: preserve-3d;
  transition:
    transform 0.6s ease-in-out,
    opacity   0.6s ease-in-out;
}

#popup-text {
  margin-bottom: 1rem;
  color: #000;
  font-size: 1rem;
  line-height: 1.4;
}

#popup-accept,
#popup-decline {
  margin: 0 0.5rem;
  padding: 0.6rem 1.2rem;
  background: skyblue;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

#popup-accept:hover,
#popup-decline:hover {
  background: deepskyblue;
  transform: translateY(-2px);
}

#popup.flip-out {
  transform: rotateX(90deg);
  opacity: 100	;
}


.file-dropzone {
  position: relative;
  background: #111;
  border: 2px dashed skyblue;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: #ccc;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.file-dropzone:hover {
  background: #222;
  border-color: #00f;
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

#dateiliste {
  min-height: 1.2em;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.action-area button {
  background: skyblue;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 16px;
}

.action-area button:hover {
  background: #007bff;
  color: #fff;
}

#loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.75rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: skyblue;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#loading-message {
  color: skyblue;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --btn-size: 64px;
  --btn-border: 3px;
  --btn-border-color: black;
  --btn-bg: white;
  --ring-border: 3px;
}

#scrollHint{
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  width: var(--btn-size);
  height: var(--btn-size);
  background: var(--btn-bg);
  border: var(--btn-border) solid var(--btn-border-color);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  z-index: 2147483647;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
#scrollHint.visible{
  opacity: 1;
  pointer-events: auto;
}
.arrow-icon{ width: 48px; height: 48px; }
.arrow-icon svg{
  width: 100%; height: 100%;
  stroke: black; fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

@keyframes popUp{
  0%{ transform: translateX(-50%) scale(1); }
  100%{ transform: translateX(-50%) scale(1.15); }
}
@keyframes shrinkOut{
  0%{ transform: translateX(-50%) scale(1.15); opacity: 1; }
  100%{ transform: translateX(-50%) scale(0); opacity: 0; }
}
#scrollHint.animating{
  pointer-events: none;
  animation:
    popUp 200ms ease-out,
    shrinkOut 380ms ease-in 120ms forwards;
}

.ripple-ring{
  position: fixed;
  width: var(--btn-size);
  height: var(--btn-size);
  left: 0; top: 0;
  transform: translate(-50%,-50%) scale(1);
  border: var(--ring-border) solid rgba(0,0,0,1);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  animation: rippleExpand 1500ms ease-out forwards;
}
@keyframes rippleExpand {
  0%   { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  70%  { opacity: 0.6; transform: translate(-50%,-50%) scale(2.2); } /* bleibt sichtbar */
  100% { opacity: 0;   transform: translate(-50%,-50%) scale(2.8); border-color: rgba(128,128,128,0); }
}

@media (max-width: 900px) {
  #scrollHint {
    display: none !important;
  }
}

html,
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: url('Bild.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  scroll-behavior: smooth;  
  margin: 0;
}


a {
  text-decoration: none;
  color: inherit;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid black;
  z-index: 1000;
}
	
#header-title a {
  font-size: 2.2rem;
  font-weight: bold;
  color: black;
}

#header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#header-links a,
.popup-btn {
  color: black;
  font-size: 1.6rem;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 4px;
}

#header-links a:hover,
.popup-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: skyblue;
}

.popup-content {
  display: none;
  position: absolute;
  top: 70px;
  right: 5%;
  background: #111;
  padding: 0.8rem 1rem;
  border: 1px solid #333;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1100;
}

.popup-content a {
  display: block;
  color: #fff;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.popup-content a:hover {
  color: skyblue;
}

#inhalt {
      background-color: white;
      padding: 2rem;
      box-shadow: 0 0 20px rgba(0,0,0,0.05);
  padding-top: 90px;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

h2 {
  margin: 2rem 0 1rem;
}

.colorful-underline {
  text-align: center;
  text-decoration: underline;
  text-decoration-color: #007bff;
  text-decoration-thickness: 4px;
}

.box9 {
  width: 100%;
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  padding-top: 0;
  padding-bottom: 0;
}

.box9 img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.box9 h6 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  text-align: center;
}

@media screen and (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.box {
  height: 180px;
  border: 1px solid #000;
  border-radius: 8px;
  overflow: hidden;
}



.box1 {
  background: url('Lageplan.jpg') center/cover no-repeat;
}

.box2 {
  background: url('Grenzvermessung.jpg') center/cover no-repeat;
}

.box3 {
  background: url('Grenzermittlung.jpg') center/cover no-repeat;
}

.box4 {
  background: url('Absteckung.jpg') center/cover no-repeat;
}

.box5 {
  background: url('Gebäudevermessung.jpg') center/cover no-repeat;
}

.box6 {
  background: url('Bestandsplan.jpg') center/cover no-repeat;
}

.box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 255, 0.2);
}

.box h1 {
  margin: 0.5rem 1rem 0;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.8);
  display: inline-block;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  color: #000;
}

.box h4 {
  margin: 0.3rem 1rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  display: inline-block;
  border-radius: 4px;
  padding: 0.1rem 0.6rem;
  color: #333;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 2rem;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}

.table-container td {
  padding: 0.8rem;
  vertical-align: middle;
  border-bottom: 1px solid #ddd;
  background: transparent;
}

.table-container img {
  z-index: 3;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}
/*
.table-container img.drittes-bild {
  width: 250px !important;
  height: auto !important;
  object-fit: contain !important;
}
*/

#kontaktunten {
  margin-bottom: 3rem;
}

#kontakt {
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  margin-bottom: 1.5rem;
}

.kontakt {
  flex: 1 1 30%;
  background: #fff;
  padding: 1rem;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 255, 0.3);
}

.kontakt h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.kontakt p,
.kontakt i {
  z-index: 3;
  font-size: 0.9rem;
}

.kontakt i {
  margin-right: 0.5rem;
}

.map-container {
  width: 100%;
}

.map-frame {
  z-index: 3;
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 8px;
}

.footer {
  position: relative;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: black;
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #000;
  margin: 0;
  z-index: 100;
}

.link4 {
  display: inline-block;
  margin: 0;
  color: #007bff;
  transition: color 0.2s;
}

.link4:hover {
  color: skyblue;
}

@media (min-width: 901px) {
  .table-container table tr:nth-child(odd) {
    background: rgba(0, 0, 255, 0.2);
  }
  .table-container table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.2);
  }
  .table-container img {
    width: 250px;
    height: 150px;
  }
  .table-container td:first-child:not([colspan]) {
    text-align: left;
  }
  .table-container td:last-child:not([colspan]) {
    text-align: right;
  }
  .table-container td[colspan="2"] {
    text-align: center !important;
  }
  #inhalt h2 {
    text-align: left;
  }
}

@media (max-width: 900px) {
  #kontakt {
    display: flex;
    flex-direction: column;
  }
  #kontakt .kontakt {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .table-container table,
  .table-container tr,
  .table-container td {
    display: block;
    width: 100%;
  }
  .table-container img {
    max-width: 100%;
    height: auto;
  }
  .table-container td {
    text-align: center !important;
    border: none !important;
  }
  #inhalt h2 {
    text-align: center;
  }
  #header-links a {
    display: none;
  }
  .popup-btn {
    display: block;
  }
  #header {
    padding: 0 1rem;
  }
  #header-title a {
    font-size: 1.8rem;
  }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
  transition: opacity 0.6s ease;
  z-index: 1000;
}
.overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.consent-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 360px;
  max-width: 100%;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border-top: 4px solid #0288d1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform-origin: center center;
  backface-visibility: hidden;
  transform: translate(-50%, -50%) rotateX(0deg);
  transition: transform 0.6s ease;
  z-index: 1001;
}
.consent-popup.hide {
  transform: translate(-50%, -50%) rotateX(90deg);
}

.consent-popup h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: #01579b;
}
.consent-popup p {
  margin: 0 0 1.5rem;
  line-height: 1.5;
  color: #333;
}
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.button-group button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
#btnDecline {
  background: #e57373;
  color: #fff;
}
#btnDecline:hover {
  background: #ef5350;
}
#btnAccept {
  background: #0288d1;
  color: #fff;
}
#btnAccept:hover {
  background: #0277bd;
}
.button-group button:active {
  transform: scale(0.96);
}

.map-container {
  width: 100%;   
  margin: 1.5rem auto;
}

.map-frame {
  display: block;       
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 255, 0.3);
}
