<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/express/blend/2008"
        x:Class="AquaCare.View.PflegeWindow"
        xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Title="Pflege Werte eintragen"
        Width="600" Height="500"
        Icon="Ressourcen/Bilder/ProgrammIcon.ico">
    <Grid>
        <!-- Hintergrundbild ins äußere Grid verschieben -->
        <Grid.Background>
            <ImageBrush Source="avares://AquaCare.View/Ressourcen/Bilder/PflegeHintergrund.png" 
                        Stretch="Fill"/>
        </Grid.Background>

        <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"
              ColumnDefinitions="Auto,*"
              Margin="20"
              RowSpacing="10"
              ColumnSpacing="20">

            <!-- Datum -->
            <TextBlock Text="Datum:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
            <DatePicker x:Name="DatumPicker" Width="300" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>

            <!-- Gefüttert -->
            <TextBlock Text="Gefüttert:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"/>
            <CheckBox x:Name="GefuettertCheckBox" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>

            <!-- Filter reinigen -->
            <TextBlock Text="Filter gereinigt:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"/>
            <CheckBox x:Name="FilterReinigenCheckBox" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>

            <!-- Wasser wechseln -->
            <TextBlock Text="Wasser gewechselt:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"/>
            <CheckBox x:Name="WasserWechselnCheckBox" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>

            <!-- Temperatur -->
            <TextBlock Text="Temperatur (°C):" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"/>
            <TextBox x:Name="TemperaturBox" Height="30" Grid.Row="4" Grid.Column="1" Width="100"/>

            <!-- pH-Wert -->
            <TextBlock Text="pH-Wert:" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center"/>
            <TextBox x:Name="PhBox" Grid.Row="5" Grid.Column="1" Width="100"/>

            <!-- Nitrat -->
            <TextBlock Text="Nitrat (mg/l):" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center"/>
            <TextBox x:Name="NitratBox" Grid.Row="6" Grid.Column="1" Width="100"/>

            <!-- Ammoniak -->
            <TextBlock Text="Ammoniak (mg/l):" Grid.Row="7" Grid.Column="0" VerticalAlignment="Center"/>
            <TextBox x:Name="AmmoniakBox" Grid.Row="7" Grid.Column="1" Width="100"/>

            <!-- Speichern-Button -->
            <Button Content="Speichern" Grid.Row="8" Grid.Column="1" Margin="0,20,0,0" HorizontalAlignment="Right" Click="SaveClick"/>

        </Grid>
        <!-- Mindestbreite für die zweite Spalte -->
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*" MinWidth="200"/>
        </Grid.ColumnDefinitions>
    </Grid>
</Window>