@font-face{font-family:DINOffc;src:url(../fonts/DINOffc.ttf) format('truetype')}
:root {
  /* Farben definieren */
  --primary-color:#003A60; /*DS-Blau*/
  --secondary-color: #2C4D7A;/*DS-Hellblau*/
  --accent-color_1A:#C98521; /*DS-Gold*/
  --accent-color_1B:#D6A257; /*DS-Hellgold*/
  --accent-color_2A:#B72F30; /*DS-Rot*/
  --accent-color_2B:#C24844; /*DS-Hellrot*/
  --accent-color_3A:#797C19; /*DS-Grün*/
  --accent-color_3B:#BABB29; /*DS-Hellgrün*/
  --accent-color_4A:#4085C6; /*DS-Gold*/
  --text-color: #333333;
  --background-light: #f4f4f4;
  --lighter-grey:#F8F9FA;
  --light-grey: #E5E7EE;
  --middle-grey:#C1C3C5;
  --grey:#A7AAAC;
  --dark-grey:#3B4145;
  
  --safety-red:#FF0000;
  --safety-orange:#FF6600;
  --safety-yellow:#FFD100;
  --safety-blue:#004B87;
  
}
body {
    font-family: 'DINOffc', Arial, sans-serif;
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, calc(var(--circle-size, 150px) * -0.3)) rotate(0deg); }
    25% { transform: translate(-50%, calc(var(--circle-size, 150px) * -0.3)) rotate(-10deg); }
    75% { transform: translate(-50%, calc(var(--circle-size, 150px) * -0.3)) rotate(10deg); }
}


html,
body {
  height: 100%;
  margin: 0;
  background-color: transparent !important;
}



.language-card {
    transition: transform 0.2s;
    cursor: pointer;
    height: var(--circle-size, 150px);
    width: var(--circle-size, 150px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: none !important;
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}
.language-card:hover {
    transform: translateY(-5px);
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}
.card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 !important;
}
.flag {
    font-size: calc(var(--circle-size, 150px) * 0.4);
    font-family: 'DINOffc', Arial, sans-serif;
    position: absolute;
    transition: transform 0.3s ease;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
	color: var(--primary-color);
}
.welcome-text {
    margin-bottom: 2rem;
    text-align: center;
	background-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(5px);
	padding: 20px;
}


.container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0;
	padding-right: 0;

	min-height: 100vh;
	background-image: url("../img/Keyvisual_02.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}


h1{
	color: var(--primary-color);
}


.language-name {
    opacity: 0;
    position: absolute;
    transition: all 0.3s ease;
    font-size: calc(var(--circle-size, 150px) * 0.12);
    width: 100%;
    text-align: center;
    bottom: calc(var(--circle-size, 150px) * 0.15);
    color: var (--primary-color);
}

.language-card:hover .flag {
    animation: shake 0.5s ease-in-out;
    transform: translate(-50%, calc(var(--circle-size, 150px) * -0.3));
}

.language-card:hover .language-name {
    opacity: 1;
}

/* Initial load animation classes */
.show-initial {
    opacity: 1 !important;
}

.flag.show-initial {
    transform: translate(-50%, calc(var(--circle-size, 150px) * -0.3)) !important;
}

/* Container adjustments */
#languageContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--circle-size, 150px) * 0.2);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Override Bootstrap column classes */
.col-md-4, .col-sm-6 {
    width: auto !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}